Package Java ANE file for desktop

Hi!
I'm trying to package an ANE file for desktop and am almost bald now :/.
I just made an HelloWorld extension with a simple "sayHello" method that simply returns the string "Hello World".
I made a JAR file of it, created the extension's XML definition as follow :
<extension xmlns="http://ns.adobe.com/air/extension/3.1">
          <id>com.nurun.helloworld</id>
          <versionNumber>1.0.0</versionNumber>
          <platforms>
                    <platform name="Windows-x86">
                              <applicationDeployment>
                                        <nativeLibrary>HelloWorld.jar</nativeLibrary>
                                        <initializer>com.nurun.ane.hw.HelloWorldExtension</initializer>
                                        <finalizer>com.nurun.ane.hw.HelloWorldExtension</finalizer>
                              </applicationDeployment>
                    </platform>
          </platforms>
</extension>
I compiled my SWC, extracted the library.swf file out of it (is it still necessary or ADT finally does it itself.?) and use the

Damn CTRL+S.. someday i'll stop doing this on my browser. Weird that it submits the post anyway :/..
So, i use this batch file to package the ANE :
set sdk_directory=D:\Softwares\flex_sdk_4.6.0.23201B
set air_directory=%sdk_directory%\bin
set root_directory=D:\NativeExtensions\HelloWorld\
set library_directory=%root_directory%\flash\assets
set signing_options=-storetype pkcs12 -keystore "D:\NativeExtensions\HelloWorld\flash\assets\certificate.p12" -storepass XXXX
set dest_ANE=%library_directory%\HelloWorld.ane
set extension_XML=%library_directory%\HelloWorldANE.xml
set library_SWC=%library_directory%\HelloWorld.swc
set library_SWF=%library_directory%\library.swf
"%air_directory%"\adt -package %signing_options% -tsa none -target ane "%dest_ANE%" "%extension_XML%" -swc "%library_SWC%" -platform Windows-x86 "%library_SWF%" -C %library_directory%
And all i get is the following error :
Missing native library implementation "HelloWorld.jar" for platform Windows-x86
I put my HelloWorld.jar aside the batch file, tried to put it on a "Windows" folder and many other things... but can't get rid of this error.
I can't find nothing about this error anywhere (neither here http://help.adobe.com/en_US/air/build/WSBE9908A0-8E3A-4329-8ABD-12F2A19AB5E9.html) so i'm a bit stuck.
I'm certainly missing a point here but don't know what.
Any help would be much apreciated because i have no idea where the problem comes from :/
Thanks

