Application with native extension crashes onstart

I've created a flex mobile project with ios native extension(with ad frameworks such as facebook,chartboost ) and linked 3rd party frameworks.
when I start the application,it's crashes.I can't see any logs.is this a problem with linking 3rd party frameworks?
framework didn't work properly with it's directory structure so I followed below link. copied header files .a file to the top of the directory in the 3rd party framework and
removed other folders.
http://www.marietta.co.jp/diary/?action_diary_detail=1&id=681
<platform xmlns="http://ns.adobe.com/air/extension/15.0">
     <sdkVersion>8.0</sdkVersion>
     <linkerOptions>
          <option>-ios_version_min 6.1</option>
          <option>-framework UIKit</option>
          <option>-framework Foundation</option>
          <option>-framework CoreGraphics</option>
          <option>-framework AdSupport</option>
          <option>-framework StoreKit</option>
     </linkerOptions>
     <packagedDependencies>
         <packagedDependency>frameworks/Chartboost.framework</packagedDependency>
    </packagedDependencies>
</platform>
adt -package -target ane AdExtension.ane extension.xml -swc bin/AdsLibrary.swc -platform iPhone-ARM ios/library.swf ios/libAdExtension.a frameworks/Chartboost.framework -C ios . -platformoptions platformoptions.xml
please help

I've been trying to make a Chartboost ANE as well, and I have the same problems as you.
First of all, it's easier to just use the headers and Chartboost static library directly in the Xcode project, instead of the Chartboost.framework. This way, your own .a file will include the Chartboost library, and you don't need to package it in the ANE. The resulting ANE will be smaller as well.
But whichever way you do it, the app will still crash. The error I get is the following:
<Error>: -[__NSCFString isEqualToNumber:]: unrecognized selector sent to instance 0x17802a4e0
This seems to be a problem with newer versions of the Chartboost SDK specifically. So for now I'm still using Chartboost 4.0 in my ANE. Unfortunately it doesn't contain some of the new features I'd like to use.
I've contacted Chartboost support about it. But they say they don't support AIR, and their SDK is working fine when used in a regular native app.
So somehow the combination of Chartboost and AIR is making it crash... If anyone has been able to get it working with the new Chartboost SDK, I would sure like to hear about it!

