Skip to content

DRAFT, trying to get java on pi

joshua255 edited this page Nov 5, 2019 · 1 revision

open a web browser on the pi and go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html download Linux ARM 32 Hard Float ABI (I got 8u221)

$ cd Downloads $ ls see the file you downloaded? make sure to use that name in the next line (in case you don't get 8u221) $ sudo tar zxvf jdk-8u221-linux-arm32-vfp-hflt.tar.gz -C /opt $ cd /opt $ ls see jdk1.8.0_221? make sure to use that name in the next lines (in case you don't get 8u221) $ sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_221/bin/javac 1 $ sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_221/bin/java 1

you can now compile with javac and run with java!

open jfx

                $ sudo apt-get install openjdk-8-jdk -y
                $ sudo apt-get install openjfx -y

https://www.raspberrypi.org/forums/viewtopic.php?t=231427

https://wimdeblauwe.wordpress.com/2017/08/26/using-javafx-on-raspberry-pi-3-with-gluon/

https://github.com/openjfx/samples/blob/master/HelloFX/CLI/hellofx/HelloFX.java

installing OpenCV (thanks space RAIDers frc#2537 http://wiki.team2537.com/wiki/VisionFramework)

############################################################################################################################################3 installing opencv https://towardsdatascience.com/setting-up-raspberry-pi-for-computer-vision-installing-opencv-e0f973d38819

$ sudo apt-get install guvcview y $ sudo apt-get install synaptic y $ sudo apt-get install python-dev (~5 min) $ sudo apt-get install python-numpy python-scipy python-matplotlib python-pandas python-nose y $sudo apt-get install build-essential cmake pkg-config y $sudo apt-get install default-jdk ant y $ sudo apt-get install libgtkglext1-dev y $ sudo apt-get install bison y $ sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui UNABLE TO LOCATE PACKAGE $ sudo apt-get install v4l-utils UNABLE TO LOCATE PACKAGE (5 min)$ sudo apt-get install qtcreator y $ sudo wget liquidtelecom.dl.sourceforge.net/project/opencvlibrary/opencv-unix/3.1.0/opencv-3.1.0.zip $ sudo unzip opencv-3.1.0.zip $ cd opencv-3.1.0 $ sudo mkdir build $ cd build (8:43)$ sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D INSTALL_C_EXAMPLES=ON –D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_OPENGL=ON -D WITH_V4L=ON –D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_TBB=ON .. DEPRECATED CMAKE STUFF WARNING! $ sudo make

############################################################################################################################################### http://www.rpiblog.com/2014/03/installing-oracle-jdk-8-on-raspberry-pi.html

Clone this wiki locally