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 4 of 4

Thread: Showing errors on ecclipse but not showing errors when compiling on command prompt

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Showing errors on ecclipse but not showing errors when compiling on command prompt

    Hi when I use ecclipse to run codes it shows many errors, and they are not errors at all I compiled them with command prompt and it work.

    this is the image

    http://i.imgur.com/az6Pg.jpg

    My java and javac version is 7 u 2


  2. #2
    Member snowguy13's Avatar
    Join Date
    Nov 2011
    Location
    In Hyrule enjoying a chat with Demise and Ganondorf
    Posts
    339
    My Mood
    Happy
    Thanks
    31
    Thanked 48 Times in 42 Posts

    Default Re: Showing errors on ecclipse but not showing errors when compiling on command promp

    What is the content of these error messages? That is, when you mouse over the underlined code, what does Eclipse tell you?

    Often, IDE's provide warnings as well as errors; errors are problems that will terminate your program either upon compilation or during runtime whereas warnings are more based around general coding style rules and non-destructive issues to your program.
    Use highlight tags to help others help you!

    [highlight=Java]Your prettily formatted code goes here[/highlight]

    Using these tags makes your code formatted, and helps everyone answer your questions more easily!




    Wanna hear something funny?

    Me too.

  3. #3
    Member
    Join Date
    Feb 2012
    Location
    West USA
    Posts
    67
    My Mood
    Inspired
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Re: Showing errors on ecclipse but not showing errors when compiling on command promp

    I am not sure why you asked for help here if your code works fine when you compile it with CMD. Just use that and compile it and keep it the way it is.

  4. #4
    Junior Member HandgunSally's Avatar
    Join Date
    Mar 2012
    Location
    Cleveland, OH
    Posts
    16
    My Mood
    Lurking
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Showing errors on ecclipse but not showing errors when compiling on command promp

    Indicate your preferences for the Errors/Warnings settings on the Opens the Errors/Warnings preference page Java > Compiler > Errors/Warnings preference page.

Similar Threads

  1. JButtons not showing
    By Shaybay92 in forum AWT / Java Swing
    Replies: 1
    Last Post: September 27th, 2011, 08:42 AM
  2. Java command prompt
    By Tanmaysinha in forum Java Theory & Questions
    Replies: 2
    Last Post: August 30th, 2011, 10:30 AM
  3. Java command prompt
    By Tanmaysinha in forum Java Theory & Questions
    Replies: 1
    Last Post: August 29th, 2011, 04:05 PM
  4. Java on command prompt
    By Tanmaysinha in forum What's Wrong With My Code?
    Replies: 12
    Last Post: August 17th, 2011, 07:45 AM
  5. showing page
    By ighor10 in forum Java Theory & Questions
    Replies: 1
    Last Post: August 26th, 2010, 09:52 AM

Tags for this Thread