Similar Messages

  • Android Native Extension crashes if i use anything other than Activity class to extend my activity

    It seems my android native extension is crashing everythime i use anything like FragmentActivity etc. Looks liek android's supportv4 classes are also not supported with native extension coding. I even have my question posted here.
    http://stackoverflow.com/questions/16470791/adobe-air-native-extension-application-crashes -on-using-fragmentactivity
    If anyone has a answer please help out.

    Any progress on it? I have the same problem...
    Thanks

  • ADT packaging with native extensions : permission denied error when running remote build.

    Hi Team,
    We are facing the following error when running the nightly ant build script on Mac machine for our air mobile application. We are using iOS native extensions and package with ADT. This works fine when we run the build as local user in the Mac machine. Earlier we faced some issues due to headless build and we have added the <headless-server>true</headless-server> in corresponding config files (flex-config.xml, airmobile-config.xml). After that we are facing the following error, even when we run the ant build in headless mode using the following command.
    ant -Djava.awt.headless=true -f build.xml buildPackage
    When running this build as local user in the Mac build machine, we see a window opening with com.adobe.air.ADT while packaging. This is the issue when running nightly build as there is no graphics window.
    Can anybody please help how to get rid of this issue for nightly build using adt,jar?
    Here is the error from build log:
    buildiOSPackageWithNativeExtensionMac:
         [echo] Export the iOS package with Native extension for ApprovalsMobile in Mac
         [java] Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions.
         [java]  at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         [java]  at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
         [java]  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)
         [java]  at java.lang.Runtime.loadLibrary0(Runtime.java:823)
         [java]  at java.lang.System.loadLibrary(System.java:1045)
         [java]  at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
         [java]  at java.security.AccessController.doPrivileged(Native Method)
         [java]  at java.awt.Toolkit.loadLibraries(Toolkit.java:1605)
         [java]  at java.awt.Toolkit.<clinit>(Toolkit.java:1627)
         [java]  at java.awt.Dimension.<clinit>(Dimension.java:70)
         [java]  at com.adobe.air.validator.ApplicationDescriptorValidator.validateImageUri(ApplicationDescri ptorValidator.java:183)
         [java]  at com.adobe.air.validator.ApplicationDescriptorValidator20.validateElement(ApplicationDescr iptorValidator20.java:121)
         [java]  at com.adobe.air.validator.ApplicationDescriptorValidator25.validateElement(ApplicationDescr iptorValidator25.java:65)
         [java]  at com.adobe.air.validator.ApplicationDescriptorValidator26.validateElement(ApplicationDescr iptorValidator26.java:62)
         [java]  at com.adobe.air.validator.ApplicationDescriptorValidator30.validateElement(ApplicationDescr iptorValidator30.java:52)
         [java]  at com.adobe.air.validator.ApplicationDescriptorValidator31.validateElement(ApplicationDescr iptorValidator31.java:46)
         [java]  at com.adobe.air.validator.DescriptorValidator.endElement(DescriptorValidator.java:239)
         [java]  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser .java:601)
         [java]  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XML DocumentFragmentScannerImpl.java:1782)
         [java]  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDri ver.next(XMLDocumentFragmentScannerImpl.java:2939)
         [java]  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImp l.java:648)
         [java]  at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScanne rImpl.java:140)
         [java]  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo cumentFragmentScannerImpl.java:511)
         [java]  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.ja va:808)
         [java]  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.ja va:737)
         [java]  at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
         [java]  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java :1205)
         [java]  at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.j ava:522)
         [java]  at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
         [java]  at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
         [java]  at com.adobe.air.Descriptor.validateXML(Descriptor.java:182)
         [java]  at com.adobe.air.Descriptor.<init>(Descriptor.java:56)
         [java]  at com.adobe.air.ApplicationDescriptor.<init>(ApplicationDescriptor.java:84)
         [java]  at com.adobe.air.ApplicationPackager.validateApplicationDescriptor(ApplicationPackager.java: 101)
         [java]  at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:64)
         [java]  at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:217)
         [java]  at com.adobe.air.ADT.parseArgsAndGo(ADT.java:557)
         [java]  at com.adobe.air.ADT.run(ADT.java:414)
         [java]  at com.adobe.air.ADT.main(ADT.java:464)
    Thanks,
    Swathi.

    Note: Before the above error that were two other errors .
    1) The build complained that the adt-bundle-linux toolchain could not be found and required that it be added to .mozconfig. This was done.
    2) The build complained that dx could not be found.
    The configure file was edited and the values $DX, $AAPT and $AIDL were all set to the adt-bundle-linux/sdk/build-tools/android-4.4 path.
    The instructions given on the Mozilla Wiki did not work right for Android and several modifications were made to move it along. But this permission error is tough to figure out.

  • Publishing air apps with native extension with Flash CS6 on Windows

    Hi all,
    is there any trick to publish air apps with Flash CS6 on Windows?
    I tried all native extensions from devnet, but nothing work to me.
    I read on Mac is possibility to specify the iOS SDK folder in publish
    settings, but on Windows it´s missing. 
    Is there anybody who has some experiences with publishing apps
    with native extensions for iOS and Android with windows Flash CS6?
    Thanks for all advices.

    I sympathize. I recently found a native alert for iOS and Android that's working with Flash CS6 on Windows with AIR 3.2.0.2070 but not AIR 3.2.0.2060. You can get the ANE here:
    http://www.jampot.ie/ane/
    Haven't tried the other ones. Let us know if you decide to try them.
    The sample code they have on the page doesn't work with the native alert. Here's the code I created - it's a document class for a .fla that has one dynamic TextField and one Button component on the stage :
    http://pastebin.com/DsxR9nJ4

  • AIR application with Native application crash on iOS because of numFunctionsToTest

    I wrote a simple Hello World AIR Native Extension and have implemented following context initializer
    void helloWorldContextInitializer(void* extData, const uint8_t* ctxType, FREContext ctx,
                                      uint32_t* numFunctionsToTest, const FRENamedFunction** functionsToSet)
        NSLog(@"Entering ContextInitializer");
        *functionsToSet = _methods;
        NSLog(@"Method list initialized");
        if(numFunctionsToTest != NULL)
            NSLog(@"numFunctionToTest is not null");
            *numFunctionsToTest = (uint32_t)2;
        NSLog(@"Exiting ContextInitializer");
    My Application crash on iOS device with following message in console.
    Dec 29 15:58:41 unknown HelloWorld[24298] <Warning>: Entering ContextInitializer
    Dec 29 15:58:41 unknown HelloWorld[24298] <Warning>: Method list initialized
    Dec 29 15:58:41 unknown HelloWorld[24298] <Warning>: numFunctionToTest is not null
    Dec 29 15:58:42 unknown ReportCrash[24302] <Notice>: Formulating crash report for process HelloWorld[24298]
    Dec 29 15:58:42 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:org.divy.contactmanagement[0x5c0]) Job appears to have crashed: Bus error: 10
    Dec 29 15:58:42 unknown SpringBoard[15] <Warning>: Application 'HelloWorld' exited abnormally with signal 10: Bus error: 10
    Dec 29 15:58:43 unknown ReportCrash[24302] <Error>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/
    It seems line following line is cause of the problem.
    *numFunctionsToTest = (uint32_t)2;
    modified the line to *numFunctionsToTest = 2; still no luck.
    It seem the pointer is pointing is not correct.
    Following is the Device log if it helps.
    Incident Identifier: 650833B2-9F2E-4186-B499-29C9088EBD66
    CrashReporter Key:   f559e8609ce49e196f1137a3c1c7d27b40377472
    Hardware Model:      iPhone3,1
    Process:         HelloWorld [24065]
    Path:            /var/mobile/Applications/35BEA219-A5DF-48BB-8602-228EB8AF3D61/HelloWorld.app/HelloWorld
    Identifier:      HelloWorld
    Version:         ??? (???)
    Code Type:       ARM (Native)
    Parent Process:  launchd [1]
    Date/Time:       2011-12-29 14:36:08.226 -0800
    OS Version:      iPhone OS 5.0.1 (9A405)
    Report Version:  104
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x011c6d85
    Crashed Thread:  0

    It was my mistake in configuration of extension.xml file. Instead of mentioning Extesion Initialization funtion i was using context initialization funtions there. It started working after correcting this problem.
    Thanks for all the help.

  • Adobe: What frameworks are compatible with Native Extensions on iOS?

    Man it's really hard to diagnose what could possibly be going wrong compiling ANEs for iOS. I dev apps in Xcode that work perfect, zero leaks. I use any part of the majority of the frameworks I've tried (none visual) and they simply don't work outside a very rare few. Vibration, gyroscope, alert modals, etc.
    Is there a list of compatibility between ANEs and classes on platforms that AIR supports? Whether it be Windows, iOS, Android, MacOSX, etc?
    Is there some way to "know" that a framework should be supported? For example, all I remember reading is to steer clear of visual classes. Oddly the UIAlertView modal works on iOS (that's visual to me but *shrug*).
    My current need is to use NSURLConnection and NSURLRequest. Both are in Foundation.h. Neither are visual. They're simply classes that make a connection to a host while sending and receiving responses. Yet any time I attempt to instantiate a NSURLRequest it's insta-crash. I comment it out and the ANE works fine. So far I find almost everything I do with ANEs to fail.
    Clearly the framework classes I'm using aren't supported or I'm doing it miserably wrong.
    A chart indicating support would be REALLY nice for each platform.
    On another note, has anyone utilized NSURL* on iOS successfully in an ANE?

    Thanks for the response. A few questions on your insights.. I don't use the command line adt tool to do anything besides package the ANE. Otherwise I'm not sure why my AIR project would need to know where the iOS SDK base directory is. The static library is already produced.
    Here's the simple code I'm using (just the NSURL* related stuff):
    http://pastebin.com/SFsq578R
    I'm producing the Static Lib using XCode 4.3.x. I only need NSURL* functionality which is found in Foundation.h which is included and required for compile in build phases. If I comment out anything to do with NSURL* and simply return a string (FREObject of a const char*) I get that string back to flash and can print it to prove I have the context/initializer/finalizers set up and the function named properly. So the bridge between AIR and ANE work just fine. It's only when I use a NSURL* function that I crash.
    Since my troubles I read this extensively long PDF on creating native extensions:
    http://help.adobe.com/en_US/air/extensions/air_extensions.pdf
    To be brief, it warned that a FREObject only exists until the return of the function you call. What I'm wondering is if it's even possible to use NSURL* functions because they require a delegate and will be running async. So even if I make a request and a connection using that request, after I return from the FRE function the connection is probably being cleaned up.
    That aside, I did make the connection and request a synthesized global hoping to get around this. Also to be brief I found an excellent post about debugging an IPA using XCode. Otherwise you're pretty much in a black hole debugging. Here's the post:
    http://blogs.adobe.com/rajorshi/2011/11/18/debugging-native-extensions-for-air-ios/
    The recipe works although it didn't right out of the box.
    XCode is telling me it's a EXC_BAD_ACCESS which typically means the object does not exist that I'm doing something to. My call stack looks like this (loosely, and the name of my static lib is libWebUtil):
    0 objc_msgSend
    1 CFStringGetLength
    2 _CFStringIsLegalURLString
    3 -[NSURL(NSURL) initWithString:relativeToURL:]
    4 -[NSURL(NSURL) URLWithString:relativeToURL:]
    5 -[WebUtil performRequest] // this is my method
    6 performRequest
    7 avmplus::ExtensionContextObject::_call(avmplus::String*,avmplus::ArrayObject*)
    .. etc
    From that stack I see it firing off the NSURLRequest and NSURL itself is first taking my string and testing it (CFStringIsLegalURLString) and then it runs CFStringGetLength. I assume it has completed verifying the string and goes to send a message (0 objc_msgSend) and I get a EXC_BAD_ACCESS on that.
    I see 9 threads running. This happens on Thread 1 (com.apple.main-thread). The stack traces all look like ASM code to me. Not very useful but at least I can tell the official error.
    Mind you that code linked above works perfectly if I make a new empty app, import it and run it. I print out the response data and it's fine.
    Right around the incident on the stack there's a avmplus::EventDispatcherObject::NativeDispatchEvent(MMgc::GCAPI::GCRef<avmplus::EventObje ct>, avmplus::WeakRefList<SObject> const*) + 1076;  .. if that helps at all. It's like the event it dispatches (perhaps from NSURL) to signal that the NSURL I'm making on the fly is correct but there's no object to receive it. That might happen if my method finishes and the object is destroyed before NSURL can even fire off the message.
    So I'm very interested in learning about object lifecycle in an ANE.

  • Project setup for a mobile and desktop application including native extensions (ANE)?

    I'm using Flash Builder 4.6 and I want to develop an application that is deployed to mobile and desktop devices. Therefore I tried a setup with three projects; one desktop project for Windows and Mac OSX, one mobile project for iOS and Android and also one library project for shared resources. The library project is used in the mobile and desktop project. Afterwards I placed all stuff like AS classes and UI components in the library project and instanciate them in the devices project. This works so far. (As consensus decision-making I used Flex components that are available vor mobile and desktop.)
    But If I want to use native extensions (ANE) like a DLL for Windows or a gyroscop for mobile devices, then I can't add the ANE to the library project. I have to add the ANE file separately to each device project and build a separate UI components. Is this the way it's intend to use ANE files? Is there an even simpler approach?
    Or is there a completly different way, e.g. setup just one common project (instead of three) and use different skins for mobile and desktop?
    Your answer is appreciated. (Including links to documentation and tutorials.)

    This thread doesn't look promising:
    http://forums.adobe.com/message/4737831
    Same here:
    http://stackoverflow.com/questions/11143907/flashbuilder-4-6-how-do-setup-project-for-mobi le-desktop-publishing
    Though if you're using Starling, there's some setup instructions here:
    http://wiki.starling-framework.org/manual/project_setup

  • Is it possible to build a captive runtime package with native extension?

    Hi. Now I try to build a captive runtime package with one native extension file(ANE) for Windows.
    I use Flash Builder 4.6 Premium and try to export release build.
    But Flash Builder warns that captive runtime can not bundle ane file.
    So I can not build package.
    Official document seems that captive runtime  supports native extensions.
    Does anyone know about?

    Hi. Now I try to build a captive runtime package with one native extension file(ANE) for Windows.
    I use Flash Builder 4.6 Premium and try to export release build.
    But Flash Builder warns that captive runtime can not bundle ane file.
    So I can not build package.
    Official document seems that captive runtime  supports native extensions.
    Does anyone know about?

  • Networkinfo native extensions crashes

    So i'm trying to have some type of persistent ID in my iOS game I'm working on to link user's highscores..
    I would use UUID but A) there doesn't seem to be an extension for it and B) it looks like Apple is deprecating the ability to get the UUID
    So the only option i could come up with is what i read online about using the mac address from one of the hardware items in the user's device.
    here goes networkinfo... which apparently isn't supported in iOS (but it is in android... go figure adobe) so then i see there's a native extension for it on adobe's website
    i include the networkinfo native extension just like i've included the other 5 or 6 native extensions i'm using and copy and paste their api and get the following error thrown (seen in remote debugging)
    Specifically:
    ArgumentError: Error #3500: The extension context does not have a method with the name getInterfaces.
    when i call findInterfaces()
    any ideas?

    Hi,
    There can be diferent reasons for this. 
    Maby there was an error while initalizing extension
    Or maby There was a problem that You didn't add the extension in the packagin option not only add the extension bu check it in the IOS platform to package it.
    Bu I have this extension that I'v made https://github.com/mateuszmackowiak/NativeAlert
    There is a SystemProperties that return MAC adress on IOS (its not documented now) So try this.

  • Native Extensions crash in Release build

    When I test in debugger quick the Native Extensions work fine. When I debug or release in a standard build then the app crashes... Has anyone experienced this?
    The native extensions that seems to be crashing only on release mode is
    FlurryAnalytics https://github.com/StickSports/ANE-Flurry-Analytics
    No errors are thrown, app just terminates.
    This is on iOS/ IPhone 4

    Have the same issue, but running on Android device, and this is the log:
    08-19 17:37:58.311: W/System.err(14317): java.lang.NullPointerException
    08-19 17:37:58.311: W/System.err(14317):     at java.io.File.fixSlashes(File.java:185)
    08-19 17:37:58.311: W/System.err(14317):     at java.io.File.<init>(File.java:134)
    08-19 17:37:58.311: W/System.err(14317):     at com.adobe.air.JavaTrustStoreHelper.getX509TrustManagerFactory(JavaTrustStoreHelper.java:8 1)
    08-19 17:37:58.321: W/System.err(14317):     at com.adobe.air.JavaTrustStoreHelper.getX509TrustManager(JavaTrustStoreHelper.java:110)
    08-19 17:37:58.321: W/System.err(14317):     at com.adobe.air.JavaTrustStoreHelper.enumerateRootCAs(JavaTrustStoreHelper.java:195)
    08-19 17:37:58.331: W/System.err(14317):     at dalvik.system.NativeStart.run(Native Method)

  • Extensive (very very very extensive) memory usage of host application with CS extension

    Hi!
    I tried this only under Photoshop CS5 and InDesign CS5 under Windows 7.
    When you open and close CS extension panel, the memory taken by Photoshop (InDesign) increases by 6-30MB!
    In case of the simple HelloPhotoshop (HelloInDesign) panel from the examples, compiled in release mode, when you open it and close, - it's about 6-10MB each time you do it. And in case of a more complex panel, which uses AIR, etc. it's about 30MB per one panel close/open.
    When I use some panels in 5-10 minutes Photoshop (InDesign) increases its memory pool from 600MB up to 1,2 GB. And more. And this memory is never freed, only until Photoshop (InDesign) shutdown.
    I tried freeing all my arrays, killing display objects, etc. - nothing helped. Even a simple HelloPhotoshop (HelloInDesign) that does nothing eats memory.
    By the way, InDesign eats memory a lot faster .

    James, thank you for the very fast answer! I did various tests on the weekend on my computer and computer of my friend.
    And I can say, that Debug flag doesn't affect memory consumption.   They still eat memory. My steps to reproduce are as follows:
    (Windows 7 32 bit)
    Photoshop CS5:
    1) set HKEY_CURRENT_USER\Software\Adobe\CSXS2Preferences\PlayerDebugMode to 0
    2*) check HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\CSXS2Preferences (just in case)
    3) Compile HelloPhotoshop example to ZXP and install via  Extension manager
    4) restart computer
    5) Run Photoshop CS5 - Memory consumption: 100 096 KB
    6) Open HelloPhotoshop and close it 10 times
    7) Memory consumption: 155 840 - 5,574 MB per one close/open
    Maybe a garbage collector is expected to run and free this memory, but it never happened in my case. The memory pool was increasing to 1 GB when I was working with one of my panels - with no documents open in Photoshop
    In InDesign I tried the same thing with HelloInDesign ( I had to close the panel completely and then open with Window | Extensions | HelloInDesign)
    Memory consumption on start: 118 516
    Memory consumption after 10 open/close cycles: 197 516
    It's 7,9 MB per one close/open
    It's the simpliest panel test. When I'm using AIR libraries the memory usage is increasing a lot faster.

  • IOS UIBackgroundModes with native extensions

    Hi, I read somewhere that only UIBackgroundMode = audio is supported by AIR 3.0. But what happens if I build a native extension that uses the location-service and sets UIBackgroundMode = location. Would that allow the app to be running in background? Or what does it mean that UIBackgroundMode = location is not supported? Is it not supported when using the AIR Api (Geolocation)?
    Thanks,
    Alex

    Hi, I read somewhere that only UIBackgroundMode = audio is supported by AIR 3.0. But what happens if I build a native extension that uses the location-service and sets UIBackgroundMode = location. Would that allow the app to be running in background? Or what does it mean that UIBackgroundMode = location is not supported? Is it not supported when using the AIR Api (Geolocation)?
    Thanks,
    Alex

  • Failed to launch JavaFX application with native bundle exe

    Hi,
    I have created a JavaFX application, and created its native bundle using Ant. When I am trying to launch application using Jar from bundle created with double click, it successfully launching my application. But when I am trying double click on MyApplication.exe (say), it throwing JavaFX Launcher Error *"Exception while running Application"*.
    I have searched about this issue, I found about jre, so I did replace jre from *"C:\Program Files\Java\jdk1.7.0_10\jre"* to my application bundle folder -- *\bundles\MyApplication\runtime\jre*, then I tried to launch exe with double click, it successfully launched.
    I have compared both jre, there are many missing jar, exe, dll and some properties files I found.
    I have these environment settings -
    JAVA_HOME -- C:\Program Files\Java\jdk1.7.0_10
    JREFX_HOME -- C:\Program Files\Oracle\JavaFX 2.2 Runtime
    Path contains an entry of C:\Program Files\Java\jdk1.7.0_10\bin JAVA_HOME and JREFX_HOME are used as in my build.xml to take ant-javafx.jar and jfxrt.jar --
    ${env.JAVA_HOME}/lib/ant-javafx.jar
    ${env.JREFX_HOME}/lib/jfxrt.jarMy steps to create bundle are -
    <target name="CreatingExe" depends="SignedJar">
                 <fx:deploy width="800" height="600" nativeBundles="all" outdir="${OutputPath}" outfile="${app.name}">
                          <fx:info title="${app.title}"/>
                          <fx:application name="${app.title}" mainClass="${main.class}"/>
                          <fx:resources>
                               <fx:fileset dir="${OutputPath}" includes="*.jar"/>
                         <fx:fileset dir="${WorkingFolder}/temp"/>
                   </fx:resources>
               </fx:deploy>
    </target>What more needed in build.xml so that application launch correctly with exe ?
    Thanks

    You code is not dealing with the DACL access to Winsta0\Default.  Only the LocalSystem account will have full access and the interactively logged on user which is why regedit is not displaying properly.  You'll need to grant access to your user. 
    You also need to deal with UAC since that code is going to give you a non-elevated token via LogonUser().  You need to get the full token via a call to GetTokenInformation() + TokenLinkedToken.
    thanks
    Frank K [MSFT]
    Follow us on Twitter, www.twitter.com/WindowsSDK.

  • Integration of packager-generated .ipa application with native Objective-C libraries

    Hi all,
    I am fairly new to both Adobe Packager and Apple development worlds so please forgive me if I my question may be a newbie one.
    I'm currently searching documentation and manuals over the web but no clear response yet.
    My company would like to develop a Flash/Air/Flex UI frontend for an enterprise application which should target iPads.
    The purpose is to leverage the great UI appeal of Adobe tools and runtimes, while Objective-C is mandatory for business logic and data source access.
    As far as I can see Adobe CS 5 and specific SDKs allow to develop apps in the mentioned Adobe technologies and then cross-compile into a native iOS standalone application.
    The problem is: I would like this application to invoke and be invoked from Objective-C programs, e.g. so that data can be passed to it
    How can I integrate the two worlds at a method invocation level?
    Thanks for your attention
    Regards
    Vincenzo

    yes it is possible to do that for details look to java 2 the complete reference by herbert schildt look for native methods in it

  • AIR3[Mobile] – Is it possible to add native Android visual elements with native extensions?

    Hi, i need to add some native android elements to stage. Is it real?
    Thanks in advance.

    Yes.
    Check this http://lancelotmobile.com/blog/admob-ane. The code is available in github.
    Best regards,
    Emil
    Lancelotmobile Ltd.

