Active Topics

 


Reply
Thread Tools
Posts: 915 | Thanked: 57 times | Joined on Jun 2011
#171
can we port whatsapp java app for symbian s 60 in n900?
 
Posts: 293 | Thanked: 81 times | Joined on Dec 2010 @ Al Quds, Isawiya
#172
is it ok if i copy the folder to home/opt/java with filebox instead of the method with the ip adress?
 
Posts: 560 | Thanked: 422 times | Joined on Mar 2011
#173
Originally Posted by N900L View Post
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.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#174
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.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following User Says Thank You to marmistrz For This Useful Post:
nokiabot's Avatar
Posts: 1,974 | Thanked: 1,834 times | Joined on Mar 2013 @ india
#175
and what is that java which is on websites lile sahaj
 
Posts: 4 | Thanked: 0 times | Joined on Apr 2013
#176
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?
 
Posts: 1 | Thanked: 10 times | Joined on Nov 2016
#177
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 )

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

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

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



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



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:
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...




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

EDIT:

Perhaps someone would be so kind as to help me getting JavaFX working on Maemo 5
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 ^^

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


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

Cya Pilo11

Last edited by Pilo11; 2016-11-20 at 16:48. Reason: Forgot something (chmod) ^^
 

The Following 10 Users Say Thank You to Pilo11 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 12:03.