Results 1 to 3 of 3
  1. #1
    antgaudi's Avatar
    antgaudi is offline Member
    Join Date
    Sep 2008
    Location
    Houston-TX
    Posts
    22
    Rep Power
    0

    Question [SOLVED] exit code 2

    Here's my simple code:
    public class DemoVariables
    {
    public static void main(String[] args)
    {
    int oneInt = 315;
    System.out.print("The int is ");
    System.out.println(oneInt);
    }
    }

    Please help to find out why it's not compiling successfully.
    Thanks! ;)
    "The minute you settle for less than you deserve, you get even less than you settled for." Maureen Dowd

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    No idea. What error codes are you getting?

  3. #3
    antgaudi's Avatar
    antgaudi is offline Member
    Join Date
    Sep 2008
    Location
    Houston-TX
    Posts
    22
    Rep Power
    0

    Talking

    aw man...I didn't set my Textpad to save file extensions auto to .java...that was all...it was saved as a .txt before... :rolleyes:

    thanks for the feedback.
    "The minute you settle for less than you deserve, you get even less than you settled for." Maureen Dowd

Similar Threads

  1. JVM terminated Exit code=1
    By oregon in forum Eclipse
    Replies: 3
    Last Post: 09-29-2008, 10:49 PM
  2. [SOLVED] On Exit JoptionPane problem
    By Mir in forum New To Java
    Replies: 24
    Last Post: 07-15-2008, 08:39 AM
  3. system.exit(..)
    By ramakanta.majhi in forum New To Java
    Replies: 2
    Last Post: 06-14-2008, 02:28 AM
  4. How to exit the program..
    By coco in forum New To Java
    Replies: 1
    Last Post: 08-01-2007, 06:56 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
  •