Dx bad class file magic (cafebabe) or version (0033.0000)

1,417 views
Skip to first unread message

Ashish Agre

unread,
Dec 16, 2013, 5:24:14 AM12/16/13
to javafx...@googlegroups.com
Hi,

I am able to create android project from javafx-android-sdk on windows but there were some error while generating debug apk.
I have used javax.websocket apis with javafx its a maven build.
Command executed : 

E:\Ashish\jfx>C:\Downloads\gradle-1.4-bin\gradle-1.4\bin\gradle createProject -P
DEBUG -PDIR=E:/Ashish/jfx -PPACKAGE=com.javafx.samples -PNAME=MainApp -PANDROID_
SDK="C:/Program Files/Android" -PJFX_SDK=C:/Users/Ashish/Downloads/android-sdk-b
2/android-sdk-b2 -PJFX_APP=E:/Ashish/javaee7/javafx-web-socket/target -PJFX_MAIN
=in.ashish29agre.mvn.jchat.MainApp

Javafx SDK https://bitbucket.org/javafxports/android/downloads b2.zip present here.

java/javac version : 1.7.0_40-b43
Android Version 17
gradle : 1.4
ant  : 1.9.2
I have attached screenshots of the error logs. 


cafebabe.png
debug_mainapp.png
build_error_log.png

Tomas Brandalik

unread,
Dec 17, 2013, 2:40:34 AM12/17/13
to javafx...@googlegroups.com
It would help to get familiar with very basic android development. eq create simple android project and observe what's going on when you build it etc.
To make story short android sdk compiles project to jdk6 compatible class files and then uses dex-tool to convert it google specific dexformat and then package it to apk.
dex-tool requires class file version to be jdk6. If you're passing jdk7 class files it complains.

-Tomas

Dne pondělí, 16. prosince 2013 11:24:14 UTC+1 Ashish Agre napsal(a):
Message has been deleted

Ashish Agre

unread,
Dec 17, 2013, 4:51:45 AM12/17/13
to javafx...@googlegroups.com
Hi Tomas,
 
So i want to make this piece of code work on android what has to be done.

JavaFX requires java7 O.o

Tomas Brandalik

unread,
Dec 17, 2013, 4:57:43 AM12/17/13
to javafx...@googlegroups.com
javafx runtime for android (all jars) have jdk6 class file version. Other jars in your project have to be jdk6 classes as well. It's up to you how you provide build of your app jars. You can use jdk6 or set source/binary compatibility options of javac  -source 1.6 -target 1.6
-Tomas

Dne úterý, 17. prosince 2013 10:51:45 UTC+1 Ashish Agre napsal(a):

Ashish Agre

