#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    Werl,NRW,Germany
    Posts
    0
    Rep Power
    0
    I wrote a little programm for testing like this:

    class test
    {
    public static void main( String args[])
    {
    System.out.println("Test");
    }
    }

    I got a error description like:
    "Exception in thread main <something> <filename>/<fileextension>"

    What had i done wrong? Where is the mistake i had made?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Posts
    0
    Rep Power
    0
    Make sure that you name the file the same as the class with a main method, in your case, test.java.

    fx:

    javac test.java
    java test

    /good luck.

IMN logo majestic logo threadwatch logo seochat tools logo