maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Bringing full java midp to n900? (https://talk.maemo.org/showthread.php?t=67986)

Radicalz38 2011-01-07 01:30

Bringing full java midp to n900?
 
Is it possible to port phoneME to maemo? I'm sure this would bring n900 full midp2.2 support and would bring us tons of old and new apps :confused:

HtheB 2011-01-07 01:50

Re: Bringing full java midp to n900?
 
Seems like it's been made with Qt?

"This workspace contains files that make use of the TrollTech QT libraries."

Radicalz38 2011-01-07 07:59

Re: Bringing full java midp to n900?
 
Yes and I'm asking if someone can/is interested to port it to maemo... I'm no mobile dev so I can't do anything. Don't have enough time to study mobility/mobile development for now so can do it myself either. Well it's open source & intended for mobile platforms *cross fingers* hoping someone would port it.

Radicalz38 2011-01-07 14:58

Re: Bringing full java midp to n900?
 
Am I on the wrong sub forum or it's just nobody is interested?

Boemien 2011-01-07 15:18

Re: Bringing full java midp to n900?
 
Maybe the Gurus of the forum (The great devs who make us proud of our N900) are not connected yet! patience bro' ! your dream will become true! I hope.

Radicalz38 2011-01-07 15:40

Re: Bringing full java midp to n900?
 
Yeah hope so :p *crosses fingers*

gowen 2011-01-08 19:42

Re: Bringing full java midp to n900?
 
Are you aware of the Jalimo project?

https://wiki.evolvis.org/jalimo/index.php/Jalimo

Not sure about how active current development is?

dwaradzyn 2011-01-09 09:29

Re: Bringing full java midp to n900?
 
It is possible to build it for N900. And provided that JSR 239 (OpenGL ES bindings), JSR 179 (Location API) and other important JSRs support would be compiled in this would bring a lot of quality apps to N900.

I did try to build it a year ago because I wanted to continue CloudGPS development on N900 when I got it but there were many problems with dependencies and my build environment. After quite a struggle I just decided to rewrite it from scratch in native C.

There is a lot of interest in bringing Java ME to N900 (many threads about that). Not everyone knows that phoneME would the best solution. Anyway I do care but I do not have enough free time to make it happen.

lardman 2011-01-09 11:21

Re: Bringing full java midp to n900?
 
Looks like someone did try a couple of years back: http://www.java.net/forum/topic/mobi...2-and-qt-434-0

Radicalz38 2011-01-09 11:45

Re: Bringing full java midp to n900?
 
I'm also interested in trying it but I lost the patience a month ago just by trying to install the SDK for maemo. I tried locating the downloads and lead me to lots of broken/outdated links and went to the point that I gave up. So now I'm just asking to those who know how to port it.

dwaradzyn 2011-01-09 15:06

Re: Bringing full java midp to n900?
 
It was ported to various devices. Check:
phoneME on openmoko
phoneME on Windows Mobile 6.5

N900 has far more processing power than those two on videos. Not to mention OpenGL ES.

Boemien 2011-01-09 18:10

Re: Bringing full java midp to n900?
 
So Guys, what are you going to do???

dwaradzyn 2011-01-09 18:27

Re: Bringing full java midp to n900?
 
Quote:

Originally Posted by Radicalz38 (Post 915703)
I'm also interested in trying it but I lost the patience a month ago just by trying to install the SDK for maemo. I tried locating the downloads and lead me to lots of broken/outdated links and went to the point that I gave up. So now I'm just asking to those who know how to port it.

You can find latest SDK here: http://www.forum.nokia.com/info/sw.n...emo_5_SDK.html

This is virtual machine image (I use one of these with VMware) with SDK preinstalled:
http://tablets-dev.nokia.com/maemo-d...Image_Final.7z

strange1712 2011-01-10 07:44

Re: Bringing full java midp to n900?
 
I have tried to build it using the scripts but seems like It would require JDK in Maemo SDK or some way to use Scratchbox as cross compiler from native environment. (Seems like IcedTea fails on Scratchbox).

ymartin59 2011-01-10 08:04

Re: Bringing full java midp to n900?
 
Right, Scratchbox ARMEL target is really limited because of bugs/lacking features in qemu ARM. Only gcc cross-compilation really works. No hope to get Java (either OpenJDK or Oracle latests preview) working there.

My opinion: either use Easy Chroot / Debian ARM or install full compile chain directly on the N900 !

When Symbian was open-source(d) [it is closed again since December 17th], I have retreived JRT (JavaME RunTime) sources to get it compiled on a standard Linux but it was not obvious at all and I got no support from Nokia guys...

[DarkGUNMAN] 2011-01-11 01:22

Re: Bringing full java midp to n900?
 
Spent some time building an sdk image using this thread to comoile on device
http://talk.maemo.org/showthread.php?t=32772&page=1

and I've downloaded the latest PhoneME Feature source. I've never built or compiled anything before, so any quick guides or pointers on compiling source would be appreciated.

[DarkGUNMAN] 2011-01-11 01:26

Re: Bringing full java midp to n900?
 
Quote:

Originally Posted by ymartin59 (Post 916609)
Right, Scratchbox ARMEL target is really limited because of bugs/lacking features in qemu ARM. Only gcc cross-compilation really works. No hope to get Java (either OpenJDK or Oracle latests preview) working there.

My opinion: either use Easy Chroot / Debian ARM or install full compile chain directly on the N900 !

When Symbian was open-source(d) [it is closed again since December 17th], I have retreived JRT (JavaME RunTime) sources to get it compiled on a standard Linux but it was not obvious at all and I got no support from Nokia guys...

It may well be worth compiling JRT on device and give it a test drive.

Dotblank 2011-01-11 09:48

Re: Bringing full java midp to n900?
 
[DarkGUNMAN] came into the irc channel and was looking for some help with building phoneME.

I was able to build (cdc) cvm but I haven't built midp yet

For those interested

http://encodable.com/cgi-bin/filechu...le=phoneme.tar

Radicalz38 2011-01-11 10:25

Re: Bringing full java midp to n900?
 
Hmm good to see some improvements here lol! Well just hope midp would get compiled thoroughly as midp environment is the one managing all those thousands of applications from old phone up to the latest(maybe the later).

Quote:

Quote:

Originally Posted by dwaradzyn (Post 916030)
You can find latest SDK here: http://www.forum.nokia.com/info/sw.n...emo_5_SDK.html

This is virtual machine image (I use one of these with VMware) with SDK preinstalled:
http://tablets-dev.nokia.com/maemo-d...Image_Final.7z


on the virtual image I tried looking for the one with GUI but no luck. I'm not really comfortable developing on command line actually. Also MADDE is not there :(
Dont want my n900 to be a guinea pig by all the guinea pigs :p

[DarkGUNMAN] 2011-01-11 12:01

Re: Bringing full java midp to n900?
 
Quote:

Originally Posted by Dotblank (Post 917640)
[DarkGUNMAN] came into the irc channel and was looking for some help with building phoneME.

I was able to build (cdc) cvm but I haven't built midp yet

For those interested

http://encodable.com/cgi-bin/filechu...le=phoneme.tar

Thank you very much for answering the call for help in the channel and having a go!

It would help me immensly if you could take me through the procedure you used to compile PhoneME Advanced mr2, as I would like to try and replicate the results with PhoneME Feature mr4 as this contains a more recent version of MIDP, which I am hoping will launch opera mini 4.
Bear in mind I am a novice at this and have only just learned how to chroot into the sdk image on my N900 :)

