Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to compile OpenJDK 7 on a headless RHEL server. I have no desire to install a bunch of miscellaneous X dependencies just to build it.

Is there any way to compile OpenJDK 7 without Swing/AWT support (and hence, without the need to link against /usr/lib{arch}/X11 at build-time?

share|improve this question
    
You might have more luck at unix.stackexchange.com –  Alex Apr 30 '13 at 21:19

1 Answer 1

I don't know RHEL, but usually their is an OpenJDK *-headless package in distributions that doesn't include GUI components, and normally no dependencies to X11 packages.

For instance debian provide one package and ArchLinux too

share|improve this answer
    
Correct, RHEL/CentOS/Fedora do not provide an analogue to those. –  javanix May 1 '13 at 13:38
    
So, maybe looking at the ArchLinux PKGBUILD script that generates the package can give you some hints. –  StreakyCobra May 1 '13 at 13:44
    
Oh, thanks - I was looking at the Debian sources and it is U-G-L-Y –  javanix May 1 '13 at 13:53
    
But after a quick look at the PKGBUILD, I am not sure this will help because I suspect that they build java with the GUI, and then just copy what is needed into the -headless one. –  StreakyCobra May 1 '13 at 14:08
    
Yeah, I think you are right, but this does get me a little down the path. I really feel like there have to be compile-time options floating around somewhere to do it but Oracle's stupid build infrastructure is nigh-impossible to grok. –  javanix May 1 '13 at 15:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.