Skip to main content



      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 05:46 Go to next message
Eclipse UserFriend
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 01:37] by Moderator

Re: when I run java -version this is what I have [message #1802728 is a reply to message #1802706] Thu, 14 February 2019 12:16 Go to previous messageGo to next message
Eclipse UserFriend
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] Thu, 14 February 2019 20:09 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 13:36:48 EDT 2025

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

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

Back to the top