You Are Here:

Community: Developer Discussion Boards

#1 Old Question WTK22 Command Line Compilation Query - 2005-11-16, 10:42

Join Date: Nov 2005
Posts: 2
vjramani
Offline
Registered User
Could anyone tell me how to build a preverified jar through the command line. I've tried doing the following:
Compilation step:

HTML Code:
C:\j2sdk1.4.2_08\bin\javac -verbose -sourcepath src -d classes -bootclasspath C:\WTK22\lib\midpapi20.jar;C:\WTK22\lib\cldcapi11.jar;C:\WTK22\lib\jsr184.jar src\Port3DMID.java
Packaging step:
HTML Code:
C:\j2sdk1.4.2_08\bin\jar cvfm bin\tmp_app.jar bin\MANIFEST.MF -C res . -C classes .
Obfuscation step:
HTML Code:
java -jar C:\j2sdk1.4.2_08\lib\proguard.jar @build.pro -verbose
Preverification step:
HTML Code:
C:\WTK22\bin\preverify.exe -classpath C:\WTK22\lib\midpapi20.jar;C:\WTK22\lib\cldcapi11.jar;C:\WTK22\lib\jsr184.jar bin\app.jar
The build.pro file contains the following:
HTML Code:
-libraryjars C:\WTK22\lib\midpapi20.jar;C:\WTK22\lib\cldcapi11.jar;C:\WTK22\lib\jsr184.jar  -injars bin\tmp_app.jar  -outjar bin\app.jar  -keep public class * extends javax.microedition.midlet.MIDlet   -dontshrink
All source files are stored in the src folder, resource files in the res folder and classes in the classes folder.

None of these steps throw any errors which indicates that everything runs fine, but the output file just doesn't run on the phone after installation. Again no errors thrown.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Query Balance using VB and AT commands umairsheikh General Messaging 1 2005-02-04 13:40
some descritor trick is required in sql query? siemensc55 General Symbian C++ 2 2004-08-16 11:39
newbie, having problems with query dialog sbwoodside Symbian User Interface 1 2004-04-22 08:01
Querr Dialog no compilation error but... sblider General Symbian C++ 0 2004-01-26 17:28
How to extend duration limit in query dialog within popup field? khanming Symbian User Interface 0 2002-10-18 07:53

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia