This may be a silly question, but have you tried the Ant build scripts
that can be exported from EclipseME?
Mercor Project wrote:
> Guys,
>
> I'm having a very hard time packaging my J2ME application. Packaging
> w/ EclipseME is a Breeze: right click on the project, select J2ME and
> the click on Create Package. The package created this way works
> perfectly, runs smoothly on the Nokia emulator and on the mobile
> phone. What I can't get right is making an ant script that does the
> exact same thing. Does anyone know the packaging procedure (and
> default configurations) involved on the default EclipseME 1.5.4
> packaging? Or would be kind to take a glance on the ant script below
> (it does compile right, but the .class(es) created are different from
> Eclipse's)?
>
> Any help is much appreciated.
>
> Sincerely,
> Mercor
>
>
>
>
> - - - - - - - - - - - - - - - - - - - - - - - - -
>
> <project basedir=".">
>
> <!-- set global properties for this build -->
> <property name="J2ME_HOME" location="C:/Java/wtk22/"/>
> <property name="SRC_DIR" location="src"/>
> <property name="TARGET_DIR" value="target"/>
> <property name="UTIL_DIR" location="util"/>
>
> <!-- initializes the required classpath variables-->
> <path id="project.classpath">
> <pathelement location="lib/jsr082.jar"/> <!-- [jsr082] -->
> <pathelement location="lib/cldcapi11.jar"/> <!-- [cldcapi11] -->
> <pathelement location="lib/midpapi20.jar"/> <!-- [midpapi20] -->
> </path>
> <property name="project.classpath" refid="project.classpath"/>
>
> <path id="project.preverify.classpath">
> <pathelement location="lib/classes.zip"/>
> </path>
> <property name="project.preverify.classpath"
> refid="project.preverify.classpath"/>
>
> <target name="compile" >
> <mkdir dir="${TARGET_DIR}"/>
> <mkdir dir="${TARGET_DIR}/classes"/>
> <javac srcdir="${SRC_DIR}" destdir="${TARGET_DIR}/classes"
> source="1.3" target="1.1">
> <bootclasspath refid="project.classpath"/>
> </javac>
> </target>
>
> <target name="preverify" depends="compile">
> <mkdir dir="${TARGET_DIR}/preverified"/>
> <exec executable="${J2ME_HOME}/bin/preverify">
> <arg line="-classpath ${project.preverify.classpath}"/>
> <arg line="-d ${TARGET_DIR}/preverified"/>
> <arg line="${TARGET_DIR}/classes"/>
> <arg line="-target CLDC1.1"/>
> </exec>
> </target>
>
> <target name="jar" depends="preverify">
> <mkdir dir="${TARGET_DIR}/dist"/>
> <jar basedir="${TARGET_DIR}/classes"
> jarfile="${TARGET_DIR}/dist/BenhuiMIDlet.jar" >
> <manifest>
> <attribute name="MIDlet-Version" value="1.0.0"/>
> <attribute name="MIDlet-Vendor" value="Midlet Suite Vendor"/>
> <attribute name="MIDlet-Jar-URL" value="BenhuiMIDlet.jar"/>
> <attribute name="MicroEdition-Configuration" value="CLDC-1.1"/>
> <attribute name="MicroEdition-Profile" value="MIDP-2.0"/>
> <attribute name="MIDlet-1"
> value="SPP_MIDlet,,net.benhui.btgallery.spp_gui.SPP_MIDlet"/>
> <attribute name="MIDlet-Name" value="Midlet Suite"/>
> </manifest>
> </jar>
> <copy file="util/BenhuiMIDlet.jad"
> tofile="${TARGET_DIR}/dist/BenhuiMIDlet.jad"/>
> </target>
>
> </project>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> Eclipseme-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/eclipseme-users
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users