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)

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..


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

vBulletin® Version 3.8.8