Java – how to create a compact configuration file
I am searching for a way to create compact configuration files in Java 1.8 You can create a compact configuration file because the here representation is only used for embedded versions
Solution
Short answer
JEP 161 says that the configuration file must be Java 8 They are To create them, use the make profile
A slightly longer answer
You suspect that the configuration file may only exist on the embedded platform, and @ skiwi's comments confused me a little, so I decided to check it myself
Openjdk example
To check the configuration file, I took openjdk I built it on my Ubuntu x86 (I read this and this readme file, the process is very simple) Instructions complete all commands However, there is no compact contour after that Then I see the makefile help section and call the make configuration file success
$hg clone http://hg.openjdk.java.net/jdk8/jdk8 $cd jdk8 $bash ./get_source.sh $bash ./configure $make all $make profiles
Then I found the 'images' directory and went there
$cd build/linux-x86-normal-server-release/images/ $export PATH=j2re-compact1-image/bin/:$PATH $java -version openjdk version "1.8.0-internal" OpenJDK Runtime Environment (build 1.8.0-internal-fasdaq_2014_03_22_20_17-b00,profile compact1) OpenJDK Server VM (build 25.0-b70,mixed mode)
As can be seen from the output:
>How it works > it's not embedded > it's a configuration file for compact1 > it's 1.8 0 version
About embedded and link you provide
There is a jrecreate tool that allows you to use the configuration file / VM / extension you want (and not include what you don't want)
There is no such tool in openjdk Jrecreate is part of embedded Java, which you can read from release notes This is a problem for me: you want to create a compact configuration file for non embedded Java But you have the ability to do this:)