wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes At Wits End..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "At Wits End....." Watch "At Wits End....." New topic
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!



[Thumbnail for Config.JPG]

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18508
    
  40

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.



[Thumbnail for Compiled.gif]

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18508
    
  40

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.





[Thumbnail for Config1.gif]

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18508
    
  40

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

Do you understand why?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: At Wits End.....
 
Similar Threads
Problem starting Jboss AS 5.0
cannot resolve symbol - help
install jdk vista problem
Installing java and putting it in the Path variable.
java onn windows vista