Maybe you are looking for

  • Unauthorized Issue in invoking REST API

    Hi, I am getting the following issue when i am calling the "GET" method of REST API:" https://secure.p03.eloqua.com/API/bulk/2.0/syncs/14" Unauthorized java.lang.RuntimeException: Failed : HTTP error code : 401   at GetContactSync.main(GetContactSync

  • How do I reinstall windows 8.1 on my 4th gen x1?

    Could somebody please enlighten me? Regards

  • Connection problem zd1211 with rc.conf

    Hi! I have had some problem with wireless network configuration (on my girlfriend pc). With zd1211 drivers the wireless configuration through rc.conf doesn't work, sometimes iwconfig shows AP not associated and sometimes apparently everything is OK b

  • How do approve from another device when I changed my number

    I recently got an iPad air 2. I would like to approve my new device to use my Apple ID. We authorization process requires receiving a text message from my old cell phone number that I no longer have access to. How do I have proof the device sent my p

  • Bandwidth weight

    Hello everyone, I have a test lab with 2012R2 Hyper-V host, vmm 2012 r2 and 2 vms with 2012 R2. Host have 2 pNics 1Gbps.  I've deployed logical switch to host and teamed adapters. for vms i used 2 different port profiles: 1: Min Bendwidth weight 1 2: