Greetings everyone! I'm a new Java student, taking lessons from the University of Phoenix, and reading Head First Java, and I'm having a blast!
I originally downloaded 1.4.2 to work with in notepad, and soon downloaded JGrasp as an editor. This worked fine, until somebody in my class mentioned that I should get version 1.5. Upgrading JGrasp seemed to work O.K., it compiles, and runs my simple programs with no problems whatsoever, but when I go back to the command line, I have problems.
Namely, it seems stuck on 1.4.2 for some reason.
When I type "java -version" it came up as 1.4.2.even though I had set my "path" in windows xp to point to the new folder where the 1.5 bin was. I went and deleted all of the 1.4.2 folders, and now I get the following when I type "java -version" I get the following.
Error: could not open `C:\Program Files\Java\j2re1.4.2_05\lib\i386\jvm.cfg'
Why would it still be looking in the 1.4.2 folder, when I've changed the path to the 1.5 folder. Is there something I'm not getting?
Did, you uninstall version 1.4. When I said uninstall, I meant uninstall it using the Add/Remove programs, rather than just deleting all the files. I believe this will give you a cleaner uninstall/reinstall on your system. Also, make sure you still don't have the path to 1.4 in you system evirnoment variables, because I'm sure having two paths for the same command would cause windows some problems. [ April 15, 2005: Message edited by: Nicholas Carrier ]
Teaching yourself anything is always the cheapest way, but it definitely takes a lot of time and effort.<br /> <br />Thank you javaranch <a href="http://"http://faq.javaranch.com/view?HowToAskQuestionsOnJavaRanch"" target="_blank" rel="nofollow">Learn How to Ask Your Question</a> and be nice
posted 14 years ago
The uninstall was the bit that did it. I didn't remove the program, using the "add and remove program" so no matter what the path was set at, it was trying to compile and run with 1.4.2. Once I got that done, the path let the 1.5 do it's thing.
C:\>java -version java version "1.5.0_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09) Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
Thanks again!! I'm really looking forward to playing with Java, and learning from all of the people here.
Joseph Warren (one very appreciative Java newbie)
Create symphonies in seed and soil. For this tiny ad: