Big Problem.......Converting PRC File to JAR

I have tried lot of things by setting classpaths for converting PRC file to JAR file ,but...............in vain.Please help me to sort out the problem.RegardsSunny
[205 byte] By [vivek_kurundkar] at [2007-9-26 2:08:28]
# 1

> 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.

artntek at 2007-6-29 8:57:02 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Hi Matthew,Thank's a lot for responding,but I have the problem in extracting a JAR file from PRC file. Hopes u will respond again.byeregardsVivek
vivek_kurundkar at 2007-6-29 8:57:02 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
I don't know how to convert back from PRC to JAR, unfortunately. Just out of curiosity - why do you need to do this?
artntek at 2007-6-29 8:57:02 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

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

vivek_kurundkar at 2007-6-29 8:57:02 > top of Java-index,Java Mobility Forums,Java ME Technologies...