Can be used with:
java -version
- path executableJAVA_HOME
- env variable/var/packages/adoptopenjdk/target/bin/java
- absolute path- spk-packager-plugin (maven) - https://github.com/lost-carrier/spk-packager-plugin
SPK Packager maven plugin example:
<plugin>
<groupId>com.losty.maven.synology</groupId>
<artifactId>spk-packager</artifactId>
<version>0.1.3</version>
<configuration>
<!-- Old official Java 8 Synology package -->
<!--<installDepPackages>Java8</installDepPackages>-->
<installDepPackages>adoptopenjdk</installDepPackages>
<java>/var/packages/adoptopenjdk/target/bin/java</java>
</configuration>
<executions>
<execution>
<id>package</id>
<phase>package</phase>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
</plugin>
- DS918+ (DSM 6.2.3) - Intel J3455 (x86_64)
- DS218play (DSM 6.2.3) - Realtek RTD1296 (aarch64)
- DS415Play - has x86 32bit cpu which AdoptOpenJDK does not support.
- Dynamically changing based on API response from AdoptOpenJDK.net
- Installer will show:
- All LTS releases (8, 11)
- Latest feature release (15)
- x64
- aarch64
- arm (arm32)
- supported 6.0+
- This version can be lowered however someone will have to test it.
- not supported yet 7.0 (requires different package structure)
- not supported yet
- This build should support SRM arm devices by default, however the support is not enabled since SPK package version can be set only for one OS platform. And someone will have to test it.
- If needed separate package can be build with:
- edit INFO:
arch="dakota ipq806x northstarplus"
- edit INFO:
firmware="1.2"
- edit INFO:
Platform support was configured according to:
Inspiration taken from: https://pcloadletter.co.uk/2011/08/23/java-package-for-synology/