unread,
Dec 17, 2013, 5:59:31 AM12/17/13
to javafx...@googlegroups.com
Some how it didn't work :/ it kept on cafebabe error even after setting binary/format to jdk 6 in Netbeans.
Quickly tried fxml this was log
12-17 16:24:59.638: I/ActivityManager(601): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.javafx.samples/javafxports.android.FXActivity} from pid 875
12-17 16:24:59.648: D/audio_hw_primary(176): select_devices: out_snd_device(2: speaker) in_snd_device(0: )
12-17 16:24:59.648: D/ACDB-LOADER(176): ACDB -> send_afe_cal
12-17 16:24:59.698: I/ActivityManager(601): Start proc com.javafx.samples for activity com.javafx.samples/javafxports.android.FXActivity: pid=17291 uid=10128 gids={50128, 1028, 1015, 3003}
12-17 16:24:59.708: D/dalvikvm(17291): Late-enabling CheckJNI
12-17 16:24:59.738: V/PhoneStatusBar(689): setLightsOn(true)
12-17 16:24:59.768: D/dalvikvm(17291): Trying to load lib /data/app-lib/com.javafx.samples-1/libactivity.so 0x41eb89e0
12-17 16:24:59.768: D/dalvikvm(17291): Added shared lib /data/app-lib/com.javafx.samples-1/libactivity.so 0x41eb89e0
12-17 16:24:59.768: V/FXActivity native(17291): Loading library
12-17 16:24:59.788: V/FXActivity native(17291): appDataDir: /data/data/com.javafx.samples
12-17 16:24:59.788: V/FXActivity native(17291): Notification queue instance created.
12-17 16:24:59.788: V/FXActivity native(17291): Notification queue started
12-17 16:24:59.929: V/FXActivity(17291): Surface created.
12-17 16:25:00.019: D/dalvikvm(17291): GC_FOR_ALLOC freed 191K, 3% free 9299K/9524K, paused 17ms, total 17ms
12-17 16:25:00.049: D/dalvikvm(17291): GC_FOR_ALLOC freed 298K, 5% free 9430K/9844K, paused 14ms, total 14ms
12-17 16:25:00.129: D/dalvikvm(17291): GC_FOR_ALLOC freed 215K, 3% free 9727K/9976K, paused 15ms, total 15ms
12-17 16:25:00.239: D/dalvikvm(17291): GC_FOR_ALLOC freed 321K, 4% free 9921K/10276K, paused 17ms, total 17ms
12-17 16:25:00.279: I/System.out(17291): prism.text=native
12-17 16:25:00.279: I/System.out(17291): java.vendor.url=http://www.android.com/
12-17 16:25:00.279: I/System.out(17291): java.ext.dirs=
12-17 16:25:00.279: I/System.out(17291): line.separator=
12-17 16:25:00.279: I/System.out(17291): file.encoding=UTF-8
12-17 16:25:00.279: I/System.out(17291): java.runtime.version=0.9
12-17 16:25:00.279: I/System.out(17291): user.name=root
12-17 16:25:00.279: I/System.out(17291): prism.dirtyopts=true
12-17 16:25:00.279: I/System.out(17291): java.compiler=
12-17 16:25:00.279: I/System.out(17291): android.icu.unicode.version=6.2
12-17 16:25:00.279: I/System.out(17291): prism.debugfonts=true
12-17 16:25:00.279: I/System.out(17291): java.version=0
12-17 16:25:00.279: I/System.out(17291): android.icu.library.version=51.1.0.1
12-17 16:25:00.279: I/System.out(17291): use.egl=true
12-17 16:25:00.279: I/System.out(17291): embedded=eglfb
12-17 16:25:00.279: I/System.out(17291): prism.lcdtext=false
12-17 16:25:00.279: I/System.out(17291): os.arch=armv7l
12-17 16:25:00.279: I/System.out(17291): java.io.tmpdir=/data/data/com.javafx.samples/cache
12-17 16:25:00.279: I/System.out(17291): glass.platform=Lens
12-17 16:25:00.279: I/System.out(17291): android.zlib.version=1.2.8
12-17 16:25:00.279: I/System.out(17291): user.language=en
12-17 16:25:00.279: I/System.out(17291): java.vm.version=1.6.0
12-17 16:25:00.279: I/System.out(17291): com.sun.javafx.isEmbedded=true
12-17 16:25:00.279: I/System.out(17291): path.separator=:
12-17 16:25:00.279: I/System.out(17291): prism.glDepthSize=16
12-17 16:25:00.279: I/System.out(17291): java.runtime.name=Android Runtime
12-17 16:25:00.279: I/System.out(17291): java.specification.version=0.9
12-17 16:25:00.279: I/System.out(17291): user.dir=/
12-17 16:25:00.279: I/System.out(17291): prism.maxTextureSize=2048
12-17 16:25:00.279: I/System.out(17291): java.vm.specification.vendor=The Android Project
12-17 16:25:00.279: I/System.out(17291): java.vm.name=Dalvik
12-17 16:25:00.279: I/System.out(17291): log.lens=FINEST
12-17 16:25:00.279: I/System.out(17291): java.vm.specification.version=0.9
12-17 16:25:00.279: I/System.out(17291): user.home=/
12-17 16:25:00.279: I/System.out(17291): java.specification.name=Dalvik Core Library
12-17 16:25:00.279: I/System.out(17291): file.separator=/
12-17 16:25:00.279: I/System.out(17291): java.library.path=/vendor/lib:/system/lib
12-17 16:25:00.279: I/System.out(17291): os.version=3.4.0-perf-g6aa1c72
12-17 16:25:00.279: I/System.out(17291): java.boot.class.path=/system/framework/core.jar:/system/fr...
12-17 16:25:00.279: I/System.out(17291): java.vm.specification.name=Dalvik Virtual Machine Specification
12-17 16:25:00.279: I/System.out(17291): javafx.platform=android
12-17 16:25:00.279: I/System.out(17291): user.region=US
12-17 16:25:00.279: I/System.out(17291): os.name=Linux
12-17 16:25:00.279: I/System.out(17291): glass.lens=eglfb
12-17 16:25:00.279: I/System.out(17291): java.class.path=.
12-17 16:25:00.279: I/System.out(17291): prism.vsync=false
12-17 16:25:00.279: I/System.out(17291): java.specification.vendor=The Android Project
12-17 16:25:00.279: I/System.out(17291): java.vm.vendor=The Android Project
12-17 16:25:00.279: I/System.out(17291): prism.allowhidpi=false
12-17 16:25:00.279: I/System.out(17291): java.vendor=The Android Project
12-17 16:25:00.279: I/System.out(17291): http.agent=Dalvik/1.6.0 (Linux; U; Android 4.4; ...
12-17 16:25:00.279: I/System.out(17291): android.icu.cldr.version=23.0
12-17 16:25:00.279: I/System.out(17291): android.openssl.version=OpenSSL 1.0.1e 11 Feb 2013
12-17 16:25:00.279: I/System.out(17291): java.home=/system
12-17 16:25:00.279: I/System.out(17291): java.vm.vendor.url=http://www.android.com/
12-17 16:25:00.279: I/System.out(17291): java.class.version=50.0
12-17 16:25:00.279: V/DalvikLauncher(17291): Launching JavaFX application on dalvik vm...
12-17 16:25:00.279: I/dalvikvm(17291): Could not find method javafx.fxml.FXMLLoader.load, referenced from method sampletest.SampleTest.start
12-17 16:25:00.279: W/dalvikvm(17291): VFY: unable to resolve static method 38577: Ljavafx/fxml/FXMLLoader;.load (Ljava/net/URL;)Ljava/lang/Object;
12-17 16:25:00.279: D/dalvikvm(17291): VFY: replacing opcode 0x71 at 0x000a
12-17 16:25:00.289: V/DalvikLauncher(17291): application class: [class sampletest.SampleTest]
12-17 16:25:00.289: V/DalvikLauncher(17291): preloader class: [null]
12-17 16:25:00.289: V/DalvikLauncher(17291): javafx application class: [class javafx.application.Application]
12-17 16:25:00.289: V/DalvikLauncher(17291): javafx launcher class: [class com.sun.javafx.application.LauncherImpl]
12-17 16:25:00.289: V/DalvikLauncher(17291): launch application method: [public static void com.sun.javafx.application.LauncherImpl.launchApplication(java.lang.Class,java.lang.Class,java.lang.String[])]
12-17 16:25:00.299: E/dalvikvm(17291): dlopen("/vendor/lib/libprism_es2_eglfb.so") failed: dlopen failed: library "/vendor/lib/libprism_es2_eglfb.so" not found
12-17 16:25:00.299: E/dalvikvm(17291): dlopen("/system/lib/libprism_es2_eglfb.so") failed: dlopen failed: library "/system/lib/libprism_es2_eglfb.so" not found
12-17 16:25:00.299: D/dalvikvm(17291): Trying to load lib /data/app-lib/com.javafx.samples-1/libprism_es2_eglfb.so 0x41eb89e0
12-17 16:25:00.299: D/dalvikvm(17291): Added shared lib /data/app-lib/com.javafx.samples-1/libprism_es2_eglfb.so 0x41eb89e0
12-17 16:25:00.299: D/dalvikvm(17291): No JNI_OnLoad found in /data/app-lib/com.javafx.samples-1/libprism_es2_eglfb.so 0x41eb89e0, skipping init
12-17 16:25:00.309: I/Adreno-EGL(17291): <qeglDrvAPI_eglInitialize:320>: EGL 1.4 QUALCOMM build:  (CL3776187)
12-17 16:25:00.309: I/Adreno-EGL(17291): OpenGL ES Shader Compiler Version: 
12-17 16:25:00.309: I/Adreno-EGL(17291): Build Date: 10/15/13 Tue
12-17 16:25:00.309: I/Adreno-EGL(17291): Local Branch: 
12-17 16:25:00.309: I/Adreno-EGL(17291): Remote Branch: partner/upstream
12-17 16:25:00.309: I/Adreno-EGL(17291): Local Patches: 
12-17 16:25:00.309: I/Adreno-EGL(17291): Reconstruct Branch: 
12-17 16:25:00.309: I/javafx(17291): Using libactivity.so
12-17 16:25:00.329: I/ActivityManager(601): Displayed com.javafx.samples/javafxports.android.FXActivity: +640ms
12-17 16:25:00.359: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.359: W/System.err(17291): INFO: LensApplication initialization
12-17 16:25:00.359: E/dalvikvm(17291): dlopen("/vendor/lib/libglass_lens_eglfb.so") failed: dlopen failed: library "/vendor/lib/libglass_lens_eglfb.so" not found
12-17 16:25:00.359: E/dalvikvm(17291): dlopen("/system/lib/libglass_lens_eglfb.so") failed: dlopen failed: library "/system/lib/libglass_lens_eglfb.so" not found
12-17 16:25:00.359: D/dalvikvm(17291): Trying to load lib /data/app-lib/com.javafx.samples-1/libglass_lens_eglfb.so 0x41eb89e0
12-17 16:25:00.359: D/dalvikvm(17291): Added shared lib /data/app-lib/com.javafx.samples-1/libglass_lens_eglfb.so 0x41eb89e0
12-17 16:25:00.359: I/GLASS(17291): Log level 300
12-17 16:25:00.359: I/GLASS(17291): Setting up JNI references
12-17 16:25:00.369: I/GLASS(17291): Set up JNI references
12-17 16:25:00.369: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.369: W/System.err(17291): INFO: LensApplication initialization done
12-17 16:25:00.369: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.369: W/System.err(17291): FINE: LensApplication ctor called, registering in native layer
12-17 16:25:00.369: I/GLASS(17291): Rgistering LenApplication object
12-17 16:25:00.369: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.369: W/System.err(17291): FINE: invokeLater com.sun.glass.ui.Application$2@41f39e78
12-17 16:25:00.369: V/GLASS(17291): Binding to libactivity.so
12-17 16:25:00.369: I/GLASS(17291): Init device
12-17 16:25:00.369: I/GLASS(17291): Init screen
12-17 16:25:00.369: I/GLASS(17291): Clearing screen
12-17 16:25:00.369: I/GLASS(17291): Cursor init
12-17 16:25:00.369: I/GLASS(17291): Init input devices
12-17 16:25:00.369: V/GLASS(17291): JNI call notifyDeviceEvent flags=0x2 attach=1
12-17 16:25:00.369: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.369: W/System.err(17291): FINE: Notify device event attach=true, flags=0x2
12-17 16:25:00.369: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.369: W/System.err(17291): FINE: Done calling postEvent
12-17 16:25:00.379: V/FXActivity(17291): notify_glassHasStarted
12-17 16:25:00.379: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.379: W/System.err(17291): FINE: Starting event loop
12-17 16:25:00.379: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.379: W/System.err(17291): FINE: Processing RunnableEvent[runnable=com.sun.glass.ui.Application$2@41f39e78,wait=false]
12-17 16:25:00.399: D/dalvikvm(17291): GC_FOR_ALLOC freed 374K, 5% free 10021K/10440K, paused 16ms, total 16ms
12-17 16:25:00.399: I/dalvikvm-heap(17291): Grow heap (frag case) to 10.255MB for 458768-byte allocation
12-17 16:25:00.419: D/dalvikvm(17291): GC_FOR_ALLOC freed <1K, 4% free 10469K/10892K, paused 16ms, total 16ms
12-17 16:25:00.419: I/javafx(17291): Using libactivity.so
12-17 16:25:00.419: I/javafx(17291): Using libactivity.so
12-17 16:25:00.429: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.429: W/System.err(17291): FINE: invokeLater com.sun.javafx.application.PlatformImpl$6@41f84958
12-17 16:25:00.429: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.429: W/System.err(17291): FINE: Processing RunnableEvent[runnable=com.sun.javafx.application.PlatformImpl$6@41f84958,wait=false]
12-17 16:25:00.429: I/System.out(17291): [JVBDG] PI1
12-17 16:25:00.429: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.429: W/System.err(17291): FINE: invokeLater com.sun.javafx.application.PlatformImpl$6@41f36dc0
12-17 16:25:00.429: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.429: W/System.err(17291): FINE: Processing RunnableEvent[runnable=com.sun.javafx.application.PlatformImpl$6@41f36dc0,wait=false]
12-17 16:25:00.439: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.439: W/System.err(17291): FINE: invokeLater com.sun.javafx.application.PlatformImpl$6@41f34b58
12-17 16:25:00.439: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.439: W/System.err(17291): FINE: Processing RunnableEvent[runnable=com.sun.javafx.application.PlatformImpl$6@41f34b58,wait=false]
12-17 16:25:00.439: I/System.out(17291): theapp = sampletest.SampleTest@41eab318
12-17 16:25:00.449: W/System.err(17291): Exception in Application start method
12-17 16:25:00.449: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.449: W/System.err(17291): FINE: invokeLater com.sun.javafx.application.PlatformImpl$6@41ef3510
12-17 16:25:00.449: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.449: W/System.err(17291): FINE: Processing RunnableEvent[runnable=com.sun.javafx.application.PlatformImpl$6@41ef3510,wait=false]
12-17 16:25:00.449: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.449: W/System.err(17291): FINE: invokeLater com.sun.javafx.application.PlatformImpl$6@41ed40f0
12-17 16:25:00.449: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.449: W/System.err(17291): FINE: Processing RunnableEvent[runnable=com.sun.javafx.application.PlatformImpl$6@41ed40f0,wait=false]
12-17 16:25:00.459: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.459: W/System.err(17291): FINE: invokeLater com.sun.javafx.application.PlatformImpl$6@41eaaf38
12-17 16:25:00.459: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.459: W/System.err(17291): FINE: Processing RunnableEvent[runnable=com.sun.javafx.application.PlatformImpl$6@41eaaf38,wait=false]
12-17 16:25:00.459: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.459: W/System.err(17291): FINE: invokeLater com.sun.javafx.application.PlatformImpl$6@41ecf348
12-17 16:25:00.459: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.459: W/System.err(17291): FINE: Processing RunnableEvent[runnable=com.sun.javafx.application.PlatformImpl$6@41ecf348,wait=false]
12-17 16:25:00.459: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.459: W/System.err(17291): INFO: Finishing terminating
12-17 16:25:00.459: V/GLASS(17291): Shutting down
12-17 16:25:00.459: I/GLASS(17291): DeleteGlobalRef(pApplication(0x1d2003fe))
12-17 16:25:00.459: V/GLASS(17291): Shut down
12-17 16:25:00.459: V/FXActivity(17291): notify_glassShutdown
12-17 16:25:00.459: W/System.err(17291): java.lang.reflect.InvocationTargetException
12-17 16:25:00.459: W/System.err(17291): Dec 17, 2013 4:25:00 PM lens
12-17 16:25:00.459: W/System.err(17291): FINE: Leaving event loop
12-17 16:25:00.459: W/System.err(17291): at java.lang.reflect.Method.invokeNative(Native Method)
12-17 16:25:00.459: W/System.err(17291): at java.lang.reflect.Method.invoke(Method.java:515)
12-17 16:25:00.459: W/System.err(17291): at javafxports.android.DalvikLauncher$1.run(DalvikLauncher.java:105)
12-17 16:25:00.459: W/System.err(17291): at java.lang.Thread.run(Thread.java:841)
12-17 16:25:00.459: W/System.err(17291): Caused by: java.lang.RuntimeException: Exception in Application start method
12-17 16:25:00.459: W/System.err(17291): at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:907)
12-17 16:25:00.459: W/System.err(17291): at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
12-17 16:25:00.459: W/System.err(17291): at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:159)
12-17 16:25:00.469: W/System.err(17291): ... 1 more
12-17 16:25:00.469: W/System.err(17291): Caused by: java.lang.NoClassDefFoundError: javafx.fxml.FXMLLoader
12-17 16:25:00.469: W/System.err(17291): at sampletest.SampleTest.start(SampleTest.java:23)
12-17 16:25:00.469: W/System.err(17291): at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:848)
12-17 16:25:00.469: W/System.err(17291): at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:331)
12-17 16:25:00.469: W/System.err(17291): at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:297)
12-17 16:25:00.469: W/System.err(17291): at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:294)
12-17 16:25:00.469: W/System.err(17291): at java.security.AccessController.doPrivileged(AccessController.java:52)
12-17 16:25:00.469: W/System.err(17291): at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:294)
12-17 16:25:00.469: W/System.err(17291): at com.sun.glass.ui.lens.LensApplication$RunnableEvent.dispatch(LensApplication.java:182)
12-17 16:25:00.469: W/System.err(17291): at com.sun.glass.ui.lens.LensApplication._runLoop(LensApplication.java:860)
12-17 16:25:00.469: W/System.err(17291): at com.sun.glass.ui.lens.LensApplication.access$1800(LensApplication.java:58)
12-17 16:25:00.469: W/System.err(17291): at com.sun.glass.ui.lens.LensApplication$4.run(LensApplication.java:917)
12-17 16:25:00.469: W/System.err(17291): ... 1 more
12-17 16:25:00.529: D/dalvikvm(601): GC_FOR_ALLOC freed 900K, 21% free 18496K/23396K, paused 57ms, total 57ms
12-17 16:25:00.589: D/dalvikvm(601): GC_FOR_ALLOC freed 790K, 22% free 18449K/23396K, paused 56ms, total 56ms
12-17 16:25:00.729: V/GLASS(17291): Notify JFX that surface has changed. Not yet implemented!
12-17 16:25:01.140: I/Process(17291): Sending signal. PID: 17291 SIG: 9
12-17 16:25:01.160: I/ActivityManager(601): Process com.javafx.samples (pid 17291) has died.
12-17 16:25:01.160: I/WindowState(601): WIN DEATH: Window{4268f988 u0 com.javafx.samples/javafxports.android.FXActivity}
12-17 16:25:01.160: W/WindowManager(601): Force-removing child win Window{426a2a08 u0 SurfaceView} from container Window{4268f988 u0 com.javafx.samples/javafxports.android.FXActivity}
12-17 16:25:01.170: W/WindowManager(601): Failed looking up window
12-17 16:25:01.170: W/WindowManager(601): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@42225060 does not exist
12-17 16:25:01.170: W/WindowManager(601): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7897)
12-17 16:25:01.170: W/WindowManager(601): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7888)
12-17 16:25:01.170: W/WindowManager(601): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1040)
12-17 16:25:01.170: W/WindowManager(601): at android.os.BinderProxy.sendDeathNotice(Binder.java:493)
12-17 16:25:01.170: W/WindowManager(601): at dalvik.system.NativeStart.run(Native Method)
12-17 16:25:01.170: I/WindowState(601): WIN DEATH: null
12-17 16:25:11.311: D/dalvikvm(850): GC_CONCURRENT freed 403K, 5% free 9506K/9952K, paused 1ms+1ms, total 33ms
12-17 16:25:11.951: D/dalvikvm(1047): GC_CONCURRENT freed 529K, 11% free 10133K/11360K, paused 7ms+3ms, total 38ms
12-17 16:25:11.951: D/dalvikvm(1047): WAIT_FOR_CONCURRENT_GC blocked 14ms
12-17 16:25:11.951: D/dalvikvm(1047): WAIT_FOR_CONCURRENT_GC blocked 14ms
12-17 16:25:11.951: D/dalvikvm(1047): WAIT_FOR_CONCURRENT_GC blocked 14ms
12-17 16:25:11.951: D/dalvikvm(1047): WAIT_FOR_CONCURRENT_GC blocked 15ms
12-17 16:25:12.092: I/GCoreUlr(1047): Successfully inserted location
12-17 16:25:12.102: I/GCoreUlr(1047): Not calling LocationReportingService, hasMoved: false, elapsed millis: 1620344, request: Phone
12-17 16:26:11.945: D/dalvikvm(1047): GC_CONCURRENT freed 463K, 12% free 10104K/11360K, paused 3ms+2ms, total 31ms
12-17 16:26:12.086: I/GCoreUlr(1047): Successfully inserted location
12-17 16:26:12.096: I/GCoreUlr(1047): Not calling LocationReportingService, hasMoved: false, elapsed millis: 1680333, request: Phone

