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)

Dak 2010-05-13 19:27

Re: JAVA on the N900 is possible!
 
Nice work, ideligoz :)

I took a different route (and I'm also building a solution for the Sun embedded JRE), but it would be nice if I could adapt my code to integrate with yours.

Thanks for pointing me in your direction! I shall grab your code and see what I can figure out :)

ideligoz 2010-05-13 19:46

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Dak (Post 657335)
Nice work, ideligoz :)

I took a different route (and I'm also building a solution for the Sun embedded JRE), but it would be nice if I could adapt my code to integrate with yours.

Thanks for pointing me in your direction! I shall grab your code and see what I can figure out :)

gps interface is using JNI to access liblocation, you can use the gpsJNI.class and call the functions from it.

6sicSIX 2010-05-13 19:49

Re: JAVA on the N900 is possible!
 
I really don't know much about java, well anything.. But does this mean that limewire or frostwire will be possible eventually?

ifama 2010-05-14 20:49

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Dak (Post 657229)
No Java/GPS integration for now....but I'm working on it ;)

looking forward to it ;)

ifama 2010-05-16 17:14

Re: JAVA on the N900 is possible!
 
Does anybody know whether it is possible to use the bluetooth module within java on the N900? I would like to establish a bt connection to an external gps receiver via the SPP protocol.
Would be glad if someone could give me information on that!

nokea 2010-05-18 08:28

Re: JAVA on the N900 is possible!
 
listen can anyone plz help with java setup on my n900

nokea 2010-05-18 08:32

Re: JAVA on the N900 is possible!
 
need help installing java anyone there

Dak 2010-05-21 00:18

Re: JAVA on the N900 is possible!
 
I now have a working .deb install available for the Sun embedded JRE for the N900.

It installs the JRE and sets up convenient symlinks in /usr/local/bin so that all you have to do is:

jarexec <jarfile>

The jarexec script also refreshes the 90 day license so you never need worry about it expiring ;)

I just need to find out where to put the .deb so people can grab it...

hostITlocal 2010-05-21 10:13

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by Dak (Post 668615)
I now have a working .deb install available for the Sun embedded JRE for the N900.

It installs the JRE and sets up convenient symlinks in /usr/local/bin so that all you have to do is:

jarexec <jarfile>

The jarexec script also refreshes the 90 day license so you never need worry about it expiring ;)

I just need to find out where to put the .deb so people can grab it...

If it's legal, we would be more than happy to host the deb file for download.

Let me know what you would like to do.

My e-mail address is james@ my username .co.uk

kamishly 2010-05-24 23:07

Re: JAVA on the N900 is possible!
 
Java help.

I'm not a tech guy but I want to know if someone can help with the link to work the streamer on N900

http://www.netdania.com/Products/liv...uoteList.aspx#

I can't get the streaming quotes to work like on my PC.



Quote:

Originally Posted by hostITlocal (Post 669020)
If it's legal, we would be more than happy to host the deb file for download.

Let me know what you would like to do.

My e-mail address is james@ my username .co.uk


qole 2010-05-26 16:33

Re: JAVA on the N900 is possible!
 
The problem is that unless Sun gives you explicit permission, it is not legal to host the Sun embedded JRE. That is so frustrating to me! They have compiled it, it is available, but they've hobbled it (90 day expiry) and don't allow redistribution. :mad:

Dak 2010-05-26 17:33

Re: JAVA on the N900 is possible!
 
From the contact I've had, and my parsing of all the relevant text available at java.sun.com, I think there is sufficient penumbra to honestly consider my N900 "deployment" to be free from royalty licensing - as per their definition of "general use systems"...much like the free deployment of the standard JRE on x86/x64 linux/doze systems.

Manul 2010-05-28 20:38

Re: JAVA on the N900 is possible!
 
Dak, I'd be very interested in your .deb. I could probably come up with something similar, but why duplicate efforts?
If legality is a problem, couldn't you provide a .deb that would require the user to supply the actual jre and then just install it in the right places and add your symlinks and scripts?

BLC 2010-05-29 09:22

Re: JAVA on the N900 is possible!
 
Couldn't be possible to make a script that download, install & configure it all avoiding any legal problem?

Dak 2010-05-30 22:03

Re: JAVA on the N900 is possible!
 
Manul, BLC et al

I think this thread has run its course (Yes! Java on the N900 is possible!), so I'm going to leave it and continue the discussion here :)

Manul 2010-05-31 13:49

Re: JAVA on the N900 is possible!
 
Thanks for the pointer, Dak, I had somehow managed to miss that thread completely.

extent 2010-07-17 20:17

Re: JAVA on the N900 is possible!
 
