maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Java on Nokia N900 Maemo 5 for example Opera Mini (https://talk.maemo.org/showthread.php?t=37799)

g0dzilla 2009-12-19 21:36

Java on Nokia N900 Maemo 5 for example Opera Mini
 
http://maemos.ru/wp-content/uploads/...220-000744.png

1. Go and this archive java_nokia_n900_maemo5_opera_mini.zip
2. Extract your PC. Inside the folder jre
2. You copy the folder c jre in the folder / home / user /
(I copied to a memory card, and then moved through the MC in / home / user /)
4. Under Root (root) execute the following commands:

cd / home / user / jre / bin /
chmod + x java
chmod + x opera.sh
5. Run a command

. / opera.sh
6. Press ENTER (Start does not work)
7. If the internet (WiFi for example) is not included, turn - the program itself can not yet.

(С) Shadow_ru

more http://maemos.ru/2009/12/20/java-nok...-5-opera-mini/

P.S. Opera Mini is not the only application in Java that can run on the Nokia N900 Maemo 5 ;)

g0dzilla 2009-12-19 21:51

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
I think yes, why not?

joppu 2009-12-30 23:31

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
JRE needs to be optified since I don't want to waste my precious rootfs.

Edit:

Wait a sec, it in fact goes to home!

Edit:

I need to verify this.

joppu 2009-12-31 00:05

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Wow, it's actually working, but something far from usable, more like a proof of concept thing:
http://i45.tinypic.com/iviyir.jpg

This is interresting:

http://i49.tinypic.com/4g6wde.jpg

Tosa 2010-01-27 12:43

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Any updates concerning opera mini?

debernardis 2010-02-02 14:50

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
How do you get past the first screen with "accept" or "exit"? Neither stylus nor the enter key seem to work.

EDIT I did it - don't know how. Works well

RobbH 2010-02-11 12:50

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by Tosa (Post 497324)
Any updates concerning opera mini?

This seems to work much better with the beta release of Opera Mini 5, currently available at http://www.opera.com/mini/next/download/.

irmohamm 2010-02-23 12:19

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
can anybody tell commands to install opera mini in n900 through x-terminal....

edit:(x-terminal)

i couldnt be able to execute chmod +x java , chmod +x opera.sh commands

permission denied ....

HtheB 2010-02-23 13:30

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by irmohamm (Post 542537)
can anybody tell commands to install opera mini in n900 through x-terminal....

edit:(x-terminal)

i couldnt be able to execute chmod +x java , chmod +x opera.sh commands

permission denied ....

You need to be root to execute the command..

install rootsh from the repos, then go to the Xterminal and type:

sudo gainroot

Then you should be able to execute your command :)

rash.m2k 2010-02-23 13:41

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Can someone please tell me how to install this?

I haven't installed anything on my N900 and would like to get Java apps working.

Install embedded java version? (which version exactly?)
Then run this file?

irmohamm 2010-02-24 08:34

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by HtheB (Post 542615)
You need to be root to execute the command..

install rootsh from the repos, then go to the Xterminal and type:

sudo gainroot

Then you should be able to execute your command :)

hi' thanks first!
I did and root shell enabled but still it says permission denied when trying to execute chmod +x java ,chmod +x opera.sh , ./opera.sh

Do you have a moment again ? please......

di1in 2010-02-24 09:07

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by RobbH (Post 521083)
This seems to work much better with the beta release of Opera Mini 5, currently available at http://www.opera.com/mini/next/download/.

were you able to install 5 Beta ?

SubCore 2010-02-24 10:04

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by irmohamm (Post 543902)
hi' thanks first!
I did and root shell enabled but still it says permission denied when trying to execute chmod +x java ,chmod +x opera.sh , ./opera.sh

Do you have a moment again ? please......

do you have those files saved under /home/user/MyDocs? if you just copied them over using Mass Storage mode, that's very likely.