Tomas Brandalik

unread,
Dec 17, 2013, 6:26:30 AM12/17/13
to javafx...@googlegroups.com

If there's still error in dex-tool some classes are probably left out from your final package. In such case there's no point to try run it on device you'll get class not found exception. You have to get rid of cafebabe error first. Aren't you using external library jar which would be in 7 format?

Ashish Agre

unread,
Dec 17, 2013, 6:43:24 AM12/17/13
to Tomas Brandalik, javafx...@googlegroups.com
Yes i am using external library jar(javaee-api7.0.jar)
The moment i set source/format to 1.6 all javafx components become unknown.
I think because i am using websocket javaee7 api, might be this in 7 format.

Johan Vos

unread,
Dec 17, 2013, 6:50:58 AM12/17/13
to Ashish Agre, Tomas Brandalik, javafx...@googlegroups.com
Hi,

You are very brave to run parts of Java EE 7 on Android :)
The websocket API itself is not a hard one, since the source code is available and you can easily build this yourself with JDK 1.6. However, the RI, Tyrus, relies on much more components (grizzly etc) that might be a bit harder to recreate -- but not impossible.

I'll be working on an Android JavaFX Chat sample soon myself too.

- Johan


2013/12/17 Ashish Agre <ashish...@gmail.com>
Yes i am using external library jar(javaee-api7.0.jar)
The moment i set source/format to 1.6 all javafx components become unknown.
I think because i am using websocket javaee7 api, might be this in 7 format.

