Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7167569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:36:10+00:00 2026-05-28T14:36:10+00:00

I’m having a bit of a strange problem in Eclipse 3.7.0 on Linux Mint

  • 0

I’m having a bit of a strange problem in Eclipse 3.7.0 on Linux Mint 12. I have a code snippet here to get an integer from the user using JOptionPane, and originally wanted to limit the user to choosing the numbers 0 through 10. However, I’m now trying to change it to accept numbers between -10 and 10, so I commented out the conditional. When I run it in Eclipse, it still limits me to 0 through 10, but compiling and running from the terminal works fine. Here’s part of my code, but I think the problem is with my setup, not the code:

try {
    degree = Integer.parseInt(input);
    /*if(degree > 10 || degree < 0) JOptionPane.showMessageDialog(null, "Please enter integer between 0 and 10.", "Error", JOptionPane.ERROR_MESSAGE);
    else*/ valid = true;
} catch(NumberFormatException e) {
    JOptionPane.showMessageDialog(null, "That is not a valid integer.", "Error", JOptionPane.ERROR_MESSAGE);
}

EDIT: I just noticed a red exclamation point in my projects list, but I can’t find where it says what’s wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:36:11+00:00Added an answer on May 28, 2026 at 2:36 pm

    Yes. The problem is something to do with your setup.

    Clearly, the compiled classes that you run when you launch the application from Eclipse are different to those that you created from the command line.

    We can safely eliminate the Eclipse compiler as a plausible cause. The Java compiler won’t ignore your changes … if it runs … and that includes commenting out things.

    Here are some more plausible explanations :

    • The code has not been recompiled in Eclipse.

      • This could happen if you are updating source files outside of Eclipse, and Eclipse isn’t aware of this. Select the project in the project view and use F5 to refresh.

      • This could also happen if you’ve turned off automatic building, and / or if you are ignoring compilation errors.

    • Your Eclipse is in a knot. (It happens sometimes …) Restart Eclipse. If that makes no difference, restart Eclipse with the -clean command line option.

    • It is also possible that you’ve done something to your Eclipse project’s build path or the launcher configuration to make this happen. The latter you could test by creating a new launcher configuration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am currently running into a problem where an element is coming back from
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.