Compiling from command line
843810Sep 29 2005 — edited Oct 5 2005Hello,
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...