I’m building an image from scratch and would like to include java. I just want to make sure that my configuration is fine.
I’m following Toradex tutorial.
But there is no information about 2.6 images , e.g :
repository version known to work with V2.5 images META_JAVA=0d7ba0ff39a332b0f93c4958370b2c7db9ea0e30
So I´m including the latest from git repository:
Added java layer to build/conf/bblayers.conf :
#OpenJDK Installation PREFERRED_PROVIDER_virtual/java-initial = "cacao-initial" PREFERRED_PROVIDER_virtual/java-native = "jamvm-native" PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native" IMAGE_INSTALL_append = "openjdk-8-jre \ jamvm \
But at meta-java page it’s suggested to use java-initial-native instead of java-initial
PREFERRED_PROVIDER_virtual/java-initial-native = “cacao-initial-native”
Which one is the right to use?
I saw elsewhere the following options to set. Is it necessary?
#For openjdk7: PREFERRED_VERSION_openjdk-7-jre = "25b30-2.3.12" PREFERRED_VERSION_icedtea7-native = "2.1.3" #Sometimes the following is needed: #PREFERRED_PROVIDER_openjdk-6-jre = "openjdk-6-jre" #PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre"