Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 11318|Reply: 6

Embedded Java8 and Netbeans

[Copy link]

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
Post time 2016-2-17 23:02:56 | Show all posts |Read mode
Edited by xwalter at 2016-2-17 23:11

I use java 8 and Netbeans to develop with my orange pi plus 2
Following this istructions I hope you get help .
First of all you have to update and upgrade your system by typing

  1. sudo apt-get update
  2. sudo apt-get upgrade
Copy the Code

Download the embedded java 8 jdk from Oracle at  http://www.oracle.com/technetwor ... nloads-2133151.html
Select jdk-1.8.0_73-linux-arm32-vfp-hflt.tar.gz and download it into Downloads folder
Move the terminal in this folder and type

  1. sudo tar zxvf jdk-8u73-linux-arm32-vfp-hflt.tar.gz -C /opt
Copy the Code

Set default java and javac to the new installed jdk8.

  1. sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_73/bin/javac 1
  2. sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_73/bin/java 1
Copy the Code

And then
  1. sudo update-alternatives --config javac
  2. sudo update-alternatives --config java
Copy the Code

After all, verify with the commands with -version option.
  1. java -version
  2. javac -version
Copy the Code

Now you can download and install Netbeans 8 as well , to this link https://netbeans.org/downloads/index.html
Download the complete version with Platform  " OS indipendent zip"
Navigate to Download folder again and unzip the netbeans.8.1.xxxxx.zip  file .
Navigate until ...../home/orangepi/<yournetbeansfolder>/bin
Give the permission and the file executable with
  1. chmod +x netbeans
Copy the Code

After that ,to run Netbeans you have to type
  1. ./netbeans
Copy the Code

Then you can install modules and plugin for several language such C/C++, PHP and java of course
It's working well .
ciao
Walter

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
 Author| Post time 2016-2-20 09:41:59 | Show all posts
Edited by xwalter at 2016-2-20 09:48

Carry on and let's use the serial port of our orangepi .
After install java jdk 8 and Netbeans and both working , now we want to use the serial port
First of all .....
  1. sudo apt-get install librxtx-java
Copy the Code

This will install the tool and you will find the RXTXcomm.jar into  /usr/share/java
You have to add this library in Netbeans as external jar/folder
But for the runtime it needs also a .so file which is the same like .dll in windows .
so=shared object , is a dinamically library used at runtime which connects itself to the device driver.
After many nightmares and troubles I have found the best solution for that .
After the installation of the library you will also find  into  /usr/lib/jni a lot of .so files but what you are interested is the librxtxSerial.so.
The problem is that Netbeans search this .so file somewhere like java.library.path and I didn't solve these issues. But I solved int his way ....
In Netbeans , right click above your project (in the tree at left) and select
-> Properties -> Run -> VM Options  (is a richtext box ) and to add this line
  1. -Djava.library.path="/usr/lib/jni/"
Copy the Code

Click ok and go out and all is done.
Now if you run your project everythings  are ok .
Here you can find a complete project which uses the serial port by using threading technique as well.
http://rxtx.qbang.org/wiki/index ... ith_the_serial_port
ciao

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
 Author| Post time 2016-2-20 23:28:22 | Show all posts

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
 Author| Post time 2016-2-22 09:49:13 | Show all posts
now the problem is how to unlock the  ttyS0 in the system.
I'm trying with gtkterm , minicom and else but nothing to do
The serial port of orangepi is sleeping , it doesn't receive and it doesnt'show me anything on the screen .
Where to find the file and set "I Want to use my serial port "

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
 Author| Post time 2016-2-23 21:21:33 | Show all posts
ok it works
Reply

Use magic Report

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
 Author| Post time 2016-2-24 11:13:21 | Show all posts
Edited by xwalter at 2016-2-24 22:28

Communication between orange pi and Visual Studio 2015 over the serial port
https://youtu.be/Vz00VZiCzcY

95

Threads

876

Posts

1923

Credits

Gold member

Rank: 6Rank: 6

Credits
1923
Post time 2021-11-23 03:55:07 | Show all posts

Berguna Judi Slot Gacor Toko

Untuk wanita bertanya tentang slot gacor selain pragmatic, nama nama situs judi slot online deposit pulsa tanpa potongan, link slot deposit pulsa 5000 tanpa potongan,  Saya sangat merekomendasikan ini luar biasa judi slot toko or slot gacor hari ini, situs judi slot online resmi terpercaya, bandar judi slot online deposit pulsa tanpa potongan, judo sloth gaming discord, judo sloth gaming real name, dan juga ini baru slot domain di atas ini situs judi slot mandiri online 24 jam, situs slot online gacor hari ini, daftar slot deposit pulsa tanpa potongan bet kecil, situs slot joker deposit pulsa indosat, slot pulsa gacor, dan juga ini peringkat teratas slot gacor online blog which is also great. Also have a look at this lihat slot situs belum lagi ini situs judi slot online gampang menang, qq slot deposit pulsa303, situs judi resmi deposit pulsa tanpa potongan, slot gacor 2021, slot gacor terpercaya, di atas ini lihat slot situs bersama semua ini slot deposit pulsa xl 5000 tanpa potongan 2021, daftar situs judi slot online terpercaya deposit pulsa tanpa potongan, situs slot deposit via pulsa xl, slot online yang lagi gacor hari ini, link slot gacor juli 2021, bersama semua ini keren situs judi situs yang juga layak untuk dilihat. Saya juga merekomendasikan ini baru slot pulsa situs bersama semua ini bo slot gacor terpercaya, situs slot gacor malam ini, lvobet bandar judi slot online deposit pulsa tanpa potongan pulsa888.com/, situs judi slot online deposit via pulsa xl, bo slot gacor dan terpercaya, dan juga ini hebat judi slot forum dan juga ini gadun slot situs judi slot online promo bonus jackpot terbesar, agen judi slot online terbaik, situs judi slot online deposit pulsa terpercaya, game slot via pulsa indosat, web slot gacor hari ini, dan juga ini lihat slot gacor online blog yang juga hebat. Akhirnya, lihat ini terbaik situs judi slot toko and slot online deposit pulsa tanpa potongan 2021, qq slot deposit pulsa303, situs judi togel online24jam terpercaya 2020,  untuk memastikan ekstra. Lihat lainnya Recommended Thai Baccarat Site 5886ea4
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2021-12-4 19:57 GMT+8 , Processed in 0.035162 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list