Author
At Wits End.....
David Wismer
Greenhorn
Joined: Dec 19, 2009
Posts: 11
Can someone help me get past this? I am trying to run Hello World on a Windows XP machine and can not get it to run. It will compile, but not run. Here is the code:
Here is the Windows CLASSPATH
C:\Program Files\Java\jdk1.6.0_17\bin
Here is the Windows Path
C:\oracle\ora81\bin;C:\oracle\product\10.2.0\db_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Alky for Applications\Libraries\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\VisualSVN\bin;C:\Program Files\Java\jdk1.6.0_17\bin
Here are screen shots of the errors that I get. I have gone to java.com and ran the test to see if Java is working and it is.
Help, almost ready to go back to .Net!
Config.JPG
Config Information
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16687
In your screen shot, you first delete the class files, then you run the JVM, and is now surprised that the JVM can't find the class files?
Henry
Books: Java Threads, 3rd Edition , Jini in a Nutshell , and Java Gems (contributor)
David Wismer
Greenhorn
Joined: Dec 19, 2009
Posts: 11
Yes, I can get the program to compile, just not run.
Compiled.gif
Compile
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16687
David Wismer wrote: Yes, I can get the program to compile, just not run.
How can any program run after you delete the compiled binary?
Henry
David Wismer
Greenhorn
Joined: Dec 19, 2009
Posts: 11
Grabbed the wrong screen shot when I put the above images together. I have updated the screen shot showing the class and the error.
Config1.gif
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16687
David Wismer wrote:
Here is the Windows CLASSPATH
C:\Program Files\Java\jdk1.6.0_17\bin
And BTW, get rid of the CLASSPATH. This isn't right.
Henry
David Wismer
Greenhorn
Joined: Dec 19, 2009
Posts: 11
Deleting the ClassPath solved the problem!
THANKS!
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
posted Dec 21, 2009 07:49:28
0
Do you understand why?
subject: At Wits End.....