how to build OpenJDK from source

Asked by Avin on 2016-06-06

I am refereeing to this tar file
I am not able to find any MAKE in this source

but I am able to find in this link

please help me how to build from link1


Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Solved by:
Manfred Hampl
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

For Oracle Java you can use:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Why do you want to compile OpenJDK ?

Revision history for this message
Avin (avinashub211) said :

the directory structure in link1 and link2 are not same, that's what my concern is.
then what's the use of downloading source from link1, if I am not able to build from the source

I am trying to build a debug version of OpenJDK in link1


Revision history for this message
Best Manfred Hampl (m-hampl) said :

Oracle jdk and the jdk from openjdk are not the same.
Oracle's version has certain licensing restrictions that are different from those that OpenJDK has.

Debug symbols for openjdk8 are available in the standard Ubuntu repositories in the package openjdk-8-dbg

You have to understand that on Ubuntu you always have two source packages that go together.
In this case openjdk-8_8u91-b14.orig.tar.xz containg the original source. and the Ubuntu (or Debian) additions and modifications in a file named something like openjdk-8_8u91-b14-0ubuntu4~16.04.1.debian.tar.xz

This second package should contain everything needed in addition to the original source package, to build the .deb packages with the debuild command.

Revision history for this message
Avin (avinashub211) said :

Thanks Manfred Hampl, that solved my question.