Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    JAVA on the N900 is possible!

    Reply
    Page 10 of 39 | Prev |   8     9   10   11     12   20 | Next | Last
    a-rohde | # 91 | 2010-01-11, 10:58 | Report

    Got it to work too. Thank's DAK for the nice instructions.

    Now I have one question which i don't know should be solved in java or linux. Most of my Swing GUI's are created in horisontal mode, but when I launch them on the phone offcourse they will be launched in landscape and become scaled in the wrong way.

    Doe's anyone know how to rotate the app 90 degrees, still making the buttons and so work?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    shep | # 92 | 2010-01-12, 10:31 | Report

    Thanks for the great work everyone.

    I have copied the ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-headless-eval-30_jul_2009.tar.gz file to my N900, then I followed the instructions to extract it.

    sudo gainroot
    mkdir /home/opt/java
    cd /opt/opt
    tar xzf /home/user/MyDocs/*.tar.gz

    Then I typed
    ln -s /home/opt/java/ejre1.6.0_10/bin/java /usr/local/bin/java

    I edited my /etc/profile and added the :/usr/local/bin to the export PATH= line.

    When I go into XTERM without doing sudo gainroot now and type java I get an error "Java SE Embedded Evaluation Version Initialization Error...try again as root". But, when I sudo gainroot and type java I get the message "/bin/sh: java: not found"

    Any ideas?


    Also...on the J2ME front, I downloaded the javame_0.1-1_armel.deb file today and tried to install it, but Red Pill Mode is gone from the fireware now! Anyone know how I install a .deb file without Red Pill mode?


    Thanks,

    Shep

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by shep; 2010-01-12 at 10:48.

     
    mankir | # 93 | 2010-01-12, 10:40 | Report

    Eval-Version is useable for half a year or 5 months, i guess!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    beli | # 94 | 2010-01-12, 11:25 | Report

    Originally Posted by shep View Post
    Thanks for the great work everyone.

    I have copied the ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-headless-eval-30_jul_2009.tar.gz file to my N900, then I followed the instructions to extract it.

    sudo gainroot
    mkdir /home/opt/java
    cd /opt/opt
    tar xzf /home/user/MyDocs/*.tar.gz

    Then I typed
    ln -s /home/opt/java/ejre1.6.0_10/bin/java /usr/local/bin/java

    I edited my /etc/profile and added the :/usr/local/bin to the export PATH= line.

    When I go into XTERM without doing sudo gainroot now and type java I get an error "Java SE Embedded Evaluation Version Initialization Error...try again as root". But, when I sudo gainroot and type java I get the message "/bin/sh: java: not found"

    Any ideas?


    Also...on the J2ME front, I downloaded the javame_0.1-1_armel.deb file today and tried to install it, but Red Pill Mode is gone from the fireware now! Anyone know how I install a .deb file without Red Pill mode?


    Thanks,

    Shep
    Quite logical: you exported the /usr/local/bin/ folder for the default user, but not for the root ...

    You could run it as root by typing the full path instead of just 'java'

    Another option is to make the default user owner of the ejre directory, then the user has all permissions. You can do this by the command
    chown -R user:users /home/opt/java/ejre1.6.0_10

    Hope this helps

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to beli For This Useful Post:
    iKneaDough, qole, shep

     
    sxg75 | # 95 | 2010-01-12, 11:42 | Report

    Question to the posted .deb file above - when there's JSE why would someone need MicroEmulator from that package as well? Thanks in advance!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Olle | # 96 | 2010-01-12, 11:46 | Report

    Originally Posted by shep View Post
    Also...on the J2ME front, I downloaded the javame_0.1-1_armel.deb file today and tried to install it, but Red Pill Mode is gone from the fireware now! Anyone know how I install a .deb file without Red Pill mode?
    in terminal under root
    with dpkg -i javame_0.1-1_armel.deb

    and look what $PATH displays under user and root

    € @beli
    the /etc/profile-file should work as root&user

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Olle; 2010-01-12 at 12:01.
    The Following User Says Thank You to Olle For This Useful Post:
    shep

     
    shep | # 97 | 2010-01-12, 12:03 | Report

    Originally Posted by sxg75 View Post
    Question to the posted .deb file above - when there's JSE why would someone need MicroEmulator from that package as well? Thanks in advance!
    I have some old J2ME apps that I had written that I want to continue using...didn't think they would work under the J2SE.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    sevdali | # 98 | 2010-01-12, 12:57 | Report

    I'm very excited to hear that Java (not j2ME) is working on N900.

    My question is:

    Why Nokia is not installing this officially to every N900?

    It will be good for the marketing (which shows the power of n900 it is not a toy). It will be good for us (Java users and developers). Why should we try hacky ways to install it? Why should we fear that what will happen after 6 months of evaluation time?

    If it is about money, I believe Sun (now Oracle) will license it less than $9.99 per device.

    How can we let Nokia that we want Java in N900.

    Any thoughts?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to sevdali For This Useful Post:
    frals, iKneaDough, qole

     
    tomchiverton | # 99 | 2010-01-12, 13:10 | Report

    Is there a bug and/or brainstorm for this ?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    SubCore | # 100 | 2010-01-12, 13:20 | Report

    Originally Posted by tomchiverton View Post
    Is there a bug and/or brainstorm for this ?
    yes, there are brainstorm proposals for Java ME / Java SE Runtimes for the N900.

    they are linked to in this post.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to SubCore For This Useful Post:
    CrashandDie, iKneaDough, qole

     
    Page 10 of 39 | Prev |   8     9   10   11     12   20 | Next | Last
vBulletin® Version 3.8.8
Normal Logout