A
Andrew Thompson
For information only - no question here..
I hit this error and went searching the groups for answers.
Failed to find the solution to this particular problem, so
I thought I'd post the fix to this (particularly stupid)
mistake I made.
When compiling from the command line, I might set
JAVA_HOME like this.
Note that the " are required because of the space
in the name of 'Program Files'.
Very soon I got sick of typing that every time, and
put it as an environment variable using regedit.
Key: JAVA_HOME
Value: "C:\Program Files\Java\j2sdk1.5.0\"
This seems to work when referenced from the command
line or .BAT files, but most IDE's and Ant are tripped up
by it. The quotes now cause the string to fail to find the
tools.jar (which is in the lib\ subdirectory of the SDK).
It should be something more like (adjust for local system)..
Key: JAVA_HOME
Value: C:\Program Files\Java\j2sdk1.5.0\
After removing the extraneous quote marks,
(and rebooting), it worked just fine.
( Hopefully - next time I forget this fix, stuff it up
again and come looking for answers, I'll *find* this
again..
Andrew T.
I hit this error and went searching the groups for answers.
Failed to find the solution to this particular problem, so
I thought I'd post the fix to this (particularly stupid)
mistake I made.
When compiling from the command line, I might set
JAVA_HOME like this.
set JAVA_HOME="C:\Program Files\Java\j2sdk1.5.0\"
Note that the " are required because of the space
in the name of 'Program Files'.
Very soon I got sick of typing that every time, and
put it as an environment variable using regedit.
Key: JAVA_HOME
Value: "C:\Program Files\Java\j2sdk1.5.0\"
This seems to work when referenced from the command
line or .BAT files, but most IDE's and Ant are tripped up
by it. The quotes now cause the string to fail to find the
tools.jar (which is in the lib\ subdirectory of the SDK).
It should be something more like (adjust for local system)..
Key: JAVA_HOME
Value: C:\Program Files\Java\j2sdk1.5.0\
After removing the extraneous quote marks,
(and rebooting), it worked just fine.
( Hopefully - next time I forget this fix, stuff it up
again and come looking for answers, I'll *find* this
again..
Andrew T.