#is there an openjdk rpm that doesn't include the graphical components of the jdk?
1 messages ยท Page 1 of 1 (latest)
<@&987246964494204979> please have a look, thanks.
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
Yes, there is an OpenJDK package called "java-1.8.0-openjdk-headless" that excludes the graphical components of the JDK. This package is specifically designed for systems where minimal resources are desired or where graphical support is not needed.
You can install this headless version of OpenJDK using the following command on CentOS/RHEL-based systems:
sudo yum install java-1.8.0-openjdk-headless
Alternatively, on Debian/Ubuntu-based systems, you can use the following command:
sudo apt-get install openjdk-8-jre-headless
By installing this headless version of OpenJDK, you can reduce the overall footprint of the JDK on your system by excluding unnecessary graphical components. This can be particularly useful in server environments or when running Java applications that do not require a graphical user interface.
Keep in mind that while the headless version excludes graphical components, it still provides all the core functionality and libraries of the standard JDK for running Java applications efficiently.
it doesn't include javac :/, hence the question
You could do that โ
Not sure if they won't contain a part of graphic components
But, why?
install the jdk, not the jre
why would you need that? you can use the module system
I'm in a server environment where there isn't a display to render graphics on in the first place
as long as you dont include java.desktop components, they wont be included in your app when packaging. youll have to use jlink to create a runtime though
i mean, servers can still render without a display (hence headless mode)
server sided rendering is actually pretty common these days
huh, til