I had a go at running with the following command:
cd /opt/phoneme
./bin/cvm -jar /home/opt/opera-mini-4.2.18887-advanced-en.jar

Got error message
jar: Could not find Main-Class manifest attribute

Does this mean it is looking for variables pointing to the main j2se installation?

if it is of any help I found a thread used by devs earleir in 2010 regarding building for N800 and N900.
http://www.gossamer-threads.com/list...velopers/60613

Radicalz38 2011-01-11 12:05

Re: Bringing full java midp to n900?
 
Thanks for the effort [DarkGUNMAN] you don't know how much I wanted it :p

zimon 2011-01-11 12:53

Re: Bringing full java midp to n900?
 
Oracle (or JCP?) should bring the improvements in Dalvik to Java and JavaME, so Java would be more interesting and usable (also) in mobile devices.

Some people have used microemulator with standard Java in N900. How this "real" JavaME will be different from that? microemulator lags several MIDP extensions?

[DarkGUNMAN] 2011-01-11 18:01

Re: Bringing full java midp to n900?
 
Quote:

Originally Posted by zimon (Post 917762)
Oracle (or JCP?) should bring the improvements in Dalvik to Java and JavaME, so Java would be more interesting and usable (also) in mobile devices.

Some people have used microemulator with standard Java in N900. How this "real" JavaME will be different from that? microemulator lags several MIDP extensions?

