Hello, I have a problem, because I haven't enought experience. I have a single-board computer with i.MX28 with Linux, and I need to launch java programs (jre) on it. But I can't install java. Can somebody advise something about installing java with i.MX28?
Please use the following from Community :
“All Boards Java”
https://community.freescale.com/docs/DOC-1478
Note, for i.MX28 we should use ARMv5 packages :
http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you, but I meet another problems there:
If I need
Graphical ApplicationsARMv5 Linux - Headful (Early Access)EABI, glibc 2.5, Soft Float, Little Endian
then I download this one from Oracle
ARMv5 Linux - SoftFP ABI, Little Endian3 | 101 MB | http://download.oracle.com/otn/java/ejdk/8u6-b23/ejdk-8u6-fcs-b23-linux-arm-sflt-12_jun_2014.tar.gzejdk-8u6-fcs-b23-linux-arm-sflt-12_jun_2014.tar.gz |
There are some "bin" directories with "java"
I put them on i.MX28, go to any of directory with java and write ./java -jar test.jar
So I get my Hello in console. But how to run program with visual forms, I get this error
Exception in thread "main" java.lang.UnsatisfiedLinkError: /ejdk1.8.0_06/linux_a
rm_sflt/jre/lib/arm/libawt_xawt.so: libXtst.so.6: cannot open shared object file
: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1814)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1083)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1835)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1119)
at java.awt.Toolkit$3.run(Toolkit.java:1651)
at java.awt.Toolkit$3.run(Toolkit.java:1649)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1648)
at java.awt.Toolkit.<clinit>(Toolkit.java:1683)
at java.awt.Component.<clinit>(Component.java:595)
Is it a problem with libXtst?
also Xfbdev on i.MX give this messages:
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/freescale:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
mxsfb_pan_display: var->xoffset 0, info->var.xoffset 0
mxsfb_check_var: xres 640, yres 480, bpp 16
get_matching_pentry: 480:640:16 vs 480:640:16
get_matching_pentry: 480:640:16 vs 480:640:16
mxsfb_pan_display: var->xoffset 0, info->var.xoffset 0
(EE) XKB: Couldn't open rules file /usr/share/X11/xkb/rules/base
(EE) XKB: No components provided for device Virtual core keyboard
The error that you are having in the XFbdev it is because the FSL image for the i.MX28 does not have X11 support, you may need to add some X11 server first. I would also recommend that you contact the people from Oracle, since the BSP of the i.MX28 was made for Console Only. So that it is the case.
Have a great day,
Jaime
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you, for answer
And how can I add X11 server? You mean select X11 in ltib -m config and select "build full modular X server"? If yes, I already select it, but still have the same error. How can I start it, if it's needed?