• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Install probs.

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, setting the classpath to c:\java was all I needed.

This forum is great.

Linze
 
Attractive, successful people love this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic