Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on Jan 2010
#91
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's Avatar
Posts: 85 | Thanked: 65 times | Joined on Jan 2010 @ Ireland
#92
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

Last edited by shep; 2010-01-12 at 10:48.
 
mankir's Avatar
Posts: 276 | Thanked: 224 times | Joined on Dec 2009 @ Frankfurt, Germany
#93
Eval-Version is useable for half a year or 5 months, i guess!
 
Posts: 80 | Thanked: 114 times | Joined on Dec 2009 @ Belgium
#94
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
 

The Following 3 Users Say Thank You to beli For This Useful Post:
Posts: 36 | Thanked: 9 times | Joined on Jan 2010
#95
Question to the posted .deb file above - when there's JSE why would someone need MicroEmulator from that package as well? Thanks in advance!
 
Posts: 38 | Thanked: 19 times | Joined on Jan 2008 @ Germany
#96
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

Last edited by Olle; 2010-01-12 at 12:01.
 

The Following User Says Thank You to Olle For This Useful Post:
shep's Avatar
Posts: 85 | Thanked: 65 times | Joined on Jan 2010 @ Ireland
#97
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.
 
Posts: 40 | Thanked: 16 times | Joined on Aug 2008
#98
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?
 

The Following 3 Users Say Thank You to sevdali For This Useful Post:
Posts: 291 | Thanked: 134 times | Joined on Dec 2009 @ North-west, UK
#99
Is there a bug and/or brainstorm for this ?
__________________
Go on, press the 'thanks' link, you know you want to
 
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#100
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.
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 

The Following 3 Users Say Thank You to SubCore For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 21:28.