Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 13 of 13

Thread: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    I made just a simple hello world class and i can not seam to make eclipse run it in any way not even the console. please help thank you.






    Sincerely,
    ClarmonkGaming


  2. #2
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    Why are you using such an outdated version of java?
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for newcomers.

    Post your code and any errors you're receiving.

  4. #4
    Junior Member
    Join Date
    Jan 2014
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    Long story short my teacher wants me to use it he is Weird his reasoning is so i can learn what it felt like when he learned java

  5. #5
    Member
    Join Date
    Oct 2013
    Location
    United Kingdom
    Posts
    62
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    I guess your teacher wants you to learn the difference between the version of java. Yes, there are changes which were made from version 4, 5, 6 and now 7. Anyways, can you please check the java properties in eclipse > windows > preferences. If you find something weird, then please let us know. Happy to help
    Thanks and regards,
    Sambit Swain

  6. #6
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    I was asking because I figured there could be some minimum JDK version for Eclipse, but I'm not finding any evidence to support my theory.
    What happens when you "try" to run it?
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

  7. #7
    Member
    Join Date
    Oct 2013
    Location
    United Kingdom
    Posts
    62
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    Did you created a java project in eclipse and put the program under correct path. How do you run the program from eclipse? Do you right click > run as > java applicaiton?
    Thanks and regards,
    Sambit Swain

  8. #8
    Junior Member
    Join Date
    Jan 2014
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    Sorry about late reply but i imported the java jdk and when i try to run it as a java app it says cannot find main I have school in 10 min so i can be on the forums at like 4:00 pm today thank you

  9. #9
    Member
    Join Date
    Oct 2013
    Location
    United Kingdom
    Posts
    62
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    Can you please right click on the project and select properties. Then check for java build path. What do you find under libraries
    Thanks and regards,
    Sambit Swain

  10. #10
    Junior Member
    Join Date
    Jan 2014
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    this is what is under libraries


    Untitled-1.jpg

  11. #11
    Junior Member
    Join Date
    Jan 2014
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    when i try to run it says selection does not contain a main type how do i fix this sorry i am new

    --- Update ---

    this is now solved i made a new class and ticked use main Main(String [] args) sorry about the confusion and thank you for the help.


    Sincerely,
    ClarmonkGaming

  12. #12
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    I hope you studied the resulting "fix" and noted the changes that Eclipse made for you so that you'll know how to do it right next time.

  13. #13
    Junior Member
    Join Date
    Jan 2014
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Java 1.4.2 and eclipse code will not compile or run need it to run for school!

    yes i did

Similar Threads

  1. Want To Compile And Run Java Code At Home
    By Jim Corner in forum Java Theory & Questions
    Replies: 3
    Last Post: December 28th, 2013, 01:00 AM
  2. Replies: 2
    Last Post: September 25th, 2013, 03:35 PM
  3. Replies: 2
    Last Post: November 18th, 2012, 02:09 PM
  4. Replies: 1
    Last Post: October 20th, 2012, 12:21 PM