OK3568 4.19.206 Buildroot JDK_Support
Document classification: □ Top secret □ Secret □ Internal information ■ Open
Copyright
The copyright of this manual belongs to Baoding Folinx Embedded Technology Co., Ltd. Without the written permission of our company, no organizations or individuals have the right to copy, distribute, or reproduce any part of this manual in any form, and violators will be held legally responsible.
Forlinx adheres to copyrights of all graphics and texts used in all publications in original or license-free forms.
The drivers and utilities used for the components are subject to the copyrights of the respective manufacturers. The license conditions of the respective manufacturer are to be adhered to. Related license expenses for the operating system and applications should be calculated/declared separately by the related party or its representatives.
Revision History
Date |
Version |
Revision History |
|---|---|---|
04/08/2022 |
V1.0 |
Initial Version |
Document classification: □ Top secret □ Secret □ Internal information ■ Open
Copyright
The copyright of this manual belongs to Baoding Folinx Embedded Technology Co., Ltd. Without the written permission of our company, no organizations or individuals have the right to copy, distribute, or reproduce any part of this manual in any form, and violators will be held legally responsible.
Forlinx adheres to copyrights of all graphics and texts used in all publications in original or license-free forms.
The drivers and utilities used for the components are subject to the copyrights of the respective manufacturers. The license conditions of the respective manufacturer are to be adhered to. Related license expenses for the operating system and applications should be calculated/declared separately by the related party or its representatives.
JDK Support
1. SDK Download
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download:
jdk-8u351-linux-aarch64.tar.gz
jdk-8-linux-aarch64-demos.tar.gz
2. Extract jdk-8u351-linux-aarch64.tar.gz to generate jdk1.8.0_351. For example, extract it to /home/forlinx/.
gzip -d jdk-8u351-linux-aarch64.tar.gz
tar xvf jdk-8u351-linux-aarch64.tar

3. Append the Following to /etc/profile (at the end of the file):
JAVA_HOME=/home/forlinx/jdk1.8.0_351
CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
4. Source /etc/profile
In theory, it should appear:

5. Verification
There are many test programs in jdk-8-linux-aarch64-demos.tar.gz.
Extract it to jdk1.8.0_341.
The routine d jdk1.8.0_341/sample/forkjoin/mergesort/ requires running javac in the routine directory, otherwise an error will be reported.
Test (Here, due to version mismatch between the demo and JDK, two files from jdk1.8.0_341 were copied to jdk1.8.0_351):

The test programs should now work correctly.
Other sample routines can be tested in the same way.