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)

bblue 2011-03-26 20:24

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by 654321 (Post 959215)
Download java (Java SE for Embedded 6 Update 21 (Build 9) ARMv7 Linux - Headful, EABI, Hard Float (VFP), Little-Endian) from here: https://cds.sun.com/is-bin/INTERSHOP...-CDS_Developer

Extract ejre1.6.0_21 from the archive to MyDocs in N900
Move ejre1.6.0_21 to /opt (I was using MC)
Run in terminal as root:
ln -s /opt/ejre1.6.0_21/bin/* /usr/bin/
chmod 777 /usr/bin/java
ln –s /opt/ejre1.6.0_21/lib/arm/libnpjp2.so /usr/lib/browser/plugins/libnpjp2.so
ln –s /opt/ejre1.6.0_21/lib/arm/libnpjp2.so /home/user/.mozilla/plugins/libnpjp2.so
Then in microB and Firefox type about:config in address
Search for java
Change java.java_plugin_library_name to libnpjp2.so
I don’t know if changing in about:config is needed because I did this at the beginning.
After that chromium was running java without any changes.

sorry, when i try to execute this commands:
ln –s /opt/ejre1.6.0_21/lib/arm/libnpjp2.so /usr/lib/browser/plugins/libnpjp2.so
ln –s /opt/ejre1.6.0_21/lib/arm/libnpjp2.so /home/user/.mozilla/plugins/libnpjp2.so
I get:
ln: -s: No such file or directory
ln: /usr/lib/browser/plugins/libnpjp2.so: Invalid cross-device link
and
ln: -s: No such file or directory
ln: /home/user/.mozilla/plugins/libnpjp2.so: Invalid cross-device link

what's wrong?

Many thanks.

gionni88 2011-03-26 20:34

Re: JAVA on the N900 is possible!
 
@BBlue: The "–" you're typing is not the right one ("-"), in my opinion. So it doesn't recognize it as an option but as a path, and the ln command fails since it's not possible to make an hardlink between different partitions. Check better that character.

casketizer 2011-03-26 20:57

Re: JAVA on the N900 is possible!
 
@geojoking
Not working. Most likely uses S40 specific api(s). I only tried the one version that had a direct link to the .jar.

bblue 2011-03-26 23:33

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by gionni88 (Post 976213)
@BBlue: The "–" you're typing is not the right one ("-"), in my opinion. So it doesn't recognize it as an option but as a path, and the ln command fails since it's not possible to make an hardlink between different partitions. Check better that character.

Thanks, yes the character was wrong, but now, in firefox, when I try the test page, it displays me: Something is wrong. Java is not working.

geojoking 2011-03-27 00:12

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by casketizer (Post 976221)
@geojoking
Not working. Most likely uses S40 specific api(s). I only tried the one version that had a direct link to the .jar.

Yes, that's the version I also tried. Oh well, I thought I'd give it a try, the app seems a lot better that BarrioSquare, it has more features.

Temporal 2011-03-27 17:44

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by 654321 (Post 959215)
Download java (Java SE for Embedded 6 Update 21 (Build 9) ARMv7 Linux - Headful, EABI, Hard Float (VFP), Little-Endian) from here: https://cds.sun.com/is-bin/INTERSHOP...-CDS_Developer

Extract ejre1.6.0_21 from the archive to MyDocs in N900
Move ejre1.6.0_21 to /opt (I was using MC)
Run in terminal as root:
ln -s /opt/ejre1.6.0_21/bin/* /usr/bin/
chmod 777 /usr/bin/java
ln –s /opt/ejre1.6.0_21/lib/arm/libnpjp2.so /usr/lib/browser/plugins/libnpjp2.so
ln –s /opt/ejre1.6.0_21/lib/arm/libnpjp2.so /home/user/.mozilla/plugins/libnpjp2.so
Then in microB and Firefox type about:config in address
Search for java
Change java.java_plugin_library_name to libnpjp2.so
I don’t know if changing in about:config is needed because I did this at the beginning.
After that chromium was running java without any changes.

Here the instructions kinda worked when:
1)Removed Microemulator and icedtea;
2)I typed ln -s and then copied the rest. Looks like there's some kind of weird character that messes things in here...
3)Put the -f after ln -s to FORCE the thing to make the link.

But even after, the thing just kinda worked. Firefox tries to load but crashes more often then not while trying to load applets, AND Microb shows a black screen in the place of the applet. SOMETIMES if I zoom the applet, it appears, but then it goes black the time I move the window.

I'm yet to try on chromium...

epitaph 2011-03-27 18:07

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Temporal (Post 976712)
Here the instructions kinda worked when:
1)Removed Microemulator and icedtea;
2)I typed ln -s and then copied the rest. Looks like there's some kind of weird character that messes things in here...
3)Put the -f after ln -s to FORCE the thing to make the link.

But even after, the thing just kinda worked. Firefox tries to load but crashes more often then not while trying to load applets, AND Microb shows a black screen in the place of the applet. SOMETIMES if I zoom the applet, it appears, but then it goes black the time I move the window.

I'm yet to try on chromium...

I get the same result from following this how-to, java-plugin in microb didn't work. I don't have chromium. But 3) didn't worked for me I had to copy the file to the plugins folder.

654321 2011-03-27 18:51

Re: JAVA on the N900 is possible!
 
Well… The steps are copied here from different sources but I never paste it in N900. I start typing on N900 keyboard and use TAB for autocomplete.
Some applets do not work in microB but work in Firefox or Chromium and Firefox or Chromium never crashed on my device (when I was playing with java) and I didn’t have any problems with symlinks.

epitaph 2011-03-27 19:11

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by 654321 (Post 976746)
Well… The steps are copied here from different sources but I never paste it in N900. I start typing on N900 keyboard and use TAB for autocomplete.
Some applets do not work in microB but work in Firefox or Chromium and Firefox or Chromium never crashed on my device (when I was playing with java) and I didn’t have any problems with symlinks.

I use TAB too it didn't work but copy worked so I try to avoid a headache. Too bad my applet didn't work in microb. Do know you if it is possible to run a java applet from cli?

Temporal 2011-03-28 02:50

Re: JAVA on the N900 is possible!
 
update - installed chromium and worked. Now I have the possibility to show java applets in a browser if needed.

My fennec 1.1 just show a black thing and Microb sometimes show something and sometimes not, but I cannot interact with the thing.

Here is the site I'm using: http://www.schubart.net/rc/


All times are GMT. The time now is 12:02.

vBulletin® Version 3.8.8