Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » when I run java -version this is what I have(Attach the Java Source Code)
when I run java -version this is what I have [message #1802706] Thu, 14 February 2019 10:46 Go to next message
Marcus Martin is currently offline Marcus MartinFriend
Messages: 1
Registered: February 2019
Junior Member
I cannot for the life of me attach the java source code to eclipse so I can see the inner workings of the language. Not even something as simple as the String Class.

when I run java -version this is what I have:

java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)


And in eclipse when I attach it It says:

The JAR file "C:\Program Files\Java\jre6\jdk-6u14-fcs-src-b08-jrl-21_may_2009.jar" 
has no source attachment.


What am I doing wrong?

mybkexperience

[Updated on: Tue, 19 February 2019 06:37]

Report message to a moderator

Re: when I run java -version this is what I have [message #1802728 is a reply to message #1802706] Thu, 14 February 2019 17:16 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Quote:
I cannot for the life of me attach the java source code to eclipse


Do you care to tell us what steps you tried?
Re: when I run java -version this is what I have [message #1802740 is a reply to message #1802728] Fri, 15 February 2019 01:09 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
Jre's don't include source. In order to see the source code, you need to install a JDK and be sure to select to install source. This will add a src.zip file into the root of the JDK. The src.zip file contains the source code. It will be found automatically if you select the JDK installation as the default JRE in your Eclipse preferences.
Previous Topic:After Restart projects missing!
Next Topic:Firefox fails to open an url with the error: Exception... "Component returned failure code: 0x8
Goto Forum:
  


Current Time: Sat Apr 27 05:24:26 GMT 2024

Powered by FUDForum. Page generated in 0.03591 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top