--
You received this message because you are subscribed to the Google Groups "JavaFXAndroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javafxandroi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ashish Agre

unread,
Dec 17, 2013, 7:02:54 AM12/17/13
to Johan Vos, Tomas Brandalik, javafx...@googlegroups.com
@johan so i'll be waiting for android javafx chat
from my source code files import statements i do not see any import from org.glsasfish.tyrus
its only javax.websocket
lets see if i find any web-socket api reference to compile with jdk 6 :)

--
Best Regards
Ashish R Agre
Software Developer @Neev Information Technologies Pvt. Ltd.

Ashish Agre

unread,
Dec 20, 2013, 6:57:03 AM12/20/13
to javafx...@googlegroups.com
So i managed to get away from cafebabe issue
Now getting class not found even though the javafx app work fine, fails on android
(Compiled web sockets from here : https://java.net/projects/websocket-spec/  :: rc-5 )
(Compiled tyrus from here : https://java.net/projects/tyrus/ :: rc3)
12-20 17:13:14.875: W/System.err(8696): FINEST: reset mouse button cache 212
12-20 17:13:14.875: I/System.out(8696): Hello World!
12-20 17:13:14.875: E/AndroidRuntime(8696): FATAL EXCEPTION: JavaFX Application Thread
12-20 17:13:14.875: E/AndroidRuntime(8696): Process: com.javafx.samples, PID: 8696
12-20 17:13:14.875: E/AndroidRuntime(8696): java.lang.NoClassDefFoundError: javax.websocket.ContainerProvider
12-20 17:13:14.875: E/AndroidRuntime(8696): at samplethird.SampleThird.start(SampleThird.java:69)
12-20 17:13:14.875: E/AndroidRuntime(8696): at samplethird.SampleThird$1.handle(SampleThird.java:46)
12-20 17:13:14.875: E/AndroidRuntime(8696): at samplethird.SampleThird$1.handle(SampleThird.java:40)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
12-20 17:13:14.875: E/AndroidRuntime(8696): at javafx.event.Event.fireEvent(Event.java:204)
12-20 17:13:14.875: E/AndroidRuntime(8696): at javafx.scene.Node.fireEvent(Node.java:8175)
12-20 17:13:14.875: E/AndroidRuntime(8696): at javafx.scene.control.Button.fire(Button.java:185)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
12-20 17:13:14.875: E/AndroidRuntime(8696): at javafx.event.Event.fireEvent(Event.java:204)
12-20 17:13:14.875: E/AndroidRuntime(8696): at javafx.scene.Scene$MouseHandler.process(Scene.java:3684)
12-20 17:13:14.875: E/AndroidRuntime(8696): at javafx.scene.Scene$MouseHandler.access$1800(Scene.java:3409)
12-20 17:13:14.875: E/AndroidRuntime(8696): at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1671)
12-20 17:13:14.875: E/AndroidRuntime(8696): at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2462)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:314)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:243)
12-20 17:13:14.875: E/AndroidRuntime(8696): at java.security.AccessController.doPrivileged(AccessController.java:52)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:345)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.glass.ui.View.handleMouseEvent(View.java:526)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.glass.ui.View.notifyMouse(View.java:898)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.glass.ui.lens.LensView._notifyMouse(LensView.java:164)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.glass.ui.lens.LensApplication$LensMouseEvent.dispatch(LensApplication.java:391)
12-20 17:13:14.875: E/AndroidRuntime(8696): at com.sun.glass.ui.lens.LensApplication
12-20 17:13:14.885: W/ActivityManager(598):   Force finishing activity com.javafx.samples/javafxports.android.FXActivity
12-20 17:13:15.025: V/GLASS(8696): Notify JFX that surface has changed. Not yet implemented!
12-20 17:13:15.416: I/Process(8696): Sending signal. PID: 8696 SIG: 9
12-20 17:13:15.436: I/ActivityManager(598): Process com.javafx.samples (pid 8696) has died.
12-20 17:13:15.436: I/WindowState(598): WIN DEATH: Window{4249a0b0 u0 com.javafx.samples/javafxports.android.FXActivity}
12-20 17:13:15.436: W/WindowManager(598): Force-removing child win Window{4249a2d0 u0 SurfaceView} from container Window{4249a0b0 u0 com.javafx.samples/javafxports.android.FXActivity}
12-20 17:13:15.446: W/WindowManager(598): Failed looking up window
12-20 17:13:15.446: W/WindowManager(598): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@425be598 does not exist
12-20 17:13:15.446: W/WindowManager(598): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7897)
12-20 17:13:15.446: W/WindowManager(598): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7888)
12-20 17:13:15.446: W/WindowManager(598): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1040)
12-20 17:13:15.446: W/WindowManager(598): at android.os.BinderProxy.sendDeathNotice(Binder.java:493)
12-20 17:13:15.446: W/WindowManager(598): at dalvik.system.NativeStart.run(Native Method)
12-20 17:13:15.446: I/WindowState(598): WIN DEATH: null
12-20 17:13:15.456: W/InputMethodManagerService(598): Got RemoteException sending setActive(false) notification to pid 8696 uid 10150
12-20 17:13:15.466: I/dalvikvm(808): Jit: resizing JitTable from 4096 to 8192
12-20 17:13:15.466: W/Binder(808): Caught a RuntimeException from the binder stub implementation.
12-20 17:13:15.466: W/Binder(808): java.lang.NullPointerException
12-20 17:13:15.466: W/Binder(808): at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280)
12-20 17:13:15.466: W/Binder(808): at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129)
12-20 17:13:15.466: W/Binder(808): at android.os.Binder.execTransact(Binder.java:404)
12-20 17:13:15.466: W/Binder(808): at dalvik.system.NativeStart.run(Native Method)
12-20 17:13:17.458: D/dalvikvm(31998): GC_CONCURRENT freed 244K, 10% free 9784K/10800K, paused 2ms+3ms, total 28ms
12-20 17:13:17.548: D/Finsky(31998): [1] 5.onFinished: Installation state replication succeeded.
12-20 17:13:33.895: D/ConnectivityService(598): Sampling interval elapsed, updating statistics ..
12-20 17:13:33.946: D/ConnectivityService(598): Done.
12-20 17:13:33.946: D/ConnectivityService(598): Setting timer for 720seconds

