• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to just get java source code (src.zip), without installing full JDK ?  RSS feed

 
Rahul Chhabra
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

In Eclipse, I am trying to attach source code for Java classes.

I have only JRE installed. For getting src.zip file, do I need to install full JDK or is there a way to just get src.zip.
I tried searching, but not able to find only src.zip file.

Thanks.
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Confusing. You say you're searching for src.zip file. What do you mean by that?


The Eclipse web site says that Eclipse will run with just the JRE installed, but I read in other places that some functionality may be missing. Therefore, you should be able to use Eclipse to edit source code without the JDK installed, but I'm confused what the "src.zip" file is, why/where you're looking for it, and what you plan or expect to do with it.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, you cannot download the src.zip in isolation. You will need to obtain the JDK. Are you interested in the actual source or the API docs through Eclipse?

@Greg
The src.zip contains the source code for the java API. In eclipse, if you have configured the source, you can open the declaration by hitting F3 or the API doc by hitting F2
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote: or the API doc by hitting F2

That is related to Javadoc location. without source attachment also, It will work.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh, You are correct . when I plug out my internet, I understand . thanks
 
Rahul Chhabra
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maneesh.. I am looking for only source code.

But seems, Oracle does not allow this. Installing full JDK..
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course you can create a backup after installing, so you then can copy it to any other PC you want to.
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seetharaman Venkatasamy wrote:The src.zip contains the source code for the java API. In eclipse, if you have configured the source, you can open the declaration by hitting F3 or the API doc by hitting F2


Thanks. Everyone knew what src.zip was and what to do with it but me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!