/MyDocs is a VFAT partition and doesn't support the executable flag. you have to copy the files on a linux filesystem first, /home/user for example.
then you should be able to set the executable flag using chmod +x.
(btw, that's step 3 of the howto in the first post of this thread.)

di1in 2010-02-24 10:44

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
when i tried unzip , the xterm returned that "end of central directory signature not found"

whats up ? the filename is correct cuz i used tab..

magnuslu 2010-02-24 14:06

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
I sooo want this to work, but only if it solves the three issues I have with the default browser:

1. A one click 'back' button/gesture
In Opera Mini on my E61i, I just pressed the left navigation key to go back. With the N900 browser I first have to swipe and then select a page to get to the previous one.

2. Instantaneous display of 'back' page.
On N900 it seems the page has to be re-rendered. On OM it was immediate.

3. Speed!
I liked the speed of OM. especially for 'text heavy' sites, most notably my Bloglines account. Even with faster processor, I feel the N900 is slower.

demirole 2010-02-24 14:50

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by magnuslu (Post 544340)
1. A one click 'back' button/gesture
In Opera Mini on my E61i, I just pressed the left navigation key to go back. With the N900 browser I first have to swipe and then select a page to get to the previous one.

The backspace key takes you back to the previous page, that's one klick, no?

Quote:

Originally Posted by magnuslu (Post 544340)
2. Instantaneous display of 'back' page.
On N900 it seems the page has to be re-rendered. On OM it was immediate.

3. Speed!
I liked the speed of OM. especially for 'text heavy' sites, most notably my Bloglines account. Even with faster processor, I feel the N900 is slower.

Not really a fair comparison: opera mini doesn't do much on the device, the pages are pre-rendered on Opera company servers and then send to the device. Opera mini is more a client/gui than a browser...

But I like it, too. worked fine on my Motorola Razr... :)

[DarkGUNMAN] 2010-02-24 15:38

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
I originally posted this reply in another thread, but it seems appropriate to add it again here:

1. Start X-Term as root
2. Install your version(s) of Java and MicroEmulator to /home/opt/. use chmod +x java to grant executable rights.
3. Create a symlink to use Java from the command line:
ln -s /home/opt/java/bin/java /usr/bin/java
4. Navigate to: cd /usr/share/applications/hildon
5. Use the ls command to list the .desktop files in the folder
Copy an existing file with a new name:
cp x-chat.desktop microemu.desktop
6. Using Leafpad edit the file: leadpad microemu.desktop
7. The edited file should look something like this:
[Desktop Entry]
Encoding=UTF-8
Name=MicroEmu OpenJDK
Comment=MicroEmu OpenJDK
Exec=java -jar /home/opt/microemulator-2.0.4/microemulator.jar --resizableDevice 800 375 /home/user/MyDocs/opera-mini-4.2.jar
Icon=xchat
Type=Application
X-Osso-Type=application/x-executable

Change the icon to anything you like

Save the file and look in the applications menu for the new shortcut. It should launch MicroEmulator full screen with Opera Mini ready to start

maartenmk 2010-02-26 12:22

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
I got it to work, but only after I changed the '--resizableDevice 800 375' part. Maybe that device needs to be added to the version of MicroEmulator I used (the one from the link in the FP)?

This is what I did to get OperaMini 5 running from the menu (based on Darkgunmans instructions, italics are the differences):

---------
1. Start X-Term, type 'sudo gainroot' for root access.
2. Copy the 'jre' folder to /home/opt/ (including the Opera 5 jar & jad files)
cd to /home/opt/jre/bin and use chmod +x java to grant executable rights.
3. Create a symlink to use Java from the command line:
ln -s /home/opt/jre/bin/java /usr/bin/java
4. Navigate to: cd /usr/share/applications/hildon
5. Use the ls command to list the .desktop files in the folder
Copy an existing file with a new name:
cp x-chat.desktop microemu.desktop
6. Using Leafpad edit the fileby typing: leadpad microemu.desktop
7. The edited file should look something like this:
[Desktop Entry]
Encoding=UTF-8
Name=MicroEmu Opera
Exec=java -jar /home/opt/jre/bin/microemulator.jar --device org/microemu/device/resizable/device.xml /home/opt/jre/bin/opera-mini-5.0.17443-advanced-en.jad
Icon=Opera
Type=Application
X-Osso-Type=application/x-executable