Tomas Brandalik

unread,
Dec 20, 2013, 7:57:22 AM12/20/13
to javafx...@googlegroups.com
Obviously javax.websocket.ContainerProvider is not in the apk. Check all jars in android project if there's javax.websocket.ContainerProvider
-Tomas

Dne pátek, 20. prosince 2013 12:57:03 UTC+1 Ashish Agre napsal(a):

snf...@gmx.de

unread,
Dec 20, 2013, 6:37:01 PM12/20/13
to javafx...@googlegroups.com

> Quickly tried fxml this was log
...

> 12-17 16:25:00.469: W/System.err(17291): Caused by: java.lang.NoClassDefFoundError: javafx.fxml.FXMLLoader
...
fxml does not currently work, because the required javax.xml.* classes are not available on android. The fxml module is excluded from the sdk build and therefore javafx.fxml.FXMLLoader is not there.

Ashish Agre

unread,
Dec 21, 2013, 12:47:43 PM12/21/13
to snf...@gmx.de, Tomas Brandalik, Johan Vos, javafx...@googlegroups.com
Sorry for the trouble again!!
I have changed the line number 38 in build-extras.xml to this
<target name="--multi-dex" depends="-compile, -post-compile, -obfuscate"> 
because of this:
[exec] (com.javafx.main.Main$2) that doesn't come with an
     [exec] associated EnclosingMethod attribute. This class was probably produc
ed by a
     [exec] compiler that did not target the modern .class file format. The reco
mmended
     [exec] solution is to recompile the class from source, using an up-to-date
compiler
     [exec] and without specifying any "-target" type options. The consequence o
f ignoring
     [exec] this warning is that reflective operations on this class will incorr
ectly
     [exec] indicate that it is *not* an inner class.
     [exec]
     [exec] trouble writing output: Too many method references: 69528; max is 65
