can you please post the create script, with which you created your android project?
The android project contains a base.properties file. The jfx.app.dist.dir property in this file should point to a directory, which should contain the jar file(s) of your application.
Stefan
Hi Stefan,
Please find the script
#!/bin/bash
# this is an example script. Change the parameters according to your local setup
# in particular,
# * change JAVA_APP_DIR to the directory containing your jar(s)
# * change MAIN_CLASS to the fqn of your main class
# * change WORKDIR to the directory where you want the android project to be created
export ANDROID_SDK=/opt/android-sdk-linux
export PATH=$ANDROID_SDK/tools:$PATH
export CURRENT_DIR=`pwd`
export WORKDIR=/opt/
export JAVA_APP_DIR=/opt/jfxports/apps/samples/Ensemble8/dict
export MAIN_CLASS=ensemble.EnsembleApp
/opt/gradle-1.4/bin/gradle --info createProject -PDEBUG -PDIR=$WORKDIR -PPACKAGE=org.javafxports -PNAME=HelloWorld -PANDROID_SDK=$ANDROID_SDK -PJFX_SDK=$CURRENT_DIR/.. -PJFX_APP=$JAVA_APP_DIR -PJFX_MAIN=$MAIN_CLASS
Picked up JAVA_TOOL_OPTIONS: -agentlib:TakipiAgent
Buildfile: /Volumes/data/work/mobile/workspaces/nb/samplejfx/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 22.6.2
[checkenv] Installed at /Volumes/data/work/mobile/adt-bundle-mac-x86_64-20130729/sdk
-setup:
[echo] Project Name: samplejfx
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-check-jfx.uptodate:
-jfx.bootstrap:
-check-app.uptodate:
-app.bootstrap:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
[echo] Resolving Build Target for samplejfx...
[gettarget] Project Target: Android 4.3
[gettarget] API level: 18
[gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions.
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /Volumes/data/work/mobile/workspaces/nb/samplejfx/bin/rsObj
[mkdir] Created dir: /Volumes/data/work/mobile/workspaces/nb/samplejfx/bin/rsLibs
[echo] ----------
[echo] Resolving Dependencies for samplejfx...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] No changed resources. R.java and Manifest.java untouched.
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 1 source file to /Volumes/data/work/mobile/workspaces/nb/samplejfx/bin/classes
-post-compile:
-obfuscate:
-application.jar:
-pre-dex:
-dex:
[exec] Picked up JAVA_TOOL_OPTIONS: -agentlib:TakipiAgent
[exec] Picked up JAVA_TOOL_OPTIONS: -agentlib:TakipiAgent
[exec]
[exec] UNEXPECTED TOP-LEVEL EXCEPTION:
[exec] java.io.FileNotFoundException: /Volumes/data/work/mobile/workspaces/nb/samplejfx/app-libs/Application_classes.jar (No such file or directory)
[exec] at java.util.zip.ZipFile.open(Native Method)
[exec] at java.util.zip.ZipFile.<init>(ZipFile.java:215)
[exec] at java.util.zip.ZipFile.<init>(ZipFile.java:145)
[exec] at java.util.zip.ZipFile.<init>(ZipFile.java:159)
[exec] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
[exec] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
[exec] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
[exec] at com.android.dx.command.dexer.Main.processOne(Main.java:596)
[exec] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
[exec] at com.android.dx.command.dexer.Main.runMultiDex(Main.java:317)
[exec] at com.android.dx.command.dexer.Main.run(Main.java:228)
[exec] at com.android.dx.command.dexer.Main.main(Main.java:199)
[exec] at com.android.dx.command.Main.main(Main.java:103)
[exec] 1 error; aborting
BUILD FAILED
/Volumes/data/work/mobile/workspaces/nb/dalvik-sdk/android-tools/build-extras.xml:117: The following error occurred while executing this line:
/Volumes/data/work/mobile/workspaces/nb/dalvik-sdk/android-tools/build-extras.xml:118: The following error occurred while executing this line:
/Volumes/data/work/mobile/workspaces/nb/dalvik-sdk/android-tools/build-extras.xml:128: The following error occurred while executing this line:
/Volumes/data/work/mobile/workspaces/nb/dalvik-sdk/android-tools/build-extras.xml:103: exec returned: 1
thank you