to those developing java-if its ever 'finished' and free+safe to install, what I am wondering is if java webpages would run only in the default n900 browser, or if firefox and opera would also be supported?

I ask this as I often use firefox, its slow at the moment, but it displays pages identically to a pc browser, with content (eg webpage banners/ads) that the n900s built in browser is oftem missing. thanks, I hope the n900 is continually supported by the community :)

viz 2010-08-14 13:37

Re: JAVA on the N900 is possible!
 
I've folled the SE installing guide by dak but I still get a " java not found" messsage. Seems like the symlink isn't correct. first I extracted the ejre File in MyDocs and lost the flags so I reextraced it in /opt/java like dak said. Now the Flags are correct but the syymlink is still pointing to /MyDocs isn't? How can I overwrite it??
Can anybody help me to run this s**t of piece?

tomchiverton 2010-08-15 19:03

Re: JAVA on the N900 is possible!
 
Just delete the sym. link and make it again with the new location.

viz 2010-08-17 06:48

Re: JAVA on the N900 is possible!
 
Ok thanks,
do you mind posting the commands that would be great. I dont want to add insult to injury. One Note, when I run the jarFile as User I got a failed to load Main-Class manifest exception. Run it as Sudo got a java not found exception. Thats weird.

danramos 2010-08-17 06:59

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by qole (Post 679960)
The problem is that unless Sun gives you explicit permission, it is not legal to host the Sun embedded JRE. That is so frustrating to me! They have compiled it, it is available, but they've hobbled it (90 day expiry) and don't allow redistribution. :mad:

It's no longer called "Sun", they changed the name of the company to "Oracle America". No joke. It sounds like one, but I assure you it's not. There's now an Oracle Corporation and a separate Oracle America, Incorporated, formerly Sun Microsystems, Incorporated.

I'm sure you (and I) will continue to call it Sun, since I know I will have a hard time accepting the new aberration that the purchase has created.

owerlord 2010-08-20 12:32

Re: JAVA on the N900 is possible!
 
runescape working?

fettouhi 2010-10-04 10:16

Re: JAVA on the N900 is possible!
 
Is there a java plugin for the n900 as well? So that one can maybe do some netbanking?

mattbutsko 2010-10-04 21:48

Re: JAVA on the N900 is possible!
 
java's slow and bloated. i'm kinda glad i never come in contact with it on my N900.

nicholes 2010-10-10 12:45

Re: JAVA on the N900 is possible!
 
i have just installed micro emulator and it can run .jar files now..my qustion is that how to run it on full screen also the key board is not working..do i have to make some profile for n900 or i have to download it ??(there is some option to slect a device then to load device profile)

AgogData 2010-10-10 12:53

Re: JAVA on the N900 is possible!
 
about java i heared alot about java playing on n900, how can i get started ? and what are the applications or anything that can run in java enabled n900 ?
thanks

nicholes 2010-10-10 16:56

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by AgogData (Post 837673)
about java i heared alot about java playing on n900, how can i get started ? and what are the applications or anything that can run in java enabled n900 ?
thanks

i have just download "microemulator" from app manager (i do not know what repository it belongs to) then download any .jar file from any source like www.getjar.com > transfer it to n900.start microemulator go to file and open ur file(.jar) it will launch it.

i do not know how to run it on full screen.also keyboard is not working any suggetion ?

AgogData 2010-10-10 17:02

Re: JAVA on the N900 is possible!
 
thanx nicholes for the tip
maybe u should play around in the settings of press F or crtl+enter...thats all i can think of for full screen

zimon 2010-10-10 17:10

Re: JAVA on the N900 is possible!
 
Yes, microelmulator would need much work still.
I'd like to be able to use it in portrait mode, and ofcourse keyboard support would be nice. There would be so much cool Jave ME applications out there which I am missing from N95.

Quote:

Originally Posted by mattbutsko (Post 833365)
java's slow and bloated. i'm kinda glad i never come in contact with it on my N900.

If it is slow still, it is because the implementation and porting. Java can be faster [1] than C/C++ when there is program with quite much non-persistent dynamic memory used, like in WWW-browsers. (Anyone familiar with needing to restart Firefox every once in a while because it is eating too much RAM and getting slow?)


[1] A Survey of Adaptive Optimization in Virtual Machines
(Many adaptive optimizations are impossible to do with fully compiled code, as C/C++/asm.)

fareed_xtreme 2010-10-10 17:26

Re: JAVA on the N900 is possible!
 
JRE and JVM on N900... it will be cool. Esp running theOracle Applications.. LMAO... Ignore me... just a brainstorm... lol

impeham 2010-10-10 17:39

