Hi Matthew,

we could successfully build a Java extension-enabled app using Crosswalk 5 on 
ARM, with the Crosswalk app template version you are using, by following the 
instructions on the wiki.

>From the error message, based on the information provided it would seem that 
>the class file for your extension is not in the jar file (even though the jar 
>file is there).

If you have any more details you can share to help reproduce the issue that 
would be great.

Kind regards,

Francesco


From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of 
Matthew Sun
Sent: Sunday, February 02, 2014 5:44 PM
To: [email protected]
Subject: [Crosswalk-help] Extensions

Hi

I have been developing using crosswalk-5.32.81.0-arm and find it quite good. 
Except now I need to write some extensions, so I followed the instructions here 
https://crosswalk-project.org/#wiki/Writing-a-Crosswalk-Java-Extension-on-Android

I followed them exactly, and built my apk with the additional 
--extensions="/path/to/myextension/".

There was no build errors, and the xwalk-extensions folder even showed up in 
the created folder, along with the appropriate jar file inside.  Problem is, 
once running the app on a device the following error is generated by 
XWalkExtensionManager and the extension never fires "Error in calling methods 
of external extensions. java.lang.ClassNotFoundException: Didn't find class 
"com.example.extension.MyExtension" on path: DexPathList[[zip file 
"/data/app/sunnyappz.coolmathsalgebragame-1.apk"],nativeLibraryDirectories=[/data/app-lib/sunnyappz.coolmathsalgebragame-1,
 /vendor/lib, /system/lib]]"

Any guidance would be much appreciated. Does anyone else have extensions 
working using the instructions given? Is there something I need to watch out 
for.

Regards

Matthew
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to