maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Java for Maemo 5 (https://talk.maemo.org/showthread.php?t=31678)

trisha02 2011-08-17 05:46

Re: Java for Maemo 5
 
can we port whatsapp java app for symbian s 60 in n900?

N900L 2011-08-17 09:00

Re: Java for Maemo 5
 
is it ok if i copy the folder to home/opt/java with filebox instead of the method with the ip adress?

demolition 2011-08-17 17:06

Re: Java for Maemo 5
 
Quote:

Originally Posted by N900L (Post 1071657)
is it ok if i copy the folder to home/opt/java with filebox instead of the method with the ip adress?

Is this a dual post perchance? I hope my response in the other thread is useful.

marmistrz 2013-07-17 11:37

Re: Java for Maemo 5
 
So, why should we use headful instead of headless?

Btw. are all the "no hardfp on softfp" people talking ********? http://talk.maemo.org/showthread.php?t=69374 recommends hard vfp and it works.

nokiabot 2013-07-18 04:13

Re: Java for Maemo 5
 
and what is that java which is on websites lile sahaj:)

king 2013-11-14 03:56

Re: Java for Maemo 5
 
has anybody installed java se for embedded 7 on n900? i know there is a article for java se for embedded 6 but when following the very same steps it does not work....the s6 is no longuer available so I could only get the 7....help, anybody?

Pilo11 2016-11-20 10:00

Re: Java for Maemo 5
 
I tried to install Java 8 on Maemo 5 (N900) and it worked (headless). But I wanted to run my own Java applications (with GUI) to make my N900 useable in 2016 (Telegram for Java, own java, applications, ...)

Then I read that "Oracle has withdrawn their support for JavaFX Embedded [...]"
(h t t p s : / /jaxenter.com/jdk-arm-without-javafx-end-javafx-embedded-114212.html) :(

I decided to work on Java Swing at least. But I only found headless embedded Java environments...

Nevertheless I build my own JAVA JRE 8 to launch Java Swing application on my N900:

I downloaded Java SE Embedded (SoftFP, LE):
h t t p : / /download.oracle.com/otn-pub/java/ejdk/8u111-b14/ejdk-8u111-linux-arm-sflt.tar.gz
or
h t t p : / /www.oracle.com/technetwork/java/embedded/embedded-se/downloads/index.html

(the HardFloatingPoint version did not work for me :D)

and copied it on the device,
extracted the archive (to /opt/ejdk-8u111/)

Code:

tar xvzf ejdk-8u...
and ran the /opt/ejdk-8u111/bin/jrecreate.sh:
(more information: h t t p s : / /docs.oracle.com/javase/8/embedded/develop-apps-platforms/jrecreate.htm)

Code:

./opt/ejdk-8u111/bin/jrecreate.sh --dest /opt/jre_builded
This will create the JRE in the jre_builded folder without Java Swing support (headless) and trust me it is going to take very long (at least 4-5 hours).

After 100 teas (or more ^^) I linked the java executable file to my /usr/bin

--------------------------------------------------------------------

EDIT:

I forgot to mention that you need to do this ^^:

Code:

chmod +x /opt/jre_builded/bin/java
Without doing this you are not able to use the link to /usr/bin :D

--------------------------------------------------------------------

Code:

ln -s /opt/jre_builded/bin/java /usr/bin
Now, it was time to test a simple JAVA application (hello world) and it worked :cool:

https://s14.postimg.org/mtnnwy5td/Sc...120_102340.png

But I also wanted to run my Java Swing helloWorld test application.
Something strange happened:

https://s17.postimg.org/lwhvtpzkf/Sc...120_103336.png

The created JRE is headless :(

I googled for a while and found this StackOverflow topic (I love StackOverflow!)

h t t p : / /stackoverflow.com/questions/34643571/how-do-i-make-jrecreate-compile-a-headful-jre/34644174#34644174

This guy shared a very funny idea with the community. He said:
Quote:

Apparently including the lib/arm/libawt_xawt.so file from another distribution (like the already headful HardFP one) is enough to tell Java to not be in headless mode anymore, and to properly load the awt library.
Unfortunately Oracle does not mention anything about their JAVA 8 Embedded archives if they are headful or not.

Proof:
I downloaded
Code:

ARMv5/ARMv6/ARMv7 Linux - SoftFP ABI, Little Endian 2
which is headless.
I downloaded
Code:

ARM v6/v7 Linux - VFP, HardFP ABI, Little Endian 1
which is headful.

But it is not written down on the website...

So what I did and what you can do is grabbing this little
Code:

lib/arm/libawt_xawt.so
file from the headful HardFP archive and copying it to the complete created JRE folder
Code:

/opt/jre_compiled/lib/arm/libawt_xawt.so
And you were done...

https://s14.postimg.org/6jxhu1v5d/Sc...120_102518.png
https://s14.postimg.org/g5r2acmb5/Sc...120_102529.png

--------------------------------------------------------------------

EDIT:

Perhaps someone would be so kind as to help me getting JavaFX working on Maemo 5 :D
I'll try it the next weeks but it will be almost impossible to do this without thinking about it hard ^^
and without wasting weekends for this shhhhhh... shaving cream
Excuse my language ^^ :cool:

If you want to help me or if you have any ideas, please write me: pilo.eleven@mail.ru
:D

--------------------------------------------------------------------

Cya Pilo11


All times are GMT. The time now is 05:08.

vBulletin® Version 3.8.8