536.
     [exec] You may try using --multi-dex option.
     [exec] References by package:
     [exec]     41 com.javafx.main
     [exec]     14 com.sun.glass.events
     [exec]    685 com.sun.glass.ui
     [exec]     37 com.sun.glass.ui.accessible
     [exec]      8 com.sun.glass.ui.android
     [exec]     20 com.sun.glass.ui.delegate
     [exec]    424 com.sun.glass.ui.lens
     [exec]      9 com.sun.glass.utils
     [exec]    125 com.sun.javafx
     [exec]     41 com.sun.javafx.accessible
     [exec]     41 com.sun.javafx.accessible.providers
     [exec]     37 com.sun.javafx.accessible.utils
     [exec]     10 com.sun.javafx.animation
     [exec]    172 com.sun.javafx.application
     [exec]      1 com.sun.javafx.beans
     [exec]      2 com.sun.javafx.beans.event
     [exec]    572 com.sun.javafx.binding
     [exec]     63 com.sun.javafx.charts
     [exec]    770 com.sun.javafx.collections
     [exec]    567 com.sun.javafx.css
     [exec]    191 com.sun.javafx.css.converters
     [exec]    224 com.sun.javafx.css.parser
     [exec]     19 com.sun.javafx.cursor
     [exec]      8 com.sun.javafx.effect
     [exec]     40 com.sun.javafx.embed
     [exec]    133 com.sun.javafx.event
     [exec]    646 com.sun.javafx.font
     [exec]    115 com.sun.javafx.font.coretext
     [exec]    268 com.sun.javafx.font.directwrite
     [exec]    109 com.sun.javafx.font.freetype
     [exec]   1099 com.sun.javafx.geom
     [exec]    442 com.sun.javafx.geom.transform
     [exec]     52 com.sun.javafx.iio
     [exec]     20 com.sun.javafx.iio.bmp
     [exec]     35 com.sun.javafx.iio.common
     [exec]     40 com.sun.javafx.iio.gif
     [exec]     32 com.sun.javafx.iio.ios
     [exec]     29 com.sun.javafx.iio.jpeg
     [exec]     61 com.sun.javafx.iio.png
     [exec]     70 com.sun.javafx.image
     [exec]    343 com.sun.javafx.image.impl
     [exec]     14 com.sun.javafx.jmx
     [exec]     31 com.sun.javafx.logging
     [exec]     29 com.sun.javafx.media
     [exec]     55 com.sun.javafx.menu
     [exec]     33 com.sun.javafx.perf
     [exec]     55 com.sun.javafx.print
     [exec]     18 com.sun.javafx.property
     [exec]     46 com.sun.javafx.property.adapter
     [exec]     29 com.sun.javafx.robot
     [exec]     54 com.sun.javafx.robot.impl
     [exec]     26 com.sun.javafx.runtime
     [exec]     49 com.sun.javafx.runtime.async
     [exec]      2 com.sun.javafx.runtime.eula
     [exec]    180 com.sun.javafx.scene
     [exec]    149 com.sun.javafx.scene.control
     [exec]     77 com.sun.javafx.scene.control.accessible
     [exec]    916 com.sun.javafx.scene.control.behavior
     [exec]   4691 com.sun.javafx.scene.control.skin
     [exec]      3 com.sun.javafx.scene.control.skin.resources
     [exec]     25 com.sun.javafx.scene.input
     [exec]    107 com.sun.javafx.scene.layout.region
     [exec]     22 com.sun.javafx.scene.paint
     [exec]      5 com.sun.javafx.scene.shape
     [exec]     44 com.sun.javafx.scene.text
     [exec]     48 com.sun.javafx.scene.transform
     [exec]     79 com.sun.javafx.scene.traversal
     [exec]      5 com.sun.javafx.scene.web
     [exec]      4 com.sun.javafx.scene.web.behavior
     [exec]    169 com.sun.javafx.scene.web.skin
     [exec]    742 com.sun.javafx.sg.prism
     [exec]     66 com.sun.javafx.stage
     [exec]    148 com.sun.javafx.text
     [exec]    394 com.sun.javafx.tk
     [exec]   1080 com.sun.javafx.tk.quantum
     [exec]    110 com.sun.javafx.webkit
     [exec]    118 com.sun.javafx.webkit.drt
     [exec]    553 com.sun.javafx.webkit.prism
     [exec]      2 com.sun.javafx.webkit.prism.theme
     [exec]    223 com.sun.javafx.webkit.theme
     [exec]    103 com.sun.media.jfxmedia
     [exec]     35 com.sun.media.jfxmedia.control
     [exec]     20 com.sun.media.jfxmedia.effects
     [exec]     43 com.sun.media.jfxmedia.events
     [exec]    196 com.sun.media.jfxmedia.locator
     [exec]     11 com.sun.media.jfxmedia.logging
     [exec]     34 com.sun.media.jfxmedia.track
     [exec]    416 com.sun.media.jfxmediaimpl
     [exec]     28 com.sun.media.jfxmediaimpl.platform
     [exec]    107 com.sun.media.jfxmediaimpl.platform.gstreamer
     [exec]    106 com.sun.media.jfxmediaimpl.platform.ios
     [exec]     59 com.sun.media.jfxmediaimpl.platform.java
     [exec]     86 com.sun.media.jfxmediaimpl.platform.osx
     [exec]    208 com.sun.openpisces
     [exec]     73 com.sun.pisces
     [exec]    553 com.sun.prism
     [exec]    799 com.sun.prism.es2
     [exec]     30 com.sun.prism.image
     [exec]    373 com.sun.prism.impl
     [exec]      9 com.sun.prism.impl.packrect
     [exec]     19 com.sun.prism.impl.paint
     [exec]    255 com.sun.prism.impl.ps
     [exec]     62 com.sun.prism.impl.shape
     [exec]    326 com.sun.prism.j2d
     [exec]     52 com.sun.prism.j2d.paint
     [exec]    137 com.sun.prism.j2d.print
     [exec]     70 com.sun.prism.paint
     [exec]     30 com.sun.prism.ps
     [exec]    228 com.sun.prism.shader
     [exec]     10 com.sun.prism.shape
     [exec]    315 com.sun.prism.sw
     [exec]     20 com.sun.scenario
     [exec]    159 com.sun.scenario.animation
     [exec]    185 com.sun.scenario.animation.shared
     [exec]    723 com.sun.scenario.effect
     [exec]    113 com.sun.scenario.effect.impl
     [exec]      3 com.sun.scenario.effect.impl.es2
     [exec]      2 com.sun.scenario.effect.impl.hw
     [exec]     75 com.sun.scenario.effect.impl.prism
     [exec]     49 com.sun.scenario.effect.impl.prism.sw
     [exec]    157 com.sun.scenario.effect.impl.state
     [exec]      2 com.sun.scenario.effect.impl.sw
     [exec]    507 com.sun.scenario.effect.impl.sw.java
     [exec]    530 com.sun.scenario.effect.impl.sw.sse
     [exec]     44 com.sun.scenario.effect.light
     [exec]    616 com.sun.webkit
     [exec]   4071 com.sun.webkit.dom
     [exec]     51 com.sun.webkit.event
     [exec]    395 com.sun.webkit.graphics
     [exec]    285 com.sun.webkit.network
     [exec]     14 com.sun.webkit.network.about
     [exec]     11 com.sun.webkit.network.data
     [exec]    122 com.sun.webkit.perf
     [exec]     44 com.sun.webkit.plugin
     [exec]     19 com.sun.webkit.text
     [exec]      5 default
     [exec]     14 hellojavafx
     [exec]      5 in.ashish29agre.jfx
     [exec]      1 java.applet
     [exec]     58 java.awt
     [exec]      1 java.awt.font
     [exec]     58 java.awt.geom
     [exec]     24 java.awt.image
     [exec]     23 java.awt.print
     [exec]      3 java.beans
     [exec]    180 java.io
     [exec]    455 java.lang
     [exec]     14 java.lang.ref
     [exec]     32 java.lang.reflect
     [exec]      4 java.math
     [exec]    131 java.net
     [exec]    157 java.nio
     [exec]     59 java.nio.channels
     [exec]      5 java.nio.channels.spi
     [exec]     41 java.nio.charset
     [exec]      4 java.nio.file
     [exec]      2 java.nio.file.attribute
     [exec]     26 java.security
     [exec]      4 java.security.cert
     [exec]     67 java.text
     [exec]    399 java.util
     [exec]    107 java.util.concurrent
     [exec]     30 java.util.concurrent.atomic
     [exec]     20 java.util.concurrent.locks
     [exec]     12 java.util.jar
     [exec]     27 java.util.logging
     [exec]     18 java.util.regex
     [exec]     28 java.util.zip
     [exec]    780 javafx.animation
     [exec]     65 javafx.application
     [exec]     10 javafx.beans
     [exec]   1707 javafx.beans.binding
     [exec]   1196 javafx.beans.property
     [exec]    401 javafx.beans.property.adapter
     [exec]     68 javafx.beans.value
     [exec]    695 javafx.collections
     [exec]     99 javafx.collections.transformation
     [exec]    328 javafx.concurrent
     [exec]    180 javafx.css
     [exec]     51 javafx.event
     [exec]    229 javafx.geometry
     [exec]    259 javafx.print
     [exec]   2383 javafx.scene
     [exec]    162 javafx.scene.canvas
     [exec]   1655 javafx.scene.chart
     [exec]   5980 javafx.scene.control
     [exec]    613 javafx.scene.control.cell
     [exec]   1168 javafx.scene.effect
     [exec]    364 javafx.scene.image
     [exec]    600 javafx.scene.input
     [exec]   1934 javafx.scene.layout
     [exec]    766 javafx.scene.media
     [exec]    247 javafx.scene.paint
     [exec]   1529 javafx.scene.shape
     [exec]    510 javafx.scene.text
     [exec]    712 javafx.scene.transform
     [exec]    525 javafx.scene.web
     [exec]    538 javafx.stage
     [exec]     41 javafx.util
     [exec]    105 javafx.util.converter
     [exec]      6 javax.imageio
     [exec]     50 javax.net.ssl
     [exec]      8 javax.print
     [exec]      4 javax.print.attribute
     [exec]     19 javax.print.attribute.standard
     [exec]      1 javax.security.cert
     [exec]     14 javax.swing
     [exec]    154 javax.websocket
     [exec]     49 javax.websocket.server
     [exec]      3 javax.xml.parsers
     [exec]     82 maskedclasses
     [exec]     15 netscape.javascript
     [exec]    770 org.glassfish.grizzly
     [exec]    127 org.glassfish.grizzly.asyncqueue
     [exec]     79 org.glassfish.grizzly.attributes
     [exec]     82 org.glassfish.grizzly.compression.lzma
     [exec]    104 org.glassfish.grizzly.compression.lzma.impl
     [exec]     39 org.glassfish.grizzly.compression.lzma.impl.lz
     [exec]     35 org.glassfish.grizzly.compression.lzma.impl.rangecoder
     [exec]     74 org.glassfish.grizzly.compression.zip
     [exec]    400 org.glassfish.grizzly.filterchain
     [exec]    827 org.glassfish.grizzly.http
     [exec]    146 org.glassfish.grizzly.http.io
     [exec]    705 org.glassfish.grizzly.http.server
     [exec]    102 org.glassfish.grizzly.http.server.filecache
     [exec]     32 org.glassfish.grizzly.http.server.io
     [exec]      3 org.glassfish.grizzly.http.server.jmxbase
     [exec]      5 org.glassfish.grizzly.http.server.naming
     [exec]    172 org.glassfish.grizzly.http.server.util
     [exec]    853 org.glassfish.grizzly.http.util
     [exec]     61 org.glassfish.grizzly.impl
     [exec]     16 org.glassfish.grizzly.jmxbase
     [exec]    246 org.glassfish.grizzly.localization
     [exec]    882 org.glassfish.grizzly.memory
     [exec]     20 org.glassfish.grizzly.monitoring
     [exec]    362 org.glassfish.grizzly.nio
     [exec]     42 org.glassfish.grizzly.nio.tmpselectors
     [exec]    623 org.glassfish.grizzly.nio.transport
     [exec]     13 org.glassfish.grizzly.rcm
     [exec]    257 org.glassfish.grizzly.ssl
     [exec]     60 org.glassfish.grizzly.strategies
     [exec]    233 org.glassfish.grizzly.streams
     [exec]    181 org.glassfish.grizzly.threadpool
     [exec]    483 org.glassfish.grizzly.utils
     [exec]      1 org.glassfish.grizzly.utils.conditions
     [exec]     31 org.glassfish.tyrus.client
     [exec]     93 org.glassfish.tyrus.container.grizzly
     [exec]    594 org.glassfish.tyrus.core
     [exec]      4 org.glassfish.tyrus.core.websocket
     [exec]     81 org.glassfish.tyrus.server
     [exec]     48 org.glassfish.tyrus.spi
     [exec]    406 org.glassfish.tyrus.websockets
     [exec]     49 org.glassfish.tyrus.websockets.draft06
     [exec]     23 org.glassfish.tyrus.websockets.draft07
     [exec]      7 org.glassfish.tyrus.websockets.draft08
     [exec]      7 org.glassfish.tyrus.websockets.draft17
     [exec]     17 org.glassfish.tyrus.websockets.frametypes
     [exec]     25 org.glassfish.tyrus.websockets.uri
     [exec]    270 org.glassfish.tyrus.websockets.uri.internal
     [exec]     14 org.glassfish.tyrus.websockets.uri.internal.l10n
     [exec]     13 org.osgi.framework
     [exec]      1 org.w3c.dom
     [exec]      1 org.w3c.dom.events
     [exec]      4 org.w3c.dom.html
     [exec]      1 org.xml.sax.helpers
     [exec]     13 sun.misc
     [exec]      1 sun.net.www
     [exec]      2 sun.reflect.misc
     [exec]     20 sun.util.logging

