> I could swear when I first installed jdk 1.5 in my new machine (Vista
> Ultimate) about three months ago, I put path to 'bin' dir in java
> installation in 'path' Windows env variable, and made sure I was able to
> both compile and run classes; however, when I tried to compile or run a
> class today, I got in trouble....
> when I try to compile a .java file I get this error:
> 'javac' is not recognized as an internal or external command,
> operable program or batch file.
> when I try to run a class I get told
> Error: could not open `C:\Program
> this is path to dir 'bin' in my java installation:
> so put this again in path, then restarted machine... but I still get
> same errors when try to compile or run classes..
I'm going to pretend there's an environment variable
BTW, there's a big security hole in jdk1.5.0_12. You should upgrade to
jdk1.5.0_13 right away.
The compiler, javac.exe, isn't in %JAVA_HOME%/jre/bin/, what you put in your
PATH, it's in %JAVA_HOME%/bin/, not yet in your PATH.
Have you any idea why your execution of java.exe was trying to open
"C:/Program Files/Java/jre1.5.0_12/lib/i386/jvm.cfg"? Does that file exist?
Does even its directory?
Why is that path through "C:/Program Files/" when your JAVA_HOME isn't?