This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Install probs.

 
Linze marin
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am new to Java, and attempting to install it on a new laptop using windows 2000.


Hello, I am installing Java on a new laptop using windows 2000
I have been able to compile the "Hello World" program that I found on the
Java Ranch website.
I have included info that may be helpful. What do I need to do to get this working?
Thanks,
Linze

07/23/2004 01:21p 426 HelloWorld.class
07/23/2004 10:53a 150 HelloWorld.java
07/23/2004 10:46a <DIR> test
2 File(s) 576 bytes
3 Dir(s) 16,717,602,816 bytes free

C:\java>java HelloWorld.
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld


C:\java>echo %classpath%
C:\j2sdk1.4.2_05\bin
 
Robert Konigsberg
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you type "java HelloWorld." or "java HelloWorld"? Note that one of them has a period. Get rid of the period and try again.

LMK how it works out.

Welcome!
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C:\java>echo %classpath%
C:\j2sdk1.4.2_05\bin


[JAVA_HOME]\bin should be in your PATH, but not in your CLASSPATH. If you're not sure about the difference between these two variables, take a look at the "PATH and CLASSPATH" thread.
 
Linze marin
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, setting the classpath to c:\java was all I needed.

This forum is great.

Linze
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic