Menu

Build.bat Problem

2014-01-30
2015-03-28
  • Anthony Busigin

    Anthony Busigin - 2014-01-30

    I'm trying to merging classes.dex using build.bat and have a problem:

    Compiling the Java Sources

    javac: file not found: src\com\dpfaragir\DPFEditText.java
    Usage: javac <options>
    use -help for a list of possible options

    Creating jar containing the new classes

    output\classes\com : no such file or directory

    Converting from jar to dex...

    The device is not ready.

    Merging dex files

    Error: Could not find or load main class com.android.dx.merge.DexMerger
    Tidying up

    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the file specified.
    Could Not Find c:\Delphi Components\DPFAndroidNativeComponents\JavaClasses\outpu
    t\dex\test_classes.dex

    Now we have the end result, which is output\dex\classes.dex

    The ANDROID and EMBO_DEX variables are set correctly.

    The file DPFEditText.java is missing and needs to be added to the source distribution.

    Hope this will be sorted out quickly. This is great work.

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-02-02

    Hi Anthony

    Fixed.

    Thank you for feedback.

    Regards

     
  • Tyson Stephen

    Tyson Stephen - 2014-04-07

    Also...

    If anyone is having trouble with the build.bat, getting a "'javac' is not recognized as an internal or external command"

    You need to set your JAVA directory, add

    set JAVA="C:\Program Files\Java\jdk1.7.0_25\bin" to the build.bat

    and then locate the javac and jar calls and make them

    %JAVA%\javac and %JAVA%\jar

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-04-07

    Hi Tyson

    Thank you for your good information.

    Regards

     
  • mazen

    mazen - 2015-03-28

    hi i have an error in build.bat
    i make the step set JAVA="C:\Program Files\Java\jdk1.7.0_25\bin" to the build.bat
    but still have an error in the line :
    %JAVA%\javac -source 1.6 -target 1.6 -cp %DX_LIB%\dx.jar com.android.dx.merge.DexMerger %PROJ_DIR%\output\dex\classes.dex %PROJ_DIR%\output\dex\test_classes.dex %EMBO_DEX%


    please help me.
    Thank you .

     
  • mazen

    mazen - 2015-03-28

    I tried :
    %JAVA%\javac -cp %DX_LIB%\dx.jar com.android.dx.merge.DexMerger %PROJ_DIR%\output\dex\classes.dex %PROJ_DIR%\output\dex\test_classes.dex %EMBO_DEX%

    but ... no interest

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.