| Prev |   3     4   5 |
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)

vijayv 2010-08-21 06:32

Re: Java for Maemo 5
 
Any updates on using Java apps on the browser either on Microb or firefox using mmjre / icedtea..

Many automation and control devices used in industrial environments use java based webpages where you can log in and see the status. It would be great if someone could find a way to allow java plug into microb or firefox or any other mobile for that matter...

I am aware of debian ARM chroot + firefox but thats hardly a working solution.

ug2215 2011-07-07 18:05

Re: Java for Maemo 5
 
I have the JRE from Sun working on my N900 but can't use an installed app. I installed software from a .jnlp and used it successfully but now I cannot run it again. Does anyone know how I would run the installed java application?

nicholes 2011-07-11 14:16

Re: Java for Maemo 5
 
no no i don;t understand the thread !!(sorrry)

can any one conferm is java running on n900???????????

(i have used micoemulator for .jar files but it was not perfact)

prankster 2011-07-11 14:51

Re: Java for Maemo 5
 
java without browser plugins ,yeah available .i dont know why is everything incomplete on maemo5,anyway i love maemo or i would have passed myself to android ..

Fabry 2011-07-11 15:12

Re: Java for Maemo 5
 
New Java version from Oracle: http://talk.maemo.org/showpost.php?p...&postcount=333

moradeeb 2011-07-12 09:07

Re: Java for Maemo 5
 
i treid to dowload the file but when trying to open it it say it is corrupted

goverweg 2011-07-12 09:17

Re: Java for Maemo 5
 
You have to unpack it first. But then how does one install what's comming out of the package?

moradeeb 2011-07-12 14:54

Re: Java for Maemo 5
 
Quote:

Originally Posted by goverweg (Post 1049372)
You have to unpack it first. But then how does one install what's comming out of the package?

any one know?

SubCore 2011-07-12 15:14

Re: Java for Maemo 5
 
Quote:

Originally Posted by goverweg (Post 1049372)
You have to unpack it first. But then how does one install what's comming out of the package?

probably the same as earlier versions, IIRC that tarball doesn't contain an installer but the java binaries themselves.
just copy the contents to /opt/java and place a symlink in /usr/bin.

a more detailed description can be found here and here (in the other big java thread on t.m.o)

Fabry 2011-08-16 22:02

Re: Java for Maemo 5
 
New Java versions from Oracle: http://talk.maemo.org/showpost.php?p...&postcount=337

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


| Prev |   3     4   5 |
All times are GMT. The time now is 18:32.

vBulletin® Version 3.8.8