1
Ask a Question / Android Stencyl 3.0 Trying to import library .jar Native Extension Class Not Fou
« on: March 08, 2014, 01:15:01 pm »
Hi all,
I have this library api that I want to import and I can get the library in many different formats [If someone thinks I should do this differently than how I do it below] for air2, as2, as3, java (source and .jar), etc.. Currently I have it working in flash where I made an extension, got the library in .swc form, and enabled the extension and wrote a behavior that used classes (via import com....ClassA; [and the behavior uses ClassA]) and it compiles and works perfectly.
Then I wanted to try it on Android (FYI Android was working beforehand, before the new behavior), just tried to Test without a native extension and got:
So I made a copy of the test-native folder to make a new native extension, edited the "include.nmnl" like so:
Hoping that'd just work for importing all classes in that .jar, disabled the extension, restarted game, enabled, restarted game, and tried again and get the same error. Any Suggestions please??
I have this library api that I want to import and I can get the library in many different formats [If someone thinks I should do this differently than how I do it below] for air2, as2, as3, java (source and .jar), etc.. Currently I have it working in flash where I made an extension, got the library in .swc form, and enabled the extension and wrote a behavior that used classes (via import com....ClassA; [and the behavior uses ClassA]) and it compiles and works perfectly.
Then I wanted to try it on Android (FYI Android was working beforehand, before the new behavior), just tried to Test without a native extension and got:
Code: [Select]
SceneServerConnect (60) - Class not found
So I made a copy of the test-native folder to make a new native extension, edited the "include.nmnl" like so:
Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<project>
<classpath name="" />
<ndll name="nativetest" if="ios"/>
<java path="project/android" />
<template path="template/android/libs/Blah-5-Java-Client.jar" rename="template/android/libs/Blah-5-Java-Client.jar" if="android"/>
</project>
And also put the Blah-5-Java-Client.jar there.. I saw in the native extension tutorial how to access specific functions, but I have many different Classes and functions being executed so I'd like the whole .jar available.Hoping that'd just work for importing all classes in that .jar, disabled the extension, restarted game, enabled, restarted game, and tried again and get the same error. Any Suggestions please??