Similar Messages

  • Packaging a .bar file for the BlackBerry Tablet (Playbook) Simulator Using Command Line.

    Hi there, I've been trying to deploy one of my AIR apps on the BlackBerry Tablet (PlayBook) Simulator and and have run into a problem packaging the .bar file using the command line.  I started this off by reading the article at:
    http://www.adobe.com/devnet/devices/articles/blackberry_playbook_battery.html
    I followed some of the steps there, but found this article on how to package my files using a command line more helpful (the Adobe article doesn't even explain how to package the .bar file using the command line):
    http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Compile-and-Debug-witho ut-Flash-Builder-Using-a-Command-Line/ta-p/628675
    Everything was going great until I went to compile my application and received the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/qnx/bbt/airpackag
    er/BarAirPackager
    Caused by: java.lang.ClassNotFoundException: com.qnx.bbt.airpackager.BarAirPacka
    ger
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: com.qnx.bbt.airpackager.BarAirPackager.  Program
    will exit.
    Has anyone run into this issue when trying to package a .bar file for the BlackBerry Tablet (Playbook) Simulator?  I've tried using a SWF published in CS5 and CS4.

    Just thought I'd reply to my own post, in case someone else runs into this problem.  Make sure you have the latest and greatest versions of the JDK and JRE installed on your system, in addition to the requirements listed in BlackBerry's list of installs:
    http://us.blackberry.com/developers/tablet/adobe.jsp

  • Descriptions of java dll files for windows

    I'm new to java programming and would greatly appreciate of someone could guide to documentation on java dll files for SDK windows..
    thanks

    If you are new, you don't want to know about the DLLs since there are not much you really need to know except you are writing JNI methods. Even you are writing JNI methods, you don't really need to care about the DLLs. Also I did not notice that there is any documentation about the DLLs/SOs. If you really want it, you may want to get this book: The JavaTM Native Interface by Sheng Liang
    If you want toe documentations about JDK:
    http://java.sun.com/j2se/1.3/docs/index.html
    or
    http://java.sun.com/j2se/1.4/docs/index.html

  • How to package a .war file for multiple locations...

    Sorry if this is in the wrong section, but I wasn't sure where to place it.
    We have a webapp (.war) that we would like to package to distribute to multiple remote locations. We have to assume that the people installing this webapp have no Java/J2EE experience and will not have the technical know-how to be able to handle packaging the .war file themselves.
    They do, however, need to be able to make configuration changes to the JDBC settings in the web.xml, the logging settings in log4j.xml, and configuration changes in the context.xml.
    Since these files reside inside the .war, what is the best way to package this application so they can make changes to those files and package it to deploy on their application servers?
    Thanks!

    Well, the best way is to move that configuration out of those XML files and manage them directly from you application.
    Then you can use the Java Preferences API to actually maintain the configuration data, and that data is stored outside of your application completely in some JRE dependent way (Registry on Windows, and the users home directory on Unix for Sun's JRE).
    You can also modify your webapp to manage the configuration directly and have it rewrite the XML files itself. The Java Preferences API is better just because the config changes will survive if you happen to update the WAR file with a new version. Of course, you can still leverage the Preference API, get your "defaults" from the supplied XML files in the WAR, and then if your application detects a version change (the one in the Preferences is different from the one in the WAR), the app can update the XML files, and pop up a page telling the user to restart the application to see the new changes.
    Finally, you can also write a Swing app that presents the few options that the user might need, and then it has the smarts to update the WAR file for them (it's simply a ZIP file and Java can read/write those). That way you have a simple wizard they can play with.
    Also, for things like log4j, you can bundle that seperate from the WAR, and let them place it either on the CLASSPATH of their container, or in one of their shared directories (like shared/classes on Tomcat for example).
    I'm fond of the Preferences technique with a Webapp configuration, as you can make your WAR almost plug and play. They plop in the war, app fires up, they hit the URL and there's a config page staring at them.
    But all of these options require work outside of your application.
    You can also perhaps get one of those Installer programs, and right an installer for them. You can explode the WAR in to any directory, and then have the container deploy it from there.

  • How to convert a .jsp to a .java/.class file for use in peoplesoft

    Hi java/jsp experts,
    I want to convert a .jsp to a .java/.class file. is there a tool available, please let me know if you have any pointers....
    or can i do it manually:
    these are a few lines that the .jsp contains, and i would like to translate this to be in .java/.class format:
    <%@ page import="sun.misc.BASE64Encoder, javax.crypto., javax.crypto.spec."%>
    <%@ page import="java.util.StringTokenizer" %>
    <%@ page import="java.util.Map" %>
    <%!
    sb.append("<input type=\"hidden\" name=\"orderPage_serialNumber\" value=\"");
    sb.append(serialNumber);
    sb.append("\">\n");
    return sb.toString();
    %>
    how can i translate the above import statements and html elements from jsp to java, please let me know.
    Once i have the .java file created from the .jsp, I will compile .java to create the .class file and invoke the .class in peoplecode by using java apis available in peopletools.
    Thanks in advance.

    Is there a way convert a binary .exe file( compiled by
    another compiler) into Java .class/.jar file ? Anyone
    know of a free program that can do this?It's not possible. There are many decompilers and disassemblers for Java but nothing will take you from ANY binary to Java source. It would be the end of computing as we know it and the beginning of a new era -:)

  • Java or C++ for desktop applications

    Help needed!
    We are a team of 5 programmers in a state agency who deal with federal contracts. About 70% of the applications we build are desktop applications. One of the team members strongly believes that learning C++ instead of Java would strengthen our positions. He strongly believes that Java is not cut out for desktop applications and Java is ideal only for web applications. None of us are very familiar with C++ and so we are intending to take classes in C++. (We are all Visual Foxpro, VB group currently). I have one year of programming with Java (web applications) I still don't want to give up on Java that easily. Well my question is - Is that member in the team right in saying that Java is for web and not for desk top. Can any expert give me a good comparison and so we can move on the right track.
    Thanks for the help in advance!
    suman

    Java can work fine for a desktop application, don't listen to him. Here's what you've got to consider:
    1. Tool set: One strength of java is its strong set of standardized tools. You can probably find great sets of C++ tools too, though, but this is a major factor.
    2. Speed of development: This depends somewhat on the strength and maturity of the toolset you are using, but in general, I think that java is faster to develop for 3 reasons: (1) because it smoothes over some of the inconsistancies between systems - you don't have to get as involved in the gritty details. (2) Java can often tell you exactly what line number your program is bombing, and in every case, it will give you a specific message about what kind of error you had (nullpointer, array out of bounds, etc vs 'Syntax Error') (3) Garbage collection
    3. Familiarity with language: Obviously if you've got to learn something new, that takes time.
    4. App performance: Java is probably going to be bigger, in terms of what has to be installed on the machine in order to run your app, and marginally slower than C++. It will almost certainly require a lot more memory to run well. Before you freak out about it being slower than C++ though, you should consider what kind of performance your app needs. If it's doing 3D rendering, C++ is probably going to be better. If most of it is UI components, and the back end processing is not that intensive, Java could be what you want

  • Create single .folio file for desktop viewing

    Hi,
    I need a bit of help here please. We are currently on issue 2 of our iPad magazine: https://itunes.apple.com/gb/app/absolute-photo-magazine/id719597521?mt=8
    We are trying to create a version of our app that Advertisers can view on all platforms (iPad & Desktop). What we have done is created a delegate account and from the folio builder panel, we have shared the specific folio with that delegate and emailed the login credentials to certain advertisers. This allows them to view it using Content viewer on an iPad.
    I am also trying to export the .folio file in order to send this out to specific people to view using Content Viewer on desktop (PC & MAC). In the example here http://www.e3zine.com/desktopviewer.html there is a single .folio file but when I use the export function within the Publishing Suite it exports a zip file which contains all articles as individual .folio files. Is there any way of exporting this folio as one single .folio file?
    Thanks
    Dean

    Hi,
    Thanks for your response. I will try the solution for windows users. However, for Mac desktop users this is supported by DPS as shown in this example:
    http://www.e3zine.com/desktopviewer.html where I was able to download a .folio file and preview it in Content Viewer on my iMac. I have been able to export my published folio from the publishing suite into a zip folder on my desktop which contains a series of .folio files that are all viewable within content viewer for desktop. The question is how to create one single .folio file like in the example rather than a series of .folio files?
    Thanks
    Dean

  • Packaging InDesign CC file for CS5 user

    We just upgraded to InDesign CC (9.2), but the graphic designer I work with uses CS5.  I need to package some files for her but do not know how to do it so that she will be able to access a compatible file.  Thanks.

    Package it. Close the file and then open the one in the package. File > Save as and change the type to InDesign CS4 or later (IDML).
    You should probably send a PDF as well since the chances of a perfect conversion are close to zero. If that file is getting returned to you, you are in for a world of pain trying to work this way.

  • Data files for Desktop ver. 4.1.4

    I am searching for the data files for my Palm Desktop application.  My computer self destructed, I am able to get files off of the old HDdrive but I cannot locate data files for my Palm application.  I was running Palm Desktop version 4.1.4 (PalmOne). Can anyone help me? 
    Thanks,
    John

    They should be located at c > program files > palm (or palmone) > [your user folder, usually an abbreviated version of your Hotsync I.D.]
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • Welcome file for desktop

    Hi all,
    I have set the welcome file - abc.portal - in web.xml. It works if we use file-based portal and doesn't work for desktop. In order to make web.xml work for all situations, how should I set the welcome file for portal? Thanks in advance.

    Thank you for your response.
    the welcome file defined like this in web.xml:
    <welcome-file-list>
    <welcome-file>abc.portal</welcome-file>
    </welcome-file-list>
    And this file can be access through http://mydomain/mycontext.
    However, after I created a desktop, the URL for the desktop becomes http://mydomain/mycontext/appmanager/streamportal/desktop, so there is no way to find the abc.portal from there.

  • Where can i find the BI Java Connector Files (for example: bi_sdk_jdbc.rar)

    Hi,
    where can i find the BI Java Connector Files:
    bi_sdk_jdbc.rar
    bi_sdk_xmla.rar
    bi_sdk_sapq.rar
    bi_sdk_odbo.rar
    Can anyone help me?

    hi Christian,
    these files should be included in bi java sdk
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/78b3db58-0501-0010-b895-f75cd8fdf674 [original link is broken]
    hope this helps.

  • I seek a java forms builder for desktop applications

    can any body help me find a forms builder for desktop applications using Swing?
    i know Oracle Forms developer, but i think it is restricted to JSP projects only .. isn't it?

    Any IDE with a GUI builder will do. Not that I actually advice to create GUIs (I guess this is what you mean by form) with tools... but if you want to, that's the way. The editor of JBuilder is said to be quite good.

  • How to use packages and jar files for applet?

    Hi!
    My applet takes a class say a.class.
    Now this class depends on other classes that are packaged
    in a directory and put separately.
    I want to put this applet on the web.
    So how do I manage the .class files in he package.
    I have tried using jar file format.But I was not able to get it working.
    Can someone please help me?
    Thanks

    Use Archive instead of codebase:
    <APPLET CODE="MyApplet.class" ARCHIVE="MyApplet.jar" WIDTH=400 HEIGHT=300></APPLET>

  • What program do you use to open the installer file for mac?!

    for some reason it wants to use matlab. i know how to fix this problem myself if i knew what program to use to open the installer... but i cannot find that information anywhere. can someone please help me. what program do you use to open the java installer file for mac!?

    osx - Why is Adobe Flash Player downloaded as a ".dmg.mdlp" file? - Super User

  • How to package .json files for use in an ANE for iOS

    I am creating an Adobe Native Extension (ANE) for use with iOS. The native code in the main .a library file used for the ANE depends on 3rd party frameworks which themselves depend on the definitions of JSON objects defined in several .json files. I can package the 3rd party frameworks with the ANE just fine - it's the .json files that I'm having difficulties with.
    I've tried packaging the .json files into the main .a library file, although I don't know if I did it the right way.
    Please help.

    You can read through the resources documentation for iOS here:
    http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2e74ffb4130044f3619-7ff8.htm l
    Of particular interest is the line:
    "3. It moves the resource files to the top-level directory of the application."
    So not sure if you are using an ant build script or whatever to build your ANE, but as long as you place these json files into the folder with your library when you build the ANE, these will end up getting copied to the top-level directory of the application when an application is built using this ANE.
    This is exactly how I include an iOS .bundle of resources along with a .a in an ANE and it works fine. Nice clean packaging when distributing the ANE too.

Maybe you are looking for