| Prev |   8     9   10   11     12   20 | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   JAVA on the N900 is possible! (https://talk.maemo.org/showthread.php?t=37405)

a-rohde 2010-01-11 10:58

Re: JAVA on the N900 is possible!
 
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?

shep 2010-01-12 10:31

Re: JAVA on the N900 is possible!
 
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

mankir 2010-01-12 10:40

Re: JAVA on the N900 is possible!
 
Eval-Version is useable for half a year or 5 months, i guess!

beli 2010-01-12 11:25

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by shep (Post 465991)
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

sxg75 2010-01-12 11:42

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

Olle 2010-01-12 11:46

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by shep (Post 465991)
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

shep 2010-01-12 12:03

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by sxg75 (Post 466085)
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.

sevdali 2010-01-12 12:57

Re: JAVA on the N900 is possible!
 
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?

tomchiverton 2010-01-12 13:10

Re: JAVA on the N900 is possible!
 
Is there a bug and/or brainstorm for this ?

SubCore 2010-01-12 13:20

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by tomchiverton (Post 466220)
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.


| Prev |   8     9   10   11     12   20 | Next | Last
All times are GMT. The time now is 21:58.

vBulletin® Version 3.8.8