Re: JAVA on the N900 is possible!
 
if only it had network connection working...
the only reason i'm waiting for this is to be able to use Salling Clicker remote in its java version, but it requires a network connection (it uses TCP).

zimon 2010-10-12 08:37

Re: JAVA on the N900 is possible!
 
Litte OT, but good news to Java:
Oracle and IBM Collaborate to Accelerate Java Innovation Through OpenJDK

Now they just need to develop Java futher and for example have that Dalvik's cow-shared-memory class-loading and security ("Memory Consumption" and "Security") improvements and concentrate to optimize JIT to be faster than C++.

[edit]
Nokia could join the party and try to get QtJambi integrated to standard OpenJDK Java.

CormacB 2010-10-12 10:37

Re: JAVA on the N900 is possible!
 
I wouldn't call that good new (especially for us). It is actually violating Oracle's licensing to run OpenJDK on a mobile device. Apache was trying to remove that restriction for the Harmony project but Sun and now Oracle refused. Now IBM has given up on Harmony.

RobbieThe1st 2010-10-12 10:49

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by CormacB (Post 839121)
I wouldn't call that good new (especially for us). It is actually violating Oracle's licensing to run OpenJDK on a mobile device.

Really?
It seems to me IcedTea6, and modern builds of OpenJDK are under GPL, in which case it should be perfectly legal to distribute it on any platform needed.

CormacB 2010-10-12 14:16

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by RobbieThe1st (Post 839129)
Really?
It seems to me IcedTea6, and modern builds of OpenJDK are under GPL, in which case it should be perfectly legal to distribute it on any platform needed.

The problem is patents, which are covered in GPL 3 but not GPL 2 which OpenJDK uses. That is the basis for the whole Oracle/Google lawsuit.

zimon 2010-10-12 17:32

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by CormacB (Post 839293)
The problem is patents, which are covered in GPL 3 but not GPL 2 which OpenJDK uses. That is the basis for the whole Oracle/Google lawsuit.

Could you clarify what kind of patents (or what patents) are the problem with OpenJDK, with its GPL+linking license?
We are free to link anything in JDK with our application and use whatever license we want when selling, giving or distributing it, or aren't we?

I wouldn't be surprised though to know there are many problems.
The whole US software patent system is f*d up anyhow, whatever is done it smashes against some patent(s) and only big companies can afford to defend patents. I would say whole US legal system is a joke with all those extra blood sucking lawyers and TV commercials.

I know, Java for "mobile devices" have issues. Namely mobile phones are not included in "general purpose computers" which the license talks about.
But they need to change that, or .NET or Dalvik takes over. If Google looses its legal fight to Oracle, then .NET, and would think IBM and Oracle would not want it to go that way.
Or....fork Python to be statically typed and fast by making intelligent JIT with adaptive optimizations.

CormacB 2010-10-13 10:04

Re: JAVA on the N900 is possible!
 
The OpenJDK license has no effect on patents, only Sun/Oracle's patent grant allows you to redistribute it, and as you know mobile devices are not included.

You can link to any of the Java libraries, as they are covered by the classpath exception, and distribute your app under whatever license you want. If you are linking to native code then it is a different story. I assume the standard JNI use is covered by the classpath exception.

RobbieThe1st 2010-10-14 04:43

Re: JAVA on the N900 is possible!
 
Quote:

[...]only Sun/Oracle's patent grant allows you to redistribute it, and as you know mobile devices are not included.
This has been posted several times, with -nothing- to back it up.
What patent(s), specifically, are we talking about? I want numbers here. What's the definition of "mobile phone", in said patents anyway?

I've tried to Google for it, but I haven't found anything more than a couple of links to the current Google vs. Oracle fight, and a forum post or two, and that's -not- definitive in the least.

Until I see some good -proof- as to JavaSE-based OpenJDK being legal or not on a mobile computer with built in 3G radio...

CormacB 2010-10-14 13:10

Re: JAVA on the N900 is possible!
 
The patents are listed here: http://www.h-online.com/open/news/it...e-1102506.html

They don't refer to mobile devices in the patents.

The patent grant is here: http://java.sun.com/javase/6/jdk-6u21-doc-license.txt

It doesn't mention mobile devices either, but you have to pass the TCK to redistribute, and the TCK doesn't allow implementations for mobile devices. Where exactly that leaves OpenJDK, since it is Oracle's own project, I don't know.

Biges 2010-11-05 21:37

Re: JAVA on the N900 is possible!
 
I a little confused to say at least. So is it possible to run Java games on N900? In some easy way.
Even stupid Windows Mobile has this possibility :-/


All times are GMT. The time now is 01:06.

vBulletin® Version 3.8.8