File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Hi friends...pls go thru this and prove MicroJava is great Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Hi friends...pls go thru this and prove MicroJava is great" Watch "Hi friends...pls go thru this and prove MicroJava is great" New topic
Author

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

Joe Augustine
Greenhorn

Joined: Apr 17, 2001
Posts: 9
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.
glen kaatz
Greenhorn

Joined: Apr 29, 2001
Posts: 6
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
sanjaymistry
Greenhorn

Joined: Apr 30, 2001
Posts: 2
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hi friends...pls go thru this and prove MicroJava is great