jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Install probs." Watch "Install probs." New topic

Install probs.

Linze marin

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

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%
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.


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

Joined: Dec 10, 2001
Posts: 7023
C:\java>echo %classpath%

[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

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

This forum is great.

I agree. Here's the link: http://aspose.com/file-tools
subject: Install probs.
jQuery in Action, 3rd edition