Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Java for Maemo 5

    Reply
    Page 18 of 18 | Prev | 8   16     17   18 |
    trisha02 | # 171 | 2011-08-17, 05:46 | Report

    can we port whatsapp java app for symbian s 60 in n900?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    N900L | # 172 | 2011-08-17, 09:00 | Report

    is it ok if i copy the folder to home/opt/java with filebox instead of the method with the ip adress?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    demolition | # 173 | 2011-08-17, 17:06 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    marmistrz | # 174 | 2013-07-17, 11:37 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to marmistrz For This Useful Post:
    nokiabot

     
    nokiabot | # 175 | 2013-07-18, 04:13 | Report

    and what is that java which is on websites lile sahaj

    Edit | Forward | Quote | Quick Reply | Thanks

     
    king | # 176 | 2013-11-14, 03:56 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Pilo11 | # 177 | 2016-11-20, 10:00 | Report

    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:
    Originally Posted by
    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

    Edit | Forward | Quote | Quick Reply | Thanks

    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:
    Android_808, eekkelund, freemangordon, hrbani, kempus5, mp107, peterleinchen, sicelo, trx, xiskillo

     
    Page 18 of 18 | Prev | 8   16     17   18 |
vBulletin® Version 3.8.8
Normal Logout