Change the icon to anything you like. This post explains how to add your own icon. I made this one:http://www.mmk.dds.nl/Opera.png


Save the file and look in the applications menu for the new shortcut. It should launch MicroEmulator full screen with Opera Mini ready to start (using the enter key, the start button doesn't work)
-------

The display defaults to 800x400, so it would be nice to get the 'resizabledevice' working. Does anyone know what I should do differently?

ticktock666 2010-03-03 13:28

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
@ maartenmk

Thanks for the detailed & corrected How-to, I've followed it but opera is not loading, I get a window titled "MicroEmu Opra" with the spinning loading thingy, then it exists completely and nothing happens.

i've triple checked everything and it seems ok, so any help would be greatly appreciated

Edit : I will go through the steps again after lunch break, although I don't think I've missed/screwed any of them, but who knows

Edit 2 : Rechecked and everything seems in order, but nothing loads :(

Edit 3 : I'm able to launch Opera using ./opera.sh command, so it works, so I'll check my steps again.

ghostayya 2010-03-07 09:03

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by g0dzilla (Post 434815)
http://maemos.ru/wp-content/uploads/...220-000744.png

1. Go and this archive java_nokia_n900_maemo5_opera_mini.zip
2. Extract your PC. Inside the folder jre
2. You copy the folder c jre in the folder / home / user /
(I copied to a memory card, and then moved through the MC in / home / user /)
4. Under Root (root) execute the following commands:

cd / home / user / jre / bin /
chmod + x java
chmod + x opera.sh
5. Run a command

. / opera.sh
6. Press ENTER (Start does not work)
7. If the internet (WiFi for example) is not included, turn - the program itself can not yet.

(С) Shadow_ru

more http://maemos.ru/2009/12/20/java-nok...-5-opera-mini/

P.S. Opera Mini is not the only application in Java that can run on the Nokia N900 Maemo 5 ;)

:confused:

Can u pls post a video on how to install java aplications on nokia N900. I'm v confused..

[DarkGUNMAN] 2010-03-07 12:43

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by maartenmk (Post 547457)


Save the file and look in the applications menu for the new shortcut. It should launch MicroEmulator full screen with Opera Mini ready to start (using the enter key, the start button doesn't work)

Forgot to add - if you download the newest version of microemulator http://code.google.com/p/microemu/downloads/list , then the start button works, as well as other text entry dialogs in Opera Mini.

Crom 2010-03-11 11:18

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Cant anyone get this optified and into devil. There is alot of noobs that would like this on the N900, me inkluded. ;)

BTW. New wersion out yesterday i think..Opera Mini 5 beta 2:
http://www.opera.com/mini/next/

Andre Klapper 2010-03-11 11:28

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by ghostayya (Post 558527)
Can u pls post a video on how to install java aplications on nokia N900. I'm v confused..

No, as the instructions are perfectly fine.
If you don't understand them, a video will not help you either...

6sicSIX 2010-03-11 22:26

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Does anybody know how to add more items to the microemulator menu? Or, which i'd prefer: is it possible to start an app directly from xterm and skip the microemulator menu?
At the moment i'm using seperate scripts (opera4.sh & opera5.sh) to open j2me apps, but it's obviously possible due to the presence of the menu..

Thanks, Killian

[DarkGUNMAN] 2010-03-12 08:01

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by 6sicSIX (Post 564378)
Does anybody know how to add more items to the microemulator menu? Or, which i'd prefer: is it possible to start an app directly from xterm and skip the microemulator menu?
At the moment i'm using seperate scripts (opera4.sh & opera5.sh) to open j2me apps, but it's obviously possible due to the presence of the menu..

Thanks, Killian

I haven't found an answer to that one. The MicroEmu documentation doesnt provide a vommand to execute or run an application straight away. Best I can suggest is contact the author of MicroEmu and ask for it as a feature request. I have a few suggestions of my own I wish to pass along so I will mention this too.

aua 2010-03-12 08:58

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
To run opera directly from command line type :

./java -cp opera-mini-4.2.14912-advanced-en.jar -jar microemulator.jar --device org/microemu/device/resizable/device.xml Browser

[]'s

[DarkGUNMAN] 2010-03-12 10:01

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
I use this command from a desktop file: java -jar /home/opt/microemulator-2.0.4/microemulator.jar --resizableDevice 800 378 /home/user/MyDocs/opera-mini-4.2.jar

Only issues i have left to figure out are launching Opera without having to click Start in MicroEmulator, and how to launch Microemulator in full screen without the title bar.

rash.m2k 2010-03-12 10:18

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by [DarkGUNMAN] (Post 564835)
I use this command from a desktop file: java -jar /home/opt/microemulator-2.0.4/microemulator.jar --resizableDevice 800 378 /home/user/MyDocs/opera-mini-4.2.jar

Only issues i have left to figure out are launching Opera without having to click Start in MicroEmulator, and how to launch Microemulator in full screen without the title bar.

yeah I'm trying to figure that out aswell, I'm managed to put an Icon for opera Mini but have to click start each time.

[DarkGUNMAN] 2010-03-12 14:22

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by rash.m2k (Post 564846)
yeah I'm trying to figure that out aswell, I'm managed to put an Icon for opera Mini but have to click start each time.

Managed to solve one part of the riddle at least. The current snapshot of v3 of Microemulator automatically launches applications if specified in the command line.
Opera launches straight away now!

http://snapshot.microemu.org/microemulator/download/

My suggestions for the next incarnation of this would be the ability to hide the menus and resize button, and allow usage in full screen.

oz87 2010-03-20 12:12

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by maartenmk (Post 547457)
I got it to work, but only after I changed the '--resizableDevice 800 375' part. Maybe that device needs to be added to the version of MicroEmulator I used (the one from the link in the FP)?

This is what I did to get OperaMini 5 running from the menu (based on Darkgunmans instructions, italics are the differences):

---------
1. Start X-Term, type 'sudo gainroot' for root access.
2. Copy the 'jre' folder to /home/opt/ (including the Opera 5 jar & jad files)
cd to /home/opt/jre/bin and use chmod +x java to grant executable rights.
3. Create a symlink to use Java from the command line:
ln -s /home/opt/jre/bin/java /usr/bin/java
4. Navigate to: cd /usr/share/applications/hildon
5. Use the ls command to list the .desktop files in the folder
Copy an existing file with a new name:
cp x-chat.desktop microemu.desktop
6. Using Leafpad edit the fileby typing: leadpad microemu.desktop
7. The edited file should look something like this:
[Desktop Entry]
Encoding=UTF-8
Name=MicroEmu Opera
Exec=java -jar /home/opt/jre/bin/microemulator.jar --device org/microemu/device/resizable/device.xml /home/opt/jre/bin/opera-mini-5.0.17443-advanced-en.jad
Icon=Opera
Type=Application
X-Osso-Type=application/x-executable

Change the icon to anything you like. This post explains how to add your own icon. I made this one:http://www.mmk.dds.nl/Opera.png


Save the file and look in the applications menu for the new shortcut. It should launch MicroEmulator full screen with Opera Mini ready to start (using the enter key, the start button doesn't work)
-------

The display defaults to 800x400, so it would be nice to get the 'resizabledevice' working. Does anyone know what I should do differently?


it opens ,installing....could not store resource unable to create recodStore directory!
wt could be the reason?

pierro78 2010-04-02 14:22

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
I am also very interested in having Opera Mini in full screen in MicroEmulator (no title bar, menu bar & status bar), do you guys have any idea if that could be possible with the MicroEmulator headless mode ? or what is the use of the headless mode ?
(I could just check it at home tonight but was wondering if you guys already had experience with this "headless" mode)

SubCore 2010-04-02 14:24

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
headless = no GUI elements, cmdline/daemon only.

opera will fail to start in a headless JVM.

devdev 2010-04-23 15:49

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
I would be ever so grateful if someone could test whether this Oanda java test applet runs on the n900: TIA

https://fx2.oanda.com/test.html

qole 2010-04-23 23:06

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Just so you guys know, this is not a legal project. You're not allowed to redistribute the Embedded Java trial software. You have to download it yourself from here. And it does time out after a while.

You should probably also grab the latest MicroEmulator snapshot, as DarkGUNMAN suggests. It solves several bugs with the older versions.

And then, once you've grabbed the latest Opera Mini version yourself, you've done everything that the original blogger did. But you did it legally.

The OP probably got all their information from this thread here at t.m.o.

Chazhands 2010-05-10 19:04

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Hi, I've been using maemo.org ever since I got my N900, back at the end of December. It really is a more than useful site - vital in some respects for this phone.

However I have never been so stumped as this - what I'm sure is very simple - Java installation.

I first tried the simple guide on nokian900applications.com but it didn't work. I also found it a little confusing. The same then went when I tried the step by step guide on this thread. It is not just that it isn't working, but I feel more me it is missing out obvious and simple things, probably because I'm not techy enough.

In most ways I am not even at "noob" level, but I have been very used to installing and altering things in x-terminal through guides on this website.

Please could someone maybe do what someone else suggested earlier on this thread and do a video? Or even a s-t-e-p-b-y-s-t-e-p slow and laborious process, even like it's written for a spastic.

I really would so much like to get Java working on this wonderful phone of mine. And no, unlike some people on maemo.org, I do not just use this for a phone and maybe a play on a demo version of Bounce.

Regards, Charles


p.s. This is my first post, not only on this site, but on any forum. Does it possibly show...?


Oh, and please don't just link me to another guide on this site, I have searched and done everything I have seen to try.

rikisky 2010-05-10 22:25

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
is it possible to run symbian apps now right? D: ... like if i downdload a JAR file for a symbian game, and install it, it would work?

HtheB 2010-05-10 23:01

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by rikisky (Post 652471)
is it possible to run symbian apps now right? D: ... like if i downdload a JAR file for a symbian game, and install it, it would work?

JAR files are Java files :)
Not symbian....

(Symbian files are sis or sisx files ;))
But yeah, the .jar files should work :)

