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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Install probs." Watch "Install probs." New topic
Author

Install probs.

Linze marin
Greenhorn

Joined: Jul 23, 2004
Posts: 12
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

Joined: Jun 23, 2004
Posts: 172
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!


SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Linze marin
Greenhorn

Joined: Jul 23, 2004
Posts: 12
Thanks, setting the classpath to c:\java was all I needed.

This forum is great.

Linze
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Install probs.