Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm working on a CentOS 6.3 x86_64 minimal OS (installed using the netinstall ISO).

This system is not expected to run anything beyond console apps/services and Tomcat7. When I attempt to install OpenJDK 1.7, it lists some x11 packages as dependencies. For my purpose, not even awt is needed. And therefore, if possible, I would like to avoid installing all the fonts, x11, etc.

Does there exist a Java/JRE version that comes without the UI pieces?

share|improve this question
    
I believe Java installs as a whole package, removing classes can get you troubles, besides, it only take you ~250 MB –  warl0ck Apr 3 '13 at 9:07
    
I'm afraid there's no such compact version. Some web applications still need fonts to render a bitmap picture and display it to end user. If you don't like those dependencies, maybe you can try the JDK shipped by Oracle. –  LiuYan 刘研 Apr 3 '13 at 9:30
add comment

1 Answer

up vote 2 down vote accepted

I don't know CentOS, 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. If your distribution doesn't include it, you can maybe have a look at these to see how it is build.

share|improve this answer
    
Thanks @StreakyCobra. Looks like CentOS does not know of one yet. I'll mark your response as the answer. –  Parag Doke May 3 '13 at 3:39
    
There is a similar question on SuperUser where we are looking for a solution (in the comments), but without results for the moment. –  StreakyCobra May 3 '13 at 7:49
add comment

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.