woody14619 2010-05-10 23:13

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
If you want to run Java apps (or J2ME apps), you want to check out the package icedtea6 and microemulator. Do a forum search and you'll find a couple useful threads about both of these. Both have versions in extras-testing, and can be easily installed from there.

Icedtea6 is an optimized Java SE setup for arm processors (like our N900 has) and gives you the ability to run most Java based programs. Microemulator (which requires JSE or icedtea) is a class emulator that can run most J2ME packages within the JSE environment.

rikisky 2010-05-11 01:23

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
well, yeah, i used icedtea6 and microemulator, and i could run clash of titans the game for symbian, (there's a lot of websites where you can download the games in .jar format, well... it worked!!! :D:D:D omg! ... the only problem is that it runs kinda slow, but i'm 100% sure it's because i have the wrong resolution, i downloaded one for E61i (320x240) and well, when you select resizable device from options, it kinda stretches the image to fit the WVGA n900's resolution, i triend to manually resize it in the emulator option but didn't work, can any one come up with ideas to make it run smoother? :D

CasTTeLLo 2010-05-13 12:28

Re: Java on Nokia N900 Maemo 5 for example Opera Mini
 
Quote:

Originally Posted by rikisky (Post 652590)
well, yeah, i used icedtea6 and microemulator, and i could run clash of titans the game for symbian, (there's a lot of websites where you can download the games in .jar format, well... it worked!!! :D:D:D omg! ... the only problem is that it runs kinda slow, but i'm 100% sure it's because i have the wrong resolution, i downloaded one for E61i (320x240) and well, when you select resizable device from options, it kinda stretches the image to fit the WVGA n900's resolution, i triend to manually resize it in the emulator option but didn't work, can any one come up with ideas to make it run smoother? :D

can u make a simple tutorial on how to do it???
http://www.nokian900applications.com...on-nokia-n900/

hope to hear from u....thanks in advance....


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

vBulletin® Version 3.8.8