> I have tried lot of things by setting classpaths for
> converting PRC file to JAR file ,but...............in
> vain.
Do you *really* mean "converting PRC file to JAR file", or do you mean "converting JAR file to PRC file"? I suspect it's the latter. Make sure you are doing *ALL* these steps:
1) (*change this to match your own directory structure*)
set classpath=%classpath%;.;c:\J2ME_TOOLS\j2me_cldc\bin\api\classes;C:\J2ME_TOOLS\j2me_cldc\tools\palm\src
2)(*change this to match your own directory structure*)
set path=%path%;C:\J2ME_TOOLS\j2me_cldc\bin;C:\J2ME_TOOLS\j2me_cldc\tools\palm\src
3) cd to the directory where your "*.java" files are
4) compile:
>javac *.java
>dir
...check to see if you have new "*.class" files
5) Make a directory to hold the class that will be generated by the preverifier:
>md preverified_classes
6) preverify the classes:
>preverify -d ./preverified_classes myClass1 myClass2 myClass3
...etc
7) cd to the new directory
>cd preverified_classes
>dir
...should show another copy of each ".class" file - these are the preverified ones.
8) From these preverified class files, create your jar file:
jar -cf myJarFile.jar *.class
9) Now create PRC from jar:
java palm.database.MakePalmApp -v -JARtoPRC myJarFile.jar myMainClassName
...where
"myJarFile.jar" is the name of your jar file, and
"myMainClassName" is the name of the *main class* in the jar file
10) look at the directory listing
>dir
should show myJarFile.prc
10) Load myJarFile.prc onto your Palm device or emultor and reset. Then you sould be good to go.
I have one MIDLet application in which for storing data on PALM device I am using RMS.I want to synchronize the data between Palm Device and the Desktop.
For that I have a servlet which reads the .db file and then syncronizes it with the Oracle database.
Initially for testing I get the database file which is located in nojam directory of J2MEWTK kit.
But once the application is deployed on Palm device ,I am not able to get the .db file from the PRC file.
If someone knows better solutions for synchronization please let me know.
Thank you
Regards
Vivek