SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Apr 2001
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need some Java help

    Hey
    I have been reading the tutorials Decoy1 gave me (they are great btw =) ) I only have one problem.
    This is what I do:

    c:\jdk1.3\bin>javac hello.java
    c:\jdk1.3\bin>java hello.java
    Exception in thread "main" java.lang.NoClassDefFoundError: hello/java

    At another board they said the path should be changed, but that didn't really work...

    Could anyone help?

  2. #2
    SitePoint Guru Husain's Avatar
    Join Date
    Sep 2001
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just type "java hello". If there are no errors in your code this will work.

    When you compile your .java files, they are converted to .class that execute when you type "java [filename]"


Bookmarks

Posting Permissions

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