Jump to content

OPi PC Plus intall Java8


Tayfur

Recommended Posts

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.gz
Step 2: sudo tar jdk-8u111-linux-arm32-vfp-hflt.tar.gz -C /opt ->installs in /opt
Step3: sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_111/bin/javac 1
Step4 :sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_111/bin/java 1
Step5: sudo update-alternatives --config javac
Step6: sudo update-alternatives --config java
Step7: download http://108.61.191.178/downloads/openjfx-8u40-sdk-overlay-linux-armv6hf.zip

Step8: 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/

 

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines