JavaFX Native Packaging

The JavaFX team has implemented a major new feature for JavaFX 2.2.
Native Packaging uses JavaFX packaging tools to create native bundles for executables, installers and zip files of JavaFX applications (including Java + JavaFX runtimes).
Igor has written a blog on how to use the new feature:
https://blogs.oracle.com/talkingjavadeployment/entry/native_packaging_for_javafx
Give the new feature a spin and log any issues: http://javafx-jira.kenai.com
Not sure of the best way to communicate feedback and suggestions, but you can do that via either this thread or the openjfx mailing list:
http://mail.openjdk.java.net/mailman/listinfo/openjfx-dev

There is information on embedding JavaFX in NetBeans as a NetBeans module in this blog post:
https://blogs.oracle.com/geertjan/entry/javafx_browser_as_a_ready
The official name for Native Packaging is now Self Contained Application.
I do not know how to set a NetBeans application up as a self contained application as I have little experience with NetBeans.
My guess, from your post, is that NetBeans has it's own packaging system for constructing distribution bundles of applications built on the NetBeans platform. Perhaps in this case, rather than packaging primarily with the javafx tools, the packaging should performed by a version of the existing NetBeans packaging system which has been enhanced to support JavaFX modules built on the NetBeans platform. This seems to be the approach you are taking already, but I cannot provide pointers on what changes you would need to make to the NetBeans packager.
Perhaps posts on NetBeans developer forums may yield better answers.

Similar Messages

  • JavaFx 2.2.0 Native Package deploy problem on Windows

    Hi,
    I'm trying to compile a JavaFX native package on Windows 7 64 bit.
    I've installed:
    JDK 7U6 Beta
    JavaFx sdk 2.2.0 Beta
    Wix toolset 3.5
    Inno Setup 5.5.1
    When I run the tool installers *.exe and *.msi are created and they work as
    installalation procedeure correctly completed.
    The problem is when I run the application as I get a error message window
    with title
    C:\Program Files (x86)\NativePackage\runtime\jre7\bin\server\jvm.dll
    and message
    jvm.dll is not found
    but I looked in C:\Program Files (x86)\NativePackage\runtime\jre7\bin\server and jvm.dll
    exists.
    Any idea?
    Thank you
    Andrea

    Solved,
    running eclipse with a different JRE (C:\Program Files\Java\jdk1.7.0_06\bin\javaw.exe) has solved the problem.
    To do that I simply edited my eclipse.ini and added -vm C:\Program Files\Java\jdk1.7.0_06\bin\javaw.exe, here my
    eclipse.ini:
    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
    -product
    org.eclipse.epp.package.java.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    256M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    -vm
    C:\Program Files\Java\jdk1.7.0_06\bin\javaw.exe
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Dhelp.lucene.tokenizer=standard
    -Xms40m
    -Xmx384m

  • Native package for Mac and relative path

    Hi,
    I done a small application with Javafx that start an Embedded Jetty. All works fine in Windows also with native package. Instead in Mac it works only before native packaging. Seems that the problem is how relative path are considered.
    The tree of the content is this:
    myfile.jar
    webapp (folder)
    libs (folder)
    Look at this code:
                    String webAppDir = "webapp";
                    File f = new File(webAppDir);
                    log.debug("Path webapp folder: " + f.getAbsolutePath());
                    if (!f.exists())
                        throw new Exception("The folder " + f.getAbsolutePath() + " doesn't exist");
                    if (!f.canRead())
                WebAppContext context = new WebAppContext();
                context.setContextPath("/myapp");
                context.setResourceBase("webapp");
                context.setDescriptor("WEB-INF" + File.separator + "web.xml");
                context.setSessionHandler(new SessionHandler(sessionManager));
                        throw new Exception("La cartella " + f.getAbsolutePath() + " non è leggibile");
    The problem is that before the packaging in Mac the relative path is that where the main .jar is located an so the code works because the webapp folder is found. Instead after the bundle the path became /Users/MyUser/webapp and of course the folder is not found because it is bundled inside the file.app near the libs folder.
    Someone can explain me if this behaviour is due to JavaFx packager and how I can solve the problem in a elegant way?
    Thanks very much

    Some good soul has any idea?
    Thanks

  • Native packaging windows failing

    All
    Just tried the latest JVM download from oracle B22 and tried to native package I am getting the following error when ANT tasks are attempting to package.
    Using base JDK at: C:\dev\applications\jdk1.7.0_06\jre
    Creating app bundle: CelerTrader in C:\dev\code\celertech-framework-trunk\celertech\celertech-orderrouting-jfx-client\build\dist\bundles\bundles
    Result application bundle: C:\dev\code\celertech-framework-trunk\celertech\celertech-orderrouting-jfx-client\build\dist\bundles\bundles
    [fx:deploy] java.io.IOException: Exec failed with code 2 command [[iscc.exe, /oC:\dev\code\celertech-framework-trunk\celertech\celertech-orderrouting-jfx-client\build\dist\bundles\bundles, C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build4729914614168260728.fxbundler\images\win-app.image\CelerTrader.iss] in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build4729914614168260728.fxbundler\images\win-app.image
    [fx:deploy]     at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:131)
    [fx:deploy]     at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:107)
    [fx:deploy]     at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:101)
    [fx:deploy]     at com.sun.javafx.tools.packager.bundlers.WinExeBundler.buildEXE(WinExeBundler.java:324)
    [fx:deploy]     at com.sun.javafx.tools.packager.bundlers.WinExeBundler.bundle(WinExeBundler.java:144)
    [fx:deploy]     at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:452)
    [fx:deploy]     at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:435)
    [fx:deploy]     at com.sun.javafx.tools.ant.DeployFXTask.execute(DeployFXTask.java:215)
    [fx:deploy]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [fx:deploy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [fx:deploy]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [fx:deploy]     at java.lang.reflect.Method.invoke(Method.java:601)
    [fx:deploy]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [fx:deploy]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [fx:deploy]     at org.apache.tools.ant.Target.execute(Target.java:390)
    [fx:deploy]     at org.apache.tools.ant.Target.performTasks(Target.java:411)
    [fx:deploy]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [fx:deploy]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [fx:deploy]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [fx:deploy]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [fx:deploy]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [fx:deploy]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [fx:deploy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [fx:deploy]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [fx:deploy]     at java.lang.reflect.Method.invoke(Method.java:601)
    [fx:deploy]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [fx:deploy]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [fx:deploy]     at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [fx:deploy]     at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
    [fx:deploy]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [fx:deploy]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [fx:deploy]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [fx:deploy]     at java.lang.reflect.Method.invoke(Method.java:601)
    [fx:deploy]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [fx:deploy]     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [fx:deploy]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [fx:deploy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [fx:deploy]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [fx:deploy]     at java.lang.reflect.Method.invoke(Method.java:601)
    [fx:deploy]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [fx:deploy]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [fx:deploy]     at org.apache.tools.ant.Target.execute(Target.java:390)
    [fx:deploy]     at org.apache.tools.ant.Target.performTasks(Target.java:411)
    [fx:deploy]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [fx:deploy]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [fx:deploy]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [fx:deploy]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [fx:deploy]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [fx:deploy]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [fx:deploy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [fx:deploy]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [fx:deploy]     at java.lang.reflect.Method.invoke(Method.java:601)
    [fx:deploy]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [fx:deploy]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [fx:deploy]     at org.apache.tools.ant.Target.execute(Target.java:390)
    [fx:deploy]     at org.apache.tools.ant.Target.performTasks(Target.java:411)
    [fx:deploy]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [fx:deploy]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [fx:deploy]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [fx:deploy]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [fx:deploy]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [fx:deploy]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [fx:deploy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [fx:deploy]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [fx:deploy]     at java.lang.reflect.Method.invoke(Method.java:601)
    [fx:deploy]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [fx:deploy]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [fx:deploy]     at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [fx:deploy]     at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
    [fx:deploy]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [fx:deploy]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [fx:deploy]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [fx:deploy]     at java.lang.reflect.Method.invoke(Method.java:601)
    [fx:deploy]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [fx:deploy]     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [fx:deploy]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [fx:deploy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [fx:deploy]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [fx:deploy]     at java.lang.reflect.Method.invoke(Method.java:601)
    [fx:deploy]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [fx:deploy]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [fx:deploy]     at org.apache.tools.ant.Target.execute(Target.java:390)
    [fx:deploy]     at org.apache.tools.ant.Target.performTasks(Target.java:411)
    [fx:deploy]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [fx:deploy]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [fx:deploy]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [fx:deploy]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [fx:deploy]     at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:302)
    [fx:deploy]     at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
    [fx:deploy]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [fx:deploy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    [fx:deploy]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [fx:deploy]     at java.lang.reflect.Method.invoke(Method.java:601)
    [fx:deploy]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [fx:deploy]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [fx:deploy]     at org.apache.tools.ant.Target.execute(Target.java:390)
    [fx:deploy]     at org.apache.tools.ant.Target.performTasks(Target.java:411)
    [fx:deploy]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [fx:deploy]     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [fx:deploy]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [fx:deploy]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [fx:deploy]     at org.apache.tools.ant.Main.runBuild(Main.java:809)
    [fx:deploy]     at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [fx:deploy]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    [fx:deploy]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    BUILD SUCCESSFUL
    Total time: 41 seconds
    C:\dev\code\celertech-framework-trunk\build_tools>
    <code>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Pass "/Debug" option to the .exe launcher to see console output. This typically helps to see root cause of the failure (pretty much the same as exe file you are referring too, where this option was on by default). How are you loading XML file and where it is kept in the package?
    For another problem. Set JAVAFX_ANT_DEBUG=true before you build and this will keep the working directory.
    Then try to launch same iscc.exe command from command line? Did it work? what will be exit code?
    iscc sometimes report weird exit codes but otherwise "exit code 2" generally means some file is missing.
    Also, add exec task to your build.xml that simply runs "iscc /?". Does it work?
    If you are confident it is a bug please file JIRA issue.

  • Packaging Linux AIR app as a native package (.deb)?

    Ok, so I've been tasked with packaging an AIR app in a system package. We got a redistrubution license for AIR so I think we are good in that respect but I run into an unfortunate predicament when trying to do a silent install from a deb:
    Both AIR runtime and AIR applicaiton generate a native package (.deb in this case) during install. So even though I can run silent install from my own deb, it fails to install as it cannot install a deb during installation of a deb. I am assuming that even if I could somehow grab the generated deb file, it would be against the license agreement to do so.
    So, any thoughts as to how to get this accomplished? Is there an alternative distribution of an app that comes as a native ".deb" file? Or is there a command line option that disables a native package management install? ( I can seem to find no information on any command line options for the bin installer)
    Thanks.
    -M

    Ok, so I've been tasked with packaging an AIR app in a system package. We got a redistrubution license for AIR so I think we are good in that respect but I run into an unfortunate predicament when trying to do a silent install from a deb:
    Both AIR runtime and AIR applicaiton generate a native package (.deb in this case) during install. So even though I can run silent install from my own deb, it fails to install as it cannot install a deb during installation of a deb. I am assuming that even if I could somehow grab the generated deb file, it would be against the license agreement to do so.
    So, any thoughts as to how to get this accomplished? Is there an alternative distribution of an app that comes as a native ".deb" file? Or is there a command line option that disables a native package management install? ( I can seem to find no information on any command line options for the bin installer)
    Thanks.
    -M

  • Problems importing/accessing javafx.* packages in JS FXML script

    I cannot figure out how to import access javafx.* packages in FXML JS-scripts. Currently trying the following, example code provided below:
    FXML
    <fx:script source="myscript.js"/>
    <HBox fx:id="myBox" onDragDetected="featureDragDetected(event)" />
    JS-script (myscript.js)
    function featureDragDetected(event) {
      event.getSource().startDragAndDrop(javafx.scene.input.TransferMode.ANY);
    I get the following error message:
    javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "javafx" is not defined. (<Unknown source>#6) in <Unknown source> at line number 6
      at com.sun.script.javascript.RhinoScriptEngine.eval(Unknown Source)
      at javax.script.AbstractScriptEngine.eval(Unknown Source)
      at javafx.fxml.FXMLLoader$ScriptElement.processStartElement(FXMLLoader.java:1323)
    What am I doing wrong?

    It works on my system.
    MyClass.java
    package com.foo.java;
    public class MyClass {
        @Override
        public String toString() {
            return "My Class";
    MyFXScript.fx
    package com.foo.javafx;
    import com.foo.java.*;
    var myClass = new MyClass();
    println(myClass);standard-run:
    My Class
    browser-run:
    jws-run:
    midp-run:
    run:
    BUILD SUCCESSFUL (total time: 3 seconds)

  • Single instance app with native packaging

    Is there any way to allow only one instance of the app to run with javafx2 native packaging? Like an attribute in the build.xml or something?
    I'm using the .exe for windows and the .dmg for mac.
    Appreciate your help.

    There is no simple deployment build switch that I know of for achieving a single instance app.
    A couple of ideas (none of which I have tried).
    Perhaps you could use the SingleInstanceService:
    http://www.oracle.com/technetwork/articles/java/fxbest-1583679.html "Ensuring Only One Instance of the Application Is Started"
    http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/examples.html#SingleInstanceService "SingleInstanceService"
    It is a jnlp api based service though and I'm not sure if such a service would be available to a packaged app (maybe it would require including the jre/lib/javaws.jar file with your app or something like that).
    You could write out a lock file when the app starts.
    On unix (i.e. mac/linux) the lock could include the process pid for your app. On startup, check if there is a process with the lock pid currently running, if so, don't startup and perhaps send an interrupt signal to the existing app notifying it that the user tried to start a new instance.
    On windows you could read and write the lock value value from the registry.
    To get rid of the OS specific stuff surrounding this, perhaps this kind of lock logic could be implemented using the Java Preferences API:
    http://docs.oracle.com/javase/7/docs/technotes/guides/preferences/index.html
    Intellij Idea is open source and and seems to have this kind of functionality, so you could check how they do it.

  • Native Packages

    Hi,
    I am quite new to the Oracle IDAM Suite. While going through the ODSE Installation Document, I found a section which talked about the Native Installation packages for Solaris.
    Are there any Pros-Cons tagged with the native packages? Also does that mean we cannot install .zip on Solaris?

    Hi,
    On Solaris, you can choose between native packages and zip distribution.
    It is really up to you, depending on the way to want to manage your system.
    The following link compares the 2 installation modes : http://docs.oracle.com/cd/E20295_01/html/821-1218/giwku.html#scrolltoc
    HTH
    -Sylvain

  • Installation from ZIP or native package??

    Hi guys,
    i have installed DSEE 6.3 from ZIP package for Solaris 9 Sparc and all the components are working fine...
    But i came to know that the "directoryserver" command is not present under /usr/bin...
    The unix guys feel that maybe the Native package has some more platform specific commands...is it so?
    I have done all the administration using dsadm, dpadm,dsconf and dpconf commands and everything is setup fine...
    Now should i remove my installtion and redo with a native package - if any commands are missed out in ZIP package...
    Thanks...

    Hi.
    /usr/bin/directoryserver was a 5.x command. It does not exist anymore in 6.x.
    The previous post describes additional features of the ZIP delivery. Here are the additional features of the native delivery:
    - commands to manage rc scripts on Solaris 9 (dsadm/dpadm autostart) or SMF on Solaris 10 (dsadm/dpadm enable-service)
    - ability to deploy DSCC in Sun Java Web Console
    Regards,
    Carole.

  • How install my jar+native package for JRE plugin

    I cannot figure out how to deploy a plugin consisting of a Java package that calls native code. The calling order is:
    Applet -> installed classes in lib/ext/my.jar -> DLL in C:\\WINDOWS\SYSTEM32
    I have gotten my plugin to work on Windows IE using the Microsoft JVM, and on Netscape using LiveConnect, and on Mac using MRJ. It also works with stand-alone Java applications. But I cannot get it to work with Applets when I am using the SUN JRE plugin for Java!
    I can call the classes in the JAR file but they can't loadLibrary( the DLL ).
    I put my JAR file in "C:\Program Files\JavaSoft\JRE\1.3.1_04\lib\ext".
    I put my DLL in "C:\WINDOWS\system32" which is in the "java.library.path".
    I was hoping that by installing the JAR file in the lib/ext folder that it would elevate its privelege and allow it to call loadLibrary().
    I don't want to have to sign each Applet. My plugin is installed using a digital certificate. Once installed it should give regular Applets the ability to call my native code.
    I am hoping to simply use a signed Java installer for the plugin that will copy my JAR file and DLL to the right places.
    If you use IE or Netscape without the SUN plugin, you can try my plugins here:
    http://www.softsynth.com/jsyn/plugins/
    http://www.javasonics.com/plugins/
    I'm tired of telling people to disable the SUN JRE plugin and enable the Microsoft JVM in order to use my plugins.....
    Any ideas?
    Thanks,
    Phil Burk

    I found a solution to my own problem. The problem was that classes in a JAR file installed in the "java.ext.dirs" path could not call System.loadLibrary() when called from an Applet.
    The solution was to explictly make use of the priveledged status of the extension classes as follows:
    Boolean result = (Boolean)
    AccessController.doPrivileged(new PrivilegedAction()
    public Object run()
    System.loadLibrary("mylib");
    return null;

  • Native Package Problem

    I'm trying to produce a native .dmg using Air 2.0.2, however I encounter the following issue:
    adt -package -target native app.dmg app.air
    unexpected failure: Copy failed
    java.io.IOException: Copy failed
    at com.adobe.air.nai.DMGPackager.assembleInternalFiles(DMGPackager.java:52)
    at com.adobe.air.nai.NativePackager.createPackage(NativePackager.java:76)
    at com.adobe.air.ADTEntrypoint.parseArgsAndGo(ADTEntrypoint.java:132)
    at com.adobe.air.ADT.parseArgsAndGo(ADT.java:182)
    at com.adobe.air.ADTEntrypoint.run(ADTEntrypoint.java:68)
    at com.adobe.air.ADT.main(ADT.java:128)
    I get the same when I try to use adt from the .swf/.xml
    Any help appreciated.

    Solved,
    running eclipse with a different JRE (C:\Program Files\Java\jdk1.7.0_06\bin\javaw.exe) has solved the problem.
    To do that I simply edited my eclipse.ini and added -vm C:\Program Files\Java\jdk1.7.0_06\bin\javaw.exe, here my
    eclipse.ini:
    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
    -product
    org.eclipse.epp.package.java.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    256M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    -vm
    C:\Program Files\Java\jdk1.7.0_06\bin\javaw.exe
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Dhelp.lucene.tokenizer=standard
    -Xms40m
    -Xmx384m

  • ADT native package signing issue

    Hi all,
    I'm having a problem signing an executable with adt. I don't wan't a timestamp so I execute following command in command line:
    "adt -package -storetype pkcs12 -keystore D:\workspaces\a327-shell\IDA_Certificate.p12 -keypass AIRRules -storepass AIRRules -tsa none -target native -storetype pkcs12 -keystore D:\workspaces\a327-shell\IDA_Certificate.p12 -keypass AIRRules -storepass AIRRules -tsa none shell-0.5-RELEASE.exe shell-app.xml shell-0.5-RELEASE.swf assets"
    This returns the following error: "Could not apply timestamp to setup.msi"
    This seems to refer to the native signing options part and not the AIR signing options but I have found no way to fix this.
    Anyone with ideas on how to fix this, it's pretty critical to the project.
    Thx,
    David

    flamelab wrote:
    bangkok_manouel wrote:
    wonder wrote:
    i don't really want to read your crappy blog. You said about reddit, post the damn reddit link
    p.s that blog is kinda useless, new one, only one post. doesn't worth trying reading. That ideas are not original, almost copy/pasted from an old one
    so nice and polite...
    I think wonder is being "impolite", because that particular blog post is an exact copy of a continuous rant of a (banned now) member here in the forums about package signing. So he (that member) is doing the same thing outside the forums, in a blog. It would be much better from him to have helped, instead of ranting.
    He's been spamming Linux-related forums for the last several weeks about this issue, just generally rabble-rousing.  From what I've seen, the guy may have done the community a favor, since numerous respondents have basically said "I was gonna try Arch 'cuz a friend of a friend said it was cool, but wasn't aware of this issue or how Arch worked, and now I'm scared and don't think I'll bother."  Basically diverting the intellectually lazy away from Arch.  He claims to have come up with an easily-implemented solution; however, he also claims the devs have basically blown his brilliant idea off. And he can't be bothered to patch and repackage pacman and sign some packages himself (as an open and observable test-case) despite supposedly having the resources and skills necessary to do so.

  • Support for native packaged apps?

    Hi,
    I'm looking to incorporate some Native Process functionality into my app, which means I'll be deploying EXE, DMG, and possibly RPM version of the application.
    Is there anyway that Melrose can facilitate this in it's current state? Looking at the developer panel, it doesn't seem so...

    That helps alot, I'll now have to re-think my business model as obviously InMarket is not the place I can be if I want to develop cutting edge AIR applications. I truly appreciate the timeframe though, it gives me some solid info I can plan around.
    I'm not sure I agree with the direction entirely, I think the monetization opportunities go down 10-fold by not allowing use of the Native API's in 2.0.
    With the native process API's the variety of application's we could build in AIR expanded exponentially, suddenly we can take advantage of thousands of pre-existing native processes to do all kinds of things that AIR can't do natively. The possibilities are endless.
    So, while you are focusing on reaching into new markets, you're limiting AIR apps to be simplistic in nature, and quite limited in functionality. Not to mention, it's a poor message to developers: Here's this API we released, but it will be 18mths+ before we will actually support it in our own storefront.
    I'm not really sure what one has to do with the other as well. Mobile/Tabled and TV's will obviously not support Native Process anyways, so I don't see how adding support for native apps in Desktop storefronts, should really affect the partnerships / development of these other storefronts.
    It seems you guys are overthinking things. Start with getting the simple/basic stuff working properly, then you can conquer the world

  • How to packaging javaFX with ICON

    Hi
    I have successfully generated native application for javaFX, however I don't know how to package application ICON to native package.
    I already able to see icon when I run it in netbeans.
    Regards,
    Hua Jie

    Look at the output from the javafxpackager call - it prints all kinds of helpful messages that tell you how to customize (search for the word icon). On Mac it told me to put add the image: package/macosx/MyApp.icns. On windows it told me to add the image package/windows/MyApp.ico. I don't know about linux.
    I've been running javafxpackager from the command line - I find that the package directory needs to be in the same directory I run from (though maybe I just need to set the -classpath arg).

  • Migrate certificate for native installer packaged application

    Hi,
    I need to migrate certificate (to new certificate) for my air app, which is a native installer packaged application. The certification migration steps in the docs mention migrating/ signing the .air app with old and new certificate.
    But it doesn't mention anything about the natively packaged air app (the .exe)
    How to migrate / sign certificates for native installer ?
    Thanks,
    Brijesh

    AIR run time :2.0.3.13070
    Yes,I am using the old certificate for migration. However I noticed I was getting following error while migrating.
    a) first I got the "Could not create time stamp: timestamp.geotrust.com"  exception.  I am completely unsure why this error. I didn't use timestamp while generating the old version of the app using the old certificate few days back (before old certificate expired).
    b) then I tried to migrate using   -tsa none  option so that it could migrate to new air.
    If this is causing the problem,  I need to figure out why I get the timestamp error mentioned in (a)
    Thanks,
    Brijesh

Maybe you are looking for