BUILD FAILED
E:\workspaces\HelloJavaFX\build-extras.xml:39: The following error occurred whil
e executing this line:
E:\workspaces\HelloJavaFX\build-extras.xml:40: The following error occurred whil
e executing this line:
E:\workspaces\HelloJavaFX\build-extras.xml:50: The following error occurred whil
e executing this line:
E:\workspaces\HelloJavaFX\build-extras.xml:26: exec returned: 2

Total time: 4 minutes 55 seconds

E:\workspaces\HelloJavaFX>

But now getting this error Dex merge : 
E:\workspaces\HelloJavaFX>c:\ant\bin\ant debug
Buildfile: E:\workspaces\HelloJavaFX\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 22.3.0
 [checkenv] Installed at C:\Program Files (x86)\Android\android-studio\sdk

-setup:
     [echo] Project Name: HelloJavaFX
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-init-env:

-check-uptodate:

-install-jfxrt:

-install-application:
     [copy] Copying 12 files to E:\workspaces\HelloJavaFX\libs

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.1
     [echo] Resolving Build Target for HelloJavaFX...
[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: E:\workspaces\HelloJavaFX\bin\res
    [mkdir] Created dir: E:\workspaces\HelloJavaFX\bin\rsObj
    [mkdir] Created dir: E:\workspaces\HelloJavaFX\bin\rsLibs
    [mkdir] Created dir: E:\workspaces\HelloJavaFX\bin\classes
    [mkdir] Created dir: E:\workspaces\HelloJavaFX\bin\dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for HelloJavaFX...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Found Deleted Target File
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 2 source files to E:\workspaces\HelloJavaFX\bin\classes

-post-compile:

-obfuscate:

-dex:
      [dex] input: E:\workspaces\HelloJavaFX\bin\classes
      [dex] input: E:\workspaces\HelloJavaFX\libs\tyrus-websocket-core-1.0-rc3.j
ar
      [dex] input: E:\workspaces\HelloJavaFX\libs\tyrus-container-grizzly-1.0-rc
3.jar
      [dex] input: E:\workspaces\HelloJavaFX\libs\tyrus-server-1.0-rc3.jar
      [dex] input: E:\workspaces\HelloJavaFX\libs\tyrus-spi-1.0-rc3.jar
      [dex] input: E:\workspaces\HelloJavaFX\libs\grizzly-framework-2.3.3.jar
      [dex] input: E:\workspaces\HelloJavaFX\libs\grizzly-http-2.3.3.jar
      [dex] input: E:\workspaces\HelloJavaFX\libs\HelloJavaFX.jar
      [dex] input: E:\workspaces\HelloJavaFX\libs\grizzly-rcm-2.3.3.jar
      [dex] input: E:\workspaces\HelloJavaFX\libs\jfxrt.jar
      [dex] input: E:\workspaces\HelloJavaFX\libs\tyrus-client-1.0-rc3.jar
      [dex] input: E:\workspaces\HelloJavaFX\libs\grizzly-http-server-2.3.3.jar
      [dex] input: E:\workspaces\HelloJavaFX\libs\tyrus-core-1.0-rc3.jar
      [dex] input: E:\workspaces\HelloJavaFX\libs\javax.websocket-api-1.0-rc5.ja
r
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\tyrus-websocket-core-1.0-r
c3.jar -> tyrus-websocket-core-1.0-rc3-d9f6c42aa53d8b68a48db7d2b8c0a552.jar
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\tyrus-container-grizzly-1.
0-rc3.jar -> tyrus-container-grizzly-1.0-rc3-0037827eccb2057cf593b405a0f8f58a.ja
r
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\tyrus-server-1.0-rc3.jar -
> tyrus-server-1.0-rc3-30b65b34d9f93f48e2ee3d6d1a1679be.jar
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\tyrus-spi-1.0-rc3.jar -> t
yrus-spi-1.0-rc3-4686b7e99cc67e3499962c10843ebfa8.jar
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\grizzly-framework-2.3.3.ja
r -> grizzly-framework-2.3.3-48fb3f7fdfc93256e7e22d63132b3daf.jar
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\grizzly-http-2.3.3.jar ->
grizzly-http-2.3.3-6a1186f62b8410e36eacc09891a1f5ac.jar
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\HelloJavaFX.jar -> HelloJa
vaFX-b163596e05a6b4de2f8a54d6d713ee23.jar
       [dx] warning: Ignoring InnerClasses attribute for an anonymous inner clas
s
       [dx] (com.javafx.main.Main$1) that doesn't come with an
       [dx] associated EnclosingMethod attribute. This class was probably produc
ed by a
       [dx] compiler that did not target the modern .class file format. The reco
mmended
       [dx] solution is to recompile the class from source, using an up-to-date
compiler
       [dx] and without specifying any "-target" type options. The consequence o
f ignoring
       [dx] this warning is that reflective operations on this class will incorr
ectly
       [dx] indicate that it is *not* an inner class.
       [dx] warning: Ignoring InnerClasses attribute for an anonymous inner clas
s
       [dx] (com.javafx.main.Main$2) that doesn't come with an
       [dx] associated EnclosingMethod attribute. This class was probably produc
ed by a
       [dx] compiler that did not target the modern .class file format. The reco
mmended
       [dx] solution is to recompile the class from source, using an up-to-date
compiler
       [dx] and without specifying any "-target" type options. The consequence o
f ignoring
       [dx] this warning is that reflective operations on this class will incorr
ectly
       [dx] indicate that it is *not* an inner class.
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\grizzly-rcm-2.3.3.jar -> g
rizzly-rcm-2.3.3-8a5a46830def0103a265d1af7df9256c.jar
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\jfxrt.jar -> jfxrt-196efc5
90a47a0c813d2bc3a46760655.jar
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\tyrus-client-1.0-rc3.jar -
> tyrus-client-1.0-rc3-b55a58874b8f0085fda562b9749b9ca5.jar
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\grizzly-http-server-2.3.3.
jar -> grizzly-http-server-2.3.3-7f630e30a583da12a3f8f7475a5f508c.jar
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\tyrus-core-1.0-rc3.jar ->
tyrus-core-1.0-rc3-edcec4fbb572f5727088ab88605e8352.jar
      [dex] Pre-Dexing E:\workspaces\HelloJavaFX\libs\javax.websocket-api-1.0-rc
5.jar -> javax.websocket-api-1.0-rc5-d1eb28e88424f9e12d86abd0b23a8a88.jar
      [dex] Converting compiled files and external libraries into E:\workspaces\
HelloJavaFX\bin\classes.dex...
       [dx] Merged dex A (5 defs/1.4KiB) with dex B (101 defs/138.0KiB). Result
is 106 defs/173.2KiB. Took 0.3s
       [dx] Merged dex A (106 defs/173.2KiB) with dex B (12 defs/28.6KiB). Resul
t is 118 defs/261.6KiB. Took 0.2s
       [dx] Merged dex A (118 defs/261.6KiB) with dex B (9 defs/25.2KiB). Result
 is 127 defs/391.9KiB. Took 0.1s
       [dx] Merged dex A (127 defs/391.9KiB) with dex B (9 defs/5.0KiB). Result
is 136 defs/590.4KiB. Took 0.1s
       [dx] Merged dex A (136 defs/590.4KiB) with dex B (544 defs/672.6KiB). Res
ult is 680 defs/1792.6KiB. Took 0.4s
       [dx] Result compacted from 3150.0KiB to 1121.0KiB to save 2029.1KiB
       [dx] Merged dex A (680 defs/1792.6KiB) with dex B (147 defs/307.1KiB). Re
sult is 827 defs/1121.0KiB. Took 0.8s
       [dx] Merged dex A (827 defs/1121.0KiB) with dex B (7 defs/29.8KiB). Resul
t is 834 defs/1446.7KiB. Took 0.1s
       [dx] Merged dex A (834 defs/1446.7KiB) with dex B (1 defs/7.2KiB). Result
 is 835 defs/1945.3KiB. Took 0.3s
       [dx]
       [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
       [dx] java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65
536
       [dx]     at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:5
01)
       [dx]     at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger
.java:276)
       [dx]     at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:
