×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Apr 2003
    Posts
    184

    Creating jad and Jar using command line

    Does anynoe know how to creat jad&jar using command line/prompt ?

  2. #2
    Regular Contributor
    Join Date
    Jun 2003
    Location
    Hungary
    Posts
    414
    I used to use this .bat scripts for creating jar:
    Of course, you need to customize variables

    COMPILE:
    SET JAVA_HOME=c:\j2sdk
    SET J2MEWTK_HOME=c:\wtk104
    SET MIDP_JAR=%J2MEWTK_HOME%\lib\midpapi.zip
    %JAVA_HOME%\bin\javac -d tmpclasses -bootclasspath %MIDP_JAR% -classpath JAVA_HOME%\jre\lib;%MIDP_JAR%;tmpclasses;classes src\*.java

    PREVERIFY:
    SET JAVA_HOME=c:\j2sdk
    SET J2MEWTK_HOME=c:\wtk104
    SET MIDP_JAR=%J2MEWTK_HOME%\lib\midpapi.zip
    %J2MEWTK_HOME%\bin\preverify -classpath %MIDP_JAR%;tmpclasses -d classes tmpclasses

    JAR:
    SET JAVA_HOME=c:\j2sdk
    %JAVA_HOME%\bin\jar cmf bin\Manifest.mf bin\myapp.jar -C classes . -C res .

    Before PREVERIFY you have to create the Manifest.mf file, after JAR you have to create .jad file as normal text file.

Posting Permissions

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