webOS Nation Forums >  webOS Developers >  webOS Development > Java ME
Java ME
  Reply
 
Thread Tools Display Modes
Old 01/22/2010, 05:59 AM   #1 (permalink)
Member
 
Posts: 5
Hello. I'm a software developer and looking to purchase the Palm Pre. This will not wavier my decision to buy, however, does anyone know if Java ME applications will run on the Pre? I don't care to greatly for JavaScript, and would much prefer to develop applications in a low-level language.

I have searched around, however, I've been unable to find very many answers. It seems my search results render applets and JavaScript answers...which, obviously, is not what I'm looking for.
dvlchd3 is offline   Reply With Quote
Old 01/22/2010, 06:15 AM   #2 (permalink)
Member
 
errade's Avatar
 
Posts: 1,608
I've never seen a Java ME app running on a Pre - I don't think it's supported sorry
errade is offline   Reply With Quote
Old 01/22/2010, 06:21 AM   #3 (permalink)
Member
 
Posts: 5
Thank you for your reply. As far as Java ME apps, I believe EA mobile games are developed in ME. The description on their site includes:

Quote:
Produces games for J2ME-equipped mobile handsets and iPods.
I was under the impression these games were supported on the pre. Am I jumping to a conclusion when I assume J2ME is supported in webOS?
dvlchd3 is offline   Reply With Quote
Old 01/22/2010, 06:26 AM   #4 (permalink)
Member
 
errade's Avatar
 
Posts: 1,608
As I understand it the EA games for the Pre are built using Palm's new PDK - in which case you could probably wrap a J2ME app in the PDK & run it natively. I'm not a developer so I'm not entirely sure of the mechanism, but you can't install .jar/.jad files directly like Symbian & BlackBerry OS allow. So perhaps there is a way but it will take some research
errade is offline   Reply With Quote
Old 01/22/2010, 06:49 AM   #5 (permalink)
Member
 
Posts: 5
I see. Thank you very much for your time. Now I at least have a slightly better grasp on it!

I wouldn't have thought Palm would have locked their applications to restrictions of high-level languages and markup languages like JavaScript and HTML...but then again, weirder things have happened...
dvlchd3 is offline   Reply With Quote
Old 01/22/2010, 06:59 AM   #6 (permalink)
Member
 
Posts: 68
The PDK is C/C++, not Java. EA and Gameloft games for iPhone/palm pre are all C-based games.

The J2ME games are for the "dumbphones".
Sethiathome is offline   Reply With Quote
Old 01/22/2010, 07:19 AM   #7 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,852
There is java on the webOS, but it's only used for system services and not allowed for official 3rd party usage.

For now, it's only html/css/javascript.

Soon, Flash will be supported, as well as PDK (C/C++).
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote
Old 01/22/2010, 07:51 AM   #8 (permalink)
Member
 
Posts: 5
Quote:
Originally Posted by Jason Robitaille View Post
There is java on the webOS, but it's only used for system services and not allowed for official 3rd party usage.

For now, it's only html/css/javascript.

Soon, Flash will be supported, as well as PDK (C/C++).
Perhaps someone could enlighten me on how EA games are "supported" for the Pre when they run J2ME? OR has someone gotten the KVM (JVM for mobile devices) to run on the Pre?
dvlchd3 is offline   Reply With Quote
Old 01/22/2010, 09:30 AM   #9 (permalink)
Member
 
japomani's Avatar
 
Posts: 316
WebOS is a platform based on web technologies and methodologies. For simple display html, css, and javascript are fine. Just like in a web environment, there are situations where these tools are too weak. For those situations, the web standard is to employ plugins, like java, flash, quicktime, etc. This is the same for webOS. However, at this time, the only plugin available is C and C++ (for a closed set of developers at this tiem). In Feb, the Flash plug in is available. Just like on the web, these plugins can be set with in a body of html information, or fill the entire screen, making the html invisible.

I suspect that as time goes on, plugins for other technologies will come available. Java is a good candidate because Java is already baked in to the OS for behind the scenes functionality.

The EA games were originally created for the iphone in Apple's Objective C language, not Java. EA was quickly able to convert them into C and use the C plugin to port them to webOS.

This suggests that any app made for the iphone could be quickly ported to webOS. (You hear that Iambic?! Lets see some agendus!)
__________________
Palm 1000 > Palm Pro > Palm III > Palm IIIe X 3 > Palm IIIc > Palm TT > HTC Wizard > HTC Blue Angel > Palm TX > Zier 31 > Palm T3 > Palm Pre > FrankenPre 2 > TouchPad/Droid/Ubuntu > TP/ICS

Last edited by japomani; 01/22/2010 at 09:37 AM.
japomani is offline   Reply With Quote
Old 01/22/2010, 09:44 AM   #10 (permalink)
Member
 
Posts: 5
This is sort of disappointing to me then. I was confused when Palm was so slow to adopt Java in the PalmOS, and am once again confused as to why the delay in giving developers the tools they need to provide great applications to the Palm community.

On a positive note, I was happy to see them waviering any fees to open source developers. This is encouraging. I always love to see a company support OSS developers!

However, thank you all for helping me sort through this rather confusing issue. I'm looking forward to the adoption of Java and C/C++ SDKs!

Also, excellent replies. I'm impressed on how quickly my thread was replied to, and how high quality the responses were. This seems to be an excellent community for webOS!
dvlchd3 is offline   Reply With Quote
Old 01/22/2010, 09:48 AM   #11 (permalink)
Member
 
Posts: 300
Quote:
Originally Posted by japomani View Post
The EA games were originally created for the iphone in Apple's Objective C language, not Java. EA was quickly able to convert them into C and use the C plugin to port them to webOS.
As mentioned before, Objective C is not Apples creation, they only decided to use it.
I also think that Palms PDK does nativly support Objective C aswell, so there isn't even any "conversion" of the code required.
Pulp is offline   Reply With Quote
Old 01/22/2010, 09:53 AM   #12 (permalink)
Member
 
Posts: 933
Quote:
Originally Posted by Pulp View Post
As mentioned before, Objective C is not Apples creation, they only decided to use it.
I also think that Palms PDK does nativly support Objective C aswell, so there isn't even any "conversion" of the code required.
As I understand it, Objective C really is an extension of C, as opposed to C++ which is a different language that is based in C. Objective C is compiled by standard gcc, I believe, whereas C++ is compiled by g++ (when using the Gnu compiler chain, of course).
angiest is offline   Reply With Quote
Old 01/22/2010, 10:01 AM   #13 (permalink)
Member
 
Posts: 68
Nope, no objective C for the PDK. But C++, which is closer to Objective C than pure C.
Sethiathome is offline   Reply With Quote
Old 01/22/2010, 01:56 PM   #14 (permalink)
Member
 
Posts: 425
Quote:
Originally Posted by dvlchd3 View Post
This is sort of disappointing to me then. I was confused when Palm was so slow to adopt Java in the PalmOS, and am once again confused as to why the delay in giving developers the tools they need to provide great applications to the Palm community.

On a positive note, I was happy to see them waviering any fees to open source developers. This is encouraging. I always love to see a company support OSS developers!

However, thank you all for helping me sort through this rather confusing issue. I'm looking forward to the adoption of Java and C/C++ SDKs!

Also, excellent replies. I'm impressed on how quickly my thread was replied to, and how high quality the responses were. This seems to be an excellent community for webOS!
As far as I know, there isn't any planned adoption of any Java SDK. The PDK will bring the option to write in C/C++, but not Java.
stubbs is offline   Reply With Quote
Old 01/22/2010, 02:08 PM   #15 (permalink)
Member
 
ADGrant's Avatar
 
Posts: 1,911
Quote:
Originally Posted by Sethiathome View Post
Nope, no objective C for the PDK. But C++, which is closer to Objective C than pure C.
The compiler for the PDK is gcc which can compile C, C++ and Objective C. So Yes, you should be able to compiler Objective C code to run on the Pre using the PDK. No support for Java though so you are on your own there.
ADGrant is offline   Reply With Quote
Old 04/13/2010, 03:00 PM   #16 (permalink)
Member
 
Posts: 7
Given there there is a VM already on the Pre and running ALL the time, I see no reason that you couldn't do some C++ JNI trickery to envoke Java apps while still supporting the callbacks required by the PDK. I've done things like that on other platforms...all it would take is a set of wrapper functions and a few other bits of awesomeness. Not sure if the VM we're rocking supports swing and the full UI toolset though.

Chris
chris_phelps is offline   Reply With Quote
Old 06/02/2010, 08:28 AM   #17 (permalink)
Member
 
Posts: 30
Quote:
Originally Posted by dvlchd3 View Post
Hello. I'm a software developer and looking to purchase the Palm Pre. This will not wavier my decision to buy, however, does anyone know if Java ME applications will run on the Pre? I don't care to greatly for JavaScript, and would much prefer to develop applications in a low-level language.

I have searched around, however, I've been unable to find very many answers. It seems my search results render applets and JavaScript answers...which, obviously, is not what I'm looking for.
Hello,

You can find a lot of informations about Java support in webOS here :
Java Support in webOS - WebOS Internals

There is no J2ME suport in webOS,
but the only solution could be to use Microemu ( MicroEmulator - Overview )to add it.
yannick56 is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0