Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compiling from command line

843810Sep 29 2005 — edited Oct 5 2005
Hello,

I have allways used Jbuilder to compile and run programs but I would like to run from the command line. I have jdk1.5.0_04 and jre1.5.0_04 installed. Whenever I type java or javac at the command line, I get:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Adam>java
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.4', but '1.5' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.

Does anyone know what the problem could be? Is it o do with the class path?
I read somewhere that i should put it in my AUTOEXC file so I put this in there:
set JAVA_HOME=c:\Program Files\Java\jdk1.5.0_04

But that doesn't work. Anyone, please...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2005
Added on Sep 29 2005
10 comments
415 views