490)
       [dx]     at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:167)

       [dx]     at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
       [dx]     at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main
.java:439)
       [dx]     at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
       [dx]     at com.android.dx.command.dexer.Main.run(Main.java:230)
       [dx]     at com.android.dx.command.dexer.Main.main(Main.java:199)
       [dx]     at com.android.dx.command.Main.main(Main.java:103)

BUILD FAILED
C:\Program Files (x86)\Android\android-studio\sdk\tools\ant\build.xml:892: The f
ollowing error occurred while executing this line:
C:\Program Files (x86)\Android\android-studio\sdk\tools\ant\build.xml:894: The f
ollowing error occurred while executing this line:
C:\Program Files (x86)\Android\android-studio\sdk\tools\ant\build.xml:906: The f
ollowing error occurred while executing this line:
C:\Program Files (x86)\Android\android-studio\sdk\tools\ant\build.xml:284: null
returned: 2

Total time: 2 minutes 3 seconds

E:\workspaces\HelloJavaFX>

Johan Vos

unread,
Dec 21, 2013, 12:50:53 PM12/21/13
to Ashish Agre, Stefan Fuchs, Tomas Brandalik, javafx...@googlegroups.com
You are probably working with the runtime build 2?
If you download build 3 from https://bitbucket.org/javafxports/android/downloads (dalvik-sdk-b3.zip) the multi-dex issue is fixed.
Not sure you won't have any more problems, but at least this one should be fixed :)

- Johan


2013/12/21 Ashish Agre <ashish...@gmail.com>

Ashish Agre

unread,
Dec 21, 2013, 12:53:32 PM12/21/13
to Johan Vos, Stefan Fuchs, Tomas Brandalik, javafx...@googlegroups.com
Wait... i'll download now and try.
And let you know.

Ashish Agre

unread,
Dec 21, 2013, 1:07:25 PM12/21/13
to javafx...@googlegroups.com, Johan Vos, Stefan Fuchs, Tomas Brandalik
Build Success!

Ashish Agre

unread,
Dec 21, 2013, 1:29:45 PM12/21/13
to javafx...@googlegroups.com, Johan Vos, Stefan Fuchs, Tomas Brandalik
The Application_resources.jar is just empty none of my 3rd party classes are there only directory structure is there.
This is new error log :'( new problem
12-21 23:53:41.244: E/AndroidRuntime(23203): FATAL EXCEPTION: JavaFX Application Thread
12-21 23:53:41.244: E/AndroidRuntime(23203): java.lang.RuntimeException: Could not find an implementation class.
12-21 23:53:41.244: E/AndroidRuntime(23203): at javax.websocket.ContainerProvider.getWebSocketContainer(ContainerProvider.java:73)
12-21 23:53:41.244: E/AndroidRuntime(23203): at hellojavafx.HelloJavaFX.start(HelloJavaFX.java:77)
12-21 23:53:41.244: E/AndroidRuntime(23203): at hellojavafx.HelloJavaFX$1.handle(HelloJavaFX.java:46)
12-21 23:53:41.244: E/AndroidRuntime(23203): at hellojavafx.HelloJavaFX$1.handle(HelloJavaFX.java:40)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
12-21 23:53:41.244: E/AndroidRuntime(23203): at javafx.event.Event.fireEvent(Event.java:204)
12-21 23:53:41.244: E/AndroidRuntime(23203): at javafx.scene.Node.fireEvent(Node.java:8175)
12-21 23:53:41.244: E/AndroidRuntime(23203): at javafx.scene.control.Button.fire(Button.java:185)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
12-21 23:53:41.244: E/AndroidRuntime(23203): at javafx.event.Event.fireEvent(Event.java:204)
12-21 23:53:41.244: E/AndroidRuntime(23203): at javafx.scene.Scene$MouseHandler.process(Scene.java:3689)
12-21 23:53:41.244: E/AndroidRuntime(23203): at javafx.scene.Scene$MouseHandler.access$1800(Scene.java:3414)
12-21 23:53:41.244: E/AndroidRuntime(23203): at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1676)
12-21 23:53:41.244: E/AndroidRuntime(23203): at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2467)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:314)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:243)
12-21 23:53:41.244: E/AndroidRuntime(23203): at java.security.AccessController.doPrivileged(AccessController.java:52)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:345)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.glass.ui.View.handleMouseEvent(View.java:526)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.glass.ui.View.notifyMouse(View.java:898)
12-21 23:53:41.244: E/AndroidRuntime(23203): at com.sun.glass.ui.lens.LensView._notifyMouse(LensView.java:164)

In desktop this was fixed after getting tyrus library in the class path. So wat happened now. All the files are present in the Application.jar I checked their version using javap -v Selector major is 50(JDK6)



On Sat, Dec 21, 2013 at 10:07 AM, Ashish Agre <ashish...@gmail.com> wrote:
Build Success!

--
You received this message because you are subscribed to a topic in the Google Groups "JavaFXAndroid" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/javafxandroid/Qr7iSFCZEeg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to javafxandroi...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Johan Vos

unread,
Dec 21, 2013, 1:49:45 PM12/21/13
to Ashish Agre, javafx...@googlegroups.com, Stefan Fuchs, Tomas Brandalik
That seems like a websocket-issue: you need to specify the name of your implementation-class to the javax.websocket.ContainerProvider. Tyrus is the reference implementation, but there will be other implementations. IIRC, implementations should specify their availability via services in their jar. Did you include the tyrus client jar as a jar, or did you unpack the classes?

- Johan



2013/12/21 Ashish Agre <ashish...@gmail.com>
The Application_resources.jar is just empty none of my 3rd party classes are there only directory structure is there.
You received this message because you are subscribed to the Google Groups "JavaFXAndroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javafxandroi...@googlegroups.com.

Ashish Agre

unread,
Dec 21, 2013, 2:01:26 PM12/21/13
to Johan Vos, javafx...@googlegroups.com, Stefan Fuchs, Tomas Brandalik
Yep i included the jar.
jfx_tyrus_.png

Ashish Agre

unread,
Dec 24, 2013, 1:41:44 PM12/24/13
to javafx...@googlegroups.com
Any thing else am i missing here :(
Reply all
Reply to author
Forward
0 new messages