Tayfur Posted January 18, 2017 Posted January 18, 2017 Hello; I use first time Pi based board and Armbian. I need to Java 8 and jfx for working with java app (application.jar) Step 1: Download from JAVA/ORACLE jdk-8u111-linux-arm32-vfp-hflt.tar.gzStep 2: sudo tar jdk-8u111-linux-arm32-vfp-hflt.tar.gz -C /opt ->installs in /optStep3: sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_111/bin/javac 1Step4 :sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_111/bin/java 1Step5: sudo update-alternatives --config javacStep6: sudo update-alternatives --config javaStep7: download http://108.61.191.178/downloads/openjfx-8u40-sdk-overlay-linux-armv6hf.zipStep8: sudo unzip openjfx-8u40-sdk-overlay-linux-armv6hf.zip -d /opt/jdk1.8.0_111 After Reboot: I want to open my application sudo java -jar application.jar sudo /opt/jdk1.8.0_111/bin/java -jar application.jar Each time board blocked. where is my problem? Thank you for help Notes: installing time ; I selected = 1 (opt/jdk1.8.0_111/bin/java) For PICTURE : https://www.b4x.com/android/forum/attachments/img_20170117_195823-jpg.52074/
pansen Posted January 19, 2017 Posted January 19, 2017 Why not use OpenJDK? apt-get install openjdk-8-jdk Oracle Java is not supported by debian any more, so I suppose that also counts towards armbian. I personally would not install any java that will not be updated automatically through aptitude...
Tayfur Posted January 19, 2017 Author Posted January 19, 2017 Why not use OpenJDK? apt-get install openjdk-8-jdk Oracle Java is not supported by debian any more, so I suppose that also counts towards armbian. I personally would not install any java that will not be updated automatically through aptitude... Hello; I want use Java based application. My applicaton has jfx based application. it has a gui (forms/butons etc with java) is Openjdk correct way for my problems?
zador.blood.stained Posted January 19, 2017 Posted January 19, 2017 Last time I used a "proper" Java on Armbian I used WebUpd8 installer: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html Since they are following Ubuntu versioning, using Xenial based image is recommended. But for the "each time board blocked" problem - it can be caused by anything not related to Java version - OOM, power supply or SD card problems.
pansen Posted January 19, 2017 Posted January 19, 2017 Hello; I want use Java based application. My applicaton has jfx based application. it has a gui (forms/butons etc with java) is Openjdk correct way for my problems? Well, openjdk is java as well ^^ I do not know if it will support your application, but spending 20 seconds to install openjdk and running your app won't hurt...you can always uninstall it afterwards if it does not work.
Tayfur Posted January 21, 2017 Author Posted January 21, 2017 Well, openjdk is java as well ^^ I do not know if it will support your application, but spending 20 seconds to install openjdk and running your app won't hurt...you can always uninstall it afterwards if it does not work. Ä°nstalleed OPENjdk. and I chooesse it after run my code. >>sudo java -jar myapp.jar >>"return JAvaFx comapnet are missing " i cant solve it
Recommended Posts