PhoneME will be it's own environment taking up less resources and poentially less processing power, instead of a J2ME emulation running on top of a JavaVM.

MIcroemulator has been and still is good, but it doesn't support full screen, and can get jerky when running opera mini 5. I'm all for trying out a new solution and this is the first time I've had a chance to try something new and learn about source compiling on N900.

zimon 2011-01-11 21:14

Re: Bringing full java midp to n900?
 
Better skin to microemulator will make it abit more usable.
But of course, running it top of desktop Java makes it little slower.

Dotblank 2011-01-11 21:37

Re: Bringing full java midp to n900?
 
Quote:

Originally Posted by [DarkGUNMAN] (Post 917707)
Thank you very much for answering the call for help in the channel and having a go!

It would help me immensly if you could take me through the procedure you used to compile PhoneME Advanced mr2, as I would like to try and replicate the results with PhoneME Feature mr4 as this contains a more recent version of MIDP, which I am hoping will launch opera mini 4.
Bear in mind I am a novice at this and have only just learned how to chroot into the sdk image on my N900 :)

I had a go at running with the following command:
cd /opt/phoneme
./bin/cvm -jar /home/opt/opera-mini-4.2.18887-advanced-en.jar

Got error message
jar: Could not find Main-Class manifest attribute

Does this mean it is looking for variables pointing to the main j2se installation?

if it is of any help I found a thread used by devs earleir in 2010 regarding building for N800 and N900.
http://www.gossamer-threads.com/list...velopers/60613

I believe it is because I don't have midp working.. If you open the jar file you will see lots of MIDL options in the manifest file. It should work once I/WE get midp working again. Its also trickier to compile phoneme because you have to compile it outside of the sdk or chroot. It also requires a jdk and it becomes very difficult managing the make files. Also the design of the build system is meant for cross-compiling.. so you just tell the compiler where the target gcc and other tools are in the sdk

Dotblank 2011-01-11 21:40

Re: Bringing full java midp to n900?
 
Quote:

Originally Posted by HtheB (Post 913827)
Seems like it's been made with Qt?

"This workspace contains files that make use of the TrollTech QT libraries."

Yes it seems to use QT embedded.. but i'm also trying to get it to work with native gtk

[DarkGUNMAN] 2011-01-12 19:44

Re: Bringing full java midp to n900?
 
To get a better understanding of cross compiling I'm downloading ubuntu and will install it in a virtualbox vm, as i would like to try and follow the same procedure and try to compile it myself to get a better understanding - we all learn by doing!

Radicalz38 2011-01-16 13:50

Re: Bringing full java midp to n900?
 
So any updates on this?

[DarkGUNMAN] 2011-01-21 15:15

Re: Bringing full java midp to n900?
 
No major updates to report. Been a very busy week and haven't had the time to create a build environment (virtualbox decided to crash loading the ubuntu CD!)
Once I get a working Ubunto vm going then I'll ask for some help setting up the build environemnt. hopefully sometime afterwards I can try and compile phoneme_feature.

gerdich 2011-01-21 20:19

Re: Bringing full java midp to n900?
 
Quote:

Originally Posted by [DarkGUNMAN] (Post 918005)
MIcroemulator has been and still is good, but it doesn't support full screen, and can get jerky when running opera mini 5.

MicroEmulator is nearly fullscreen (If you dont look at the small menu-line.)

(And Opera doesn't need Java on n900!)

[DarkGUNMAN] 2011-03-02 21:33

Re: Bringing full java midp to n900?
 
I guess compiling is out of my abilities at the moment. Is anyone willing to try and compile phoneme_feature and get midp2 working?


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

vBulletin® Version 3.8.8