Demonstrates bug in which JAVA_OPTS options treated as a single option by the "fully executable jar" default launcher script.
- Clone this repo
- Run
./gradlew clean demoZip
- Follow the steps printed at the end of the build.
- Copy build/distributions/launcher-java-opts-bug-1.0.zip to a Linux machine with > Java 7
- Linux user must have sudo priveleges
- In any folder, 'unzip launcher-java-opts-bug-1.0.zip'
- Run launcher-java-opts-bug-demo.sh
- If necessary, provide sudoer password
- Read and follow manual steps listed in the script's output
- Open launcher-java-opts-bug.log in this same directory
- Look for an error like:
Invalid maximum heap size: -Xmx100M -Dspring.profiles.active=myProfile
- Copy build/distributions/launcher-java-opts-bug-1.0.zip to a Linux machine with > Java 7