Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: help plz

  1. #1
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy help plz

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


    Iam using netbeans 3.6 and jdk 1.5 .. npormally im using jcreater.. I donno y but this simple code doesnt work''
    they say

    Exception in thread "main"
    plz help me..

  • #2
    Codeasaurus Rex
    Join Date
    Jun 2008
    Location
    Redmond, WA
    Posts
    659
    Thanks
    31
    Thanked 100 Times in 94 Posts
    Is the file you're compiling named "test.java"? Your file must be named the exact name of the class you're defining in it.

    If that's not the problem, please post your complete code with the complete error message.
    Unless otherwise stated, any code posted is most likely untested and may contain syntax errors.
    My posts, comments, code, and suggestions reflect only my personal views.
    Web Portfolio and Code Snippets: http://shanechism.com

  • #3
    New Coder
    Join Date
    Feb 2011
    Posts
    48
    Thanks
    1
    Thanked 2 Times in 2 Posts
    How do you try to run your code and what's the error? We already know what is the technology you use (old technology, by the way, but this isn't important in your current project).


  •  

    Posting Permissions

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