OpenJDK: JDK on headless machine, no X, no GNOME etc.

Maurizio Cimadamore maurizio.cimadamore at
Fri Jul 18 21:17:47 UTC 2014

If you are considering JDK 8, I believe compact profiles [1] is what you 
need. You can contact core-libs-dev at for more info on 
the feature and/or build-dev at if you need help with the 


[1] -

On 18/07/14 22:03, allicoder wrote:
> Hi all,
> I have a headless Debian machine (Wheezy), and I'd like to use it for
> some Android (ROM) development. This means I need Java on it, but the
> default packages (openjdk-7-jdk et al) pull in X and GNOME packages and
> lots of other things I don't need. openjdk-7-jre-headless isn't going to
> help because it won't have javac etc. Is there a way to install the JDK
> tools on this box without having to pull in all the graphical
> dependencies I won't need? I'm happy to rebuild OpenJDK if needed.
> Best wishes,
> allicoder.

More information about the discuss mailing list