• Post Reply Bookmark Topic Watch Topic
  • New Topic

Eclipse can't find parseInt(), and neither can I  RSS feed

 
Jim Venolia
Ranch Hand
Posts: 312
2
Chrome Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get an exception because I'm calling Integer.parseInt() on a null String (that's the bug I'm trying to fix). Eclipse says "Integer.parseInt(String, int) line: Not available", and the debug window has in Red "Source not found", with a button to "Edit Source Lookup Path..."

I've looked around but don't see the source to Integer.parseInt() anywhere. Where should it be?

 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jim Venolia wrote:I get an exception because I'm calling Integer.parseInt() on a null String (that's the bug I'm trying to fix). Eclipse says "Integer.parseInt(String, int) line: Not available", and the debug window has in Red "Source not found", with a button to "Edit Source Lookup Path..."

I've looked around but don't see the source to Integer.parseInt() anywhere. Where should it be?


The source code for the core libraries, is located in a "src.zip" file. And that file should be located where you installed the JDK. You need to point Eclipse to that file.

Henry

 
Jim Venolia
Ranch Hand
Posts: 312
2
Chrome Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I think my whole project (created 30 minutes ago) is farked. I wanted Projects->Toothpicks->src, instead under Projects I have .classpath, .project, bin, src, and Toothpicks. Toothpicks is empty.

Needless to say, .classpath and friends should have all ended up under Toothpicks.

sigh.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!