This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

At Wits End.....  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
[Thumbnail for Config.JPG]
Config Information
 
author
Sheriff
Posts: 23507
138
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
David Wismer
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I can get the program to compile, just not run.
Compiled.gif
[Thumbnail for Compiled.gif]
Compile
 
Henry Wong
author
Sheriff
Posts: 23507
138
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
[Thumbnail for Config1.gif]
 
Henry Wong
author
Sheriff
Posts: 23507
138
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deleting the ClassPath solved the problem!

THANKS!
 
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you understand why?
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!