Results 1 to 4 of 4

Thread: Java Issues

  1. #1
    Cable Guy Jonny M's Avatar
    Join Date
    Jul 2003
    Location
    Loughborough Uni
    Posts
    4,263
    Thanks
    0
    Thanked
    4 times in 1 post

    Java Issues

    I have just started the Java module of my degree course, and have been following the instructions on the module homepage:

    1. Download JDK 5.0 Update 6 from the Sun website. Save the downloaded executable to disk and then run it. Check that Java is installed by starting a DOS terminal and typing the command "java -version".
    2. Download TextPad from www.textpad.com. Save the executable to disk and run it after the download is complete. You should find that TextPad has now been added to your Programs menu. We hope to be able to give you a full licence for TextPad before the temporary licence times out.
    Adding the Java SDK tools to the TextPad menu works fine, and my .java files compile into Class files, but when I come to run them, I get:

    Exception in thread "main" java.lang.NoClassDefFoundError: Welcome
    Press any key to continue . . .
    And this is for something as simple as an 8 line "Hello World" program. Yes my class has the same filename as the class declared in the .java file. This same class worked in the lab earlier, but I'm stumped on getting it to work on my own machine. Running XP Pro SP2.

    Thanks

  2. #2
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts
    Can we see the source?

    Most likely though is that java cannot find your bytecode (class file). Not used textpad so I don't know how it handles classpath. Use eclipse or similar.
    Last edited by yamangman; 23-02-2006 at 11:09 PM.
    To err is human. To really foul things up ... you need a computer.

  3. #3
    www.5lab.co.uk
    Join Date
    Sep 2003
    Posts
    6,406
    Thanks
    1
    Thanked
    0 times in 0 posts
    java is also very case sensitive - textpad has a habit of saving with an odd capitalisation..
    hughlunnon@yahoo.com | I have sigs turned off..

  4. #4
    Cable Guy Jonny M's Avatar
    Join Date
    Jul 2003
    Location
    Loughborough Uni
    Posts
    4,263
    Thanks
    0
    Thanked
    4 times in 1 post

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Key Java source code to be opened
    By Steve in forum HEXUS News
    Replies: 0
    Last Post: 27-06-2005, 10:54 AM
  2. Replies: 0
    Last Post: 14-06-2005, 12:02 PM
  3. ATi + Java + BSOD?
    By Kezzer in forum PC Hardware and Components
    Replies: 1
    Last Post: 11-06-2005, 01:26 PM
  4. Shuttle ST61G4 - Stability Issues.
    By DJWillis in forum PC Hardware and Components
    Replies: 4
    Last Post: 23-01-2005, 07:56 PM
  5. Java Problems
    By Applecrusher in forum Software
    Replies: 4
    Last Post: 27-04-2004, 01:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •