• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Hi friends...pls go thru this and prove MicroJava is great

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I send these queries to almost all Palm-J2ME sites and i didn't get any response.Now the only hope is in this site.......
If i am not getting any response,i will make sure that MicroJava is totally a failure and nobody is seriously developing any Palm application in Java ...............!!!
1. Is it possible to use a C++ library in J2ME ?
I have some C++ header files to do some of the general functionalities in a better way.
If i can call these header files,then my life will be very easy.
2.Not able to popup a messagebox sucuessfully
For this i am using the class OptionDialog.
But the error what i am getting when i try to run in Palm is :
"No such method (Ljava/awt/Component;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V"
I couldn't make out anything from this error.There is no error while compiling.
So i guess whether my KVM is not supporting this class or not....can u pls give me a suggestion on this.
3.Regarding '-networking' flag option while making prc file.
How i am planning to do my application is -
if palm has got a wireless connection (online mode) then the application should interact with a remote database via HttpConnection.Otherwise it will store data in a Palm local DB.
Now the problem is,if i want to make a Palm application supposed to communicate over network,i should use the flag -networking while making prc.If i do so,when i click on my application icon, in Palm, first it will bring java Duke screen
and then will try to establish a wireless connection.Without establishing a sucessful connection the application won't comeup.
So,in this scenario how can i maintain a single application that should work in online as well as offline.
Hope the situation is clear.Pls let me know if u guys need anymore info ,so that u can give me a better reply.
I would be really Thankful and appreaciate if someone challange me with a better response.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. I don't believe J2ME has a JNI. In JDK 1.2 you can do the following: Runtime.getRuntime().exec() but the J2ME Runtime doesn't have an exec() method. Probably a no-go on this one.
2. If you're doing a UI and can wait, I'd strongly recommend using the MIDP for palm. I'm using the EA version now and it is quite good (given the limited device UI's). The other advantage to MIDP is that it auto-adjusts for different UI's (ie: phone).
3. Yup. This is a problem. It is currently even worse with the MIDP for Palm since you don't directly control the networking option via the PRC compile process. This seems to be a limitation of the Palm OS (among others). I'm trying to get Sun to do something about this as it is a real major problem. Especially under MIDP - the networking option is set in preferences as is global to all midlets not just a given .prc
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you look at the specs of J2ME, it say, Native support is not there in J2ME.
And if you can't solve your problems yourself, don't blame on J2ME..............keep ont thing in mind. J2ME is not a failure..........!!!

Originally posted by Joe Augustine:
Hi all,
I send these queries to almost all Palm-J2ME sites and i didn't get any response.Now the only hope is in this site.......
If i am not getting any response,i will make sure that MicroJava is totally a failure and nobody is seriously developing any Palm application in Java ...............!!!
1. Is it possible to use a C++ library in J2ME ?
I have some C++ header files to do some of the general functionalities in a better way.
If i can call these header files,then my life will be very easy.
2.Not able to popup a messagebox sucuessfully
For this i am using the class OptionDialog.
But the error what i am getting when i try to run in Palm is :
"No such method (Ljava/awt/Component;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V"
I couldn't make out anything from this error.There is no error while compiling.
So i guess whether my KVM is not supporting this class or not....can u pls give me a suggestion on this.
3.Regarding '-networking' flag option while making prc file.
How i am planning to do my application is -
if palm has got a wireless connection (online mode) then the application should interact with a remote database via HttpConnection.Otherwise it will store data in a Palm local DB.
Now the problem is,if i want to make a Palm application supposed to communicate over network,i should use the flag -networking while making prc.If i do so,when i click on my application icon, in Palm, first it will bring java Duke screen
and then will try to establish a wireless connection.Without establishing a sucessful connection the application won't comeup.
So,in this scenario how can i maintain a single application that should work in online as well as offline.
Hope the situation is clear.Pls let me know if u guys need anymore info ,so that u can give me a better reply.
I would be really Thankful and appreaciate if someone challange me with a better response.


 
reply
    Bookmark Topic Watch Topic
  • New Topic