Slashdot is powered by your submissions, so send in your scoop


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 internet speed test! ×

Building the JDK on Debian GNU/Linux 27

Ivan Tarasov writes "Ever wanted to hack the JDK sources to get rid of some nasty bug which bothered you for so long, but was embarrassed by the complexity of the JDK build process? Now you have a good tutorial on how to do it on Debian GNU/Linux: last night I posted a blog entry on how to build the JDK 6 (sources of which are available at the Peabody site). This entry describes in detail which packages you need installed, how do you tweak the sources to make them buildable and how to proceed with the build. The build process for other Linux distributions must be very similar, so don't turn away if you don't use Debian. There is also a nice blog entry by Cay Horstmann "Honey, I built the JDK! (on Ubuntu)"."
This discussion has been archived. No new comments can be posted.

Building the JDK on Debian GNU/Linux

Comments Filter:
  • When the code gets complex to a high degree, how can you ever be sure it's a bug in the JDK versus a bug in your code?
  • Honestly? (Score:4, Funny)

    by zBoD ( 86938 ) <> on Thursday August 24, 2006 @12:43PM (#15970848) Homepage Journal
    > "Ever wanted to hack the JDK sources to get rid of some nasty bug which bothered you for so long, but was embarrassed by the complexity of the JDK build process?"

    => no.
  • GCJ (Score:3, Interesting)

    by legoburner ( 702695 ) on Thursday August 24, 2006 @01:00PM (#15971041) Homepage Journal
    Just want to mention GCJ [], the java native compiler, part of the GNU tools. It still has quite a way to go, but for some standalone applications it is getting quite nifty. I am not sure what niche it fills yet but linking a native binary built from java source code feels strange.
    • by Golthar ( 162696 )
      What about JSP's?

      Because the classes are generated at runtime, GCJ forces you to run these at interpreted speed and can't compare with the current hotspot VM's
      Any big webapplication would be doomed unless you precompile the whole thing into a .so (yuck?)
      The biggest advantage of using GCJ would probably be in the fact that you don't need to lug a whole JVM (which is around 10 Mb) for a simple application.

    • Re: (Score:2, Informative)

      by kwark ( 512736 )
      Once I thought that using gcj might be fine for running cli java programs but I found that gcj had the following problems:
      -the ahead of time compiling requires ALL sources to be compiled even though they are not needed at runtime. eg commons-cli.jar depends on commons-lang.jar in gcj as opposed to use in the Sun JVM.
      -it is very slow in some areas (about 3 times slower during disk IO and md5 checksumming)
      -I couldn't get it to create static binaries (dev. on Debian/unstable to run on Debian/stable), but this
  • I've heard Java is to be open sourced, but what is the JDK license at the moment? To what extent can I modify and redistribute?
    • Re: (Score:3, Informative)

      by ForumTroll ( 900233 )
      IIRC you can modify it as much as you like for your own personal use but you can't redistribute it.
  • by Anonymous Coward uilding []

    "Does java still take an hour and a half to compile 'hello troll!' on my 486?

    Posted by trolly troller on August 26, 2006 at 05:12 PM PDT "

There are no games on this system.