Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

standard library source location  RSS feed

 
Karsten Daemen
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to add some code on my systems java.math.BigInteger class but I can't find the source file. Is this possible? where is it's default location?

I'm working on Ubuntu 9.10


Thanks in advance!
 
Rob Spoor
Sheriff
Posts: 21090
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you are not allowed to modify BigInteger nor any other class in the API, but you can still create a sub class since BigInteger is not final.

When the JDK is installed in Windows, a file called src.zip is installed in the JDK's root folder. Now in Ubuntu that seems to be a different package altogether. In my older 8.04 installation there are no less than 9 packages for Sun's Java 6 release:
- sun-java6-bin
- sun-java6-demo
- sun-java6-doc
- sun-java6-fonts
- sun-java6-javadb
- sun-java6-jdk
- sun-java6-jre
- sun-java6-plugin
- sun-java6-source

When I then select sun-java6-jdk only the -bin and -jre packages are automatically selected. All others must be selected manually, although they are not necessary. Just select source, doc and plugin and you should be ok with the source, Javadoc and a working plugin for your web browsers.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!