- This topic has 8 replies, 2 voices, and was last updated 20 years, 2 months ago by Riyad Kalla.
-
AuthorPosts
-
pbh001MemberRiyad thanks for the help fixing the JSP problem. I thought it might be better to pick up the -vm discussion in this forum since it would be more appropriate.
I have removed all traces of old jvm’s from my machine (hopefully). Now java, javac and javaw only appear in
E:\j2sdk1.4.2_06\bin and
E:\j2sdk1.4.2_06\jre\binMy path contains the path to the bin directory like so…
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;”E:\j2sdk1.4.2_06\bin”;”E:\Program Files\Symantec\Norton Ghost 2003\”;C:\Program Files\ATI Technologies\ATI Control PanelAnd my Java_Home is
E:\j2sdk1.4.2_06If I remove the -vm from the shortcut then it says that it can not find javaw. But if I go to the command line and type javaw it finds the file.
Any ideas?
Thanks
Brian
Riyad KallaMemberIt is most likely finding the javaw in your windows directory, you should have another set of all the exe files in your JDK/bin dir. I would suggest editing your path and moving the JDK\bin to the very front of it and see what happens.
pbh001MemberI think you might have misunderstood. When I remove the -vm eclipse does not find any javaw. I have searched my harddrives and the only javaw.exe files are in…
E:\j2sdk1.4.2_06\bin and
E:\j2sdk1.4.2_06\jre\binI set the path to %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;”E:\j2sdk1.4.2_06\bin”;”E:\Program Files\Symantec\Norton Ghost 2003\”;C:\Program Files\ATI Technologies\ATI Control Panel
And I went to the dos prompt and can run javaw.
How does eclipse look for the javaw file? The error says..
No Java vertural machine was found after searching the following locations:
E:\eclipse3.0.1\eclipse\jre\bin\javaw.exe
‘javaw.exe’ in your current PATHBrian
Riyad KallaMemberBrian,
There are a few things that are not kosher with what you are saying (install issues maybe..)1) A full JDK install (Which also installs the JRE) will place the “javaw.exe” file in the follow locations:
-
<jdk dir>\bin
<jdk dir>\jre\bin
C:\Program Files\Java\<jre dir>\bin
C:\Windows\System32So the fact that you have 2 is making me a bit warry of your setup…
2) Your path looks kosher with the “E:\j2sdk1.4.2_06\bin”, however Eclipse is decinding to look in the location of <eclipse dir>\jre\bin instead of finding javaw.exe anywhere in your path… I wonder if your shortcut to launch Eclipse has strange settings with it, or if you have other environment variables (CLASSPATH, JAVA_HOME, etc.) that could be screwing with this? OR if you have a different user PATH environment variable that is confcliting with your system PATH…
When did you run the JDK install? I wonder of completely re-running it and rebooting would help… also looking into all your PATH settings and other environment variables (type “SET” at a command prompt).
P.S.> This is really tricky stuff to troubleshoot without sitting infront of the computer 🙁
pbh001MemberSorry I should have been more clear. There was a JRE that was installed on my C: drive. I uninstalled the JRE from add remove programs. I also removed any java, javac, javaw files that were remaining from old installs. Now the only place that has a java, javac or javaw file left is the E:\j2sdk1.4.2_06\bin and
E:\j2sdk1.4.2_06\jre\bin directories. I did this trying to figure out the jsp problem. 🙂Results of set:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.C:\Documents and Settings\Brian Hiltbrunner>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Brian Hiltbrunner\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=BRIAN-57PYN3P3U
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Brian Hiltbrunner
JAVA_HOME=E:\j2sdk1.4.2_06
LOGONSERVER=\\BRIAN-57PYN3P3U
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;”E:\j2sdk1.4.2_06\b
in”;”E:\Program Files\Symantec\Norton Ghost 2003\”;C:\Program Files\ATI Technolo
gies\ATI Control Panel
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0205
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\BRIANH~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\BRIANH~1\LOCALS~1\Temp
USERDOMAIN=BRIAN-57PYN3P3U
USERNAME=Brian Hiltbrunner
USERPROFILE=C:\Documents and Settings\Brian Hiltbrunner
windir=C:\WINDOWSRiyad you guys are great. I appreciate your efforts. I know running eclipse with the -vm option is not a huge deal, it just seems like something is not right.
Brian
Riyad KallaMemberWhat has me so stumped here is that everything LOOKS totally kosher with your setup…. its gotta be something stupidly small… things that take this long to troubleshoot always are 🙁
Hey can you try re-running the JDK full install and reboot and see if that magically works?
pbh001MemberBefore I do THAT I want to make sure I understand what we are hoping to do! 😳
Right now everything works great, I just have to tell eclipse where the javaw file is using the -vm parm. I was thinking that eclipse should be able to find the javaw file itself because the file is in the E:\j2sdk1.4.2_06\bin directory which is in the PATH. Am I thinking correct?Brian
pbh001MemberI got it!! The problem is the “” around the directory name.
I changed the path from
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;”E:\j2sdk1.4.2_06\b
in”;”E:\Program Files\Symantec\Norton Ghost 2003\”;C:\Program Files\ATI Technolo
gies\ATI Control PanelTo:
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;E:\j2sdk1.4.2_06\b
in;”E:\Program Files\Symantec\Norton Ghost 2003\”;C:\Program Files\ATI Technolo
gies\ATI Control PanelNotice that the double quotes are removed from the directory name.
I am still not sure why eclipse cares, but it does.
Thanks again so much Riyad!!
Brian
Riyad KallaMemberBrian I congradulate you and finding such an obscure issue… I”m glad everything is working now (and yes your thinking is correct in your previous post).
-
AuthorPosts