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

Similar Messages

  • 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

  • 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

  • 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.

  • 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.

  • 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.

  • 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

  • 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.

  • 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

  • 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

  • How do I make a batch file if the .class file uses a foreign package?

    I am trying to make an MS-DOS batch file using the bytecode file from the Java source file, called AddFields.java. This program uses the package BreezySwing; which is not standard with the JDK. I had to download it seperately. I will come back to this batch file later.
    But first, in order to prove the concept, I created a Java file called Soap.java in JCreator. It is a very simple GUI program that uses the javax.swing package; which does come with the JDK. The JDK is currently stored in the following directory: C:\Program Files\Java\jdk1.6.0_07. I have the PATH environment variable set to the 'bin' folder of the JDK. I believe that it is important that this variable stay this way because C:\Program Files\Java\jdk1.6.0_07\bin is where the file 'java.exe' and 'javac.exe' are stored. Here is my batch file so far for Soap:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java Soap
    pause
    Before I ran this file, I compiled Soap.java in my IDE and then ran it successfully. Then I moved the .class file to the directory C:\acorn. I put NOTHING ELSE in this folder. then I told the computer where to find the file 'java.exe' which I know is needed for execution of the .class file. I put the above text in Notepad and then saved it as Soap.bat onto my desktop. When I double click on it, the command prompt comes up in a little green box for a few seconds, and then the GUI opens and says "It Works!". Now that I know the concept of batch files, I tried creating another one that used the BreezySwing package.
    After I installed my JDK, I installed BreezySwing and TerminalIO which are two foreign packages that make building code much easier. I downloaded the .zip file from Lambert and Osborne called BreezySwingAndTerminalIO.zip. I extracted the files to the 'bin' folder of my JDK. Once I did this, and set the PATH environment variable to the 'bin' folder of my JDK, all BreezySwing and TerminalIO programs that I made worked. Now I wanted to make a batch file from the program AddFields.java. It is a GUI program that imports two packages, the traditional GUI javax.swing package and the foreign package BreezySwing. The user enters two numbers in two DoubleField objects and then selects one of four buttons; one for each arithmetic operation (add, subtract, multiply, or divide). Then the program displays the solution in a third DoubleField object. This program both compiles and runs successfully in JCreator. So, next I moved the .class file from the MyProjects folder that JCreator uses to C:\acorn. I put nothing else in this folder. The file Soap.class was still in there, but I did not think it would matter. Then I created the batch file:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java AddFields
    pause
    As you can see, it is exactly the same as the one for Soap. I made this file in Notepad and called it AddFields.bat. Upon double clicking on the file, I got this error message from command prompt:
    Exception in thread "main" java.lang.NoClassDefFoundError: BreezySwing/GBFrame
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    4)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Caused by: java.lang.ClassNotFoundException: BreezySwing.GBFrame
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    ... 12 more
    Press any key to continue . . .
    I know that most of this makes no sense; but that it only means that it cannot find the class BreezySwing or GBFrame (which AddFields extends). Notice, however that it does not give an error for javax.swing. If I change the "set path..." command to anything other than the 'bin' folder of my JDK, I get this error:
    'java' is not recognized as an internal or external command,
    operable program or batch file.
    Press any key to continue . . .
    I know this means that the computer cannot find the file 'java.exe' which I believe holds all of the java.x.y.z style packages (native packages); but not BreezySwing or any other foreign packages. Remember, I do not get this error for any of the native Java packages. I decided to compare the java.x.y.z packages with BreezySwing:
    I see that all of the native packages are not actually visible in the JDK's bin folder. I think that they are all stored in one of the .exe files in there because there are no .class files in the JDK's bin folder.
    However, BreezySwing is different, there is no such file called "BreezySwing.exe"; there are just about 20 .class files all with names like "GBFrame.class", and "GBActionListener.class". As a last effort, I moved all of these .class files directly into the bin folder (they were originally in a seperate folder called BreezySwingAndTerminalIO). This did nothing; even with all of the files in the same folder as java.exe.
    So my question is: What do I need to do to get the BreezySwing package recognized on my computer? Is there possibly a download for a file called "BreezySwing.exe" somewhere that would be similar to "java.exe" and contain all of the BreezySwing packages?

    There is a lot of detail in your posts. I won't properly quote everything you put (too laborious). Instead I'll just put your words inside quotes (").
    "..there are some things about the interface that I do not like."
    Like +what?+ This is not a help desk, and I would appreciate you participating in this discussion by providing details of what it is about the 'interface' of webstart that you 'do not like'. They are probably misunderstandings on your part.
    "Some of the .jar files I made were so dangerously corrupt, that I had to restart my computer before I could delete them."
    Corrupt?! I have never once had the Java tools produce a corrupt Jar. OTOH, the 'cannot delete' problem might relate to the JRE gaining a file lock on the archive at run-time. If the file lock persisted after ending the app., it suggests that the JRE was not properly shut down. This is a bug in the code and should be fixed. Deploying as .class files will only 'hide' the problem (from casual inspection - though the Task Manager should show the orphaned 'java' process).
    "I then turned to batch files for their simple structure and portability (I managed to successfully transport a java.util containing batch file from my computer to another). This was what I did:
    - I created a folder called Task
    - Then I copied three things into this folder: 1. The file "java.exe" from my JDK. 2. The program's .class file (Count.class). and 3. The original batch file.
    - Then I moved the folder from a removable disk to the second computer's C drive (C:\Task).
    - Last, I changed the code in the batch file...:"
    That is the +funniest+ thing I've heard on the forums in the last 72 hours. You say that is easy?! Some points.
    - editing batch files is not scalable to 100+ machines, let alone 10000+.
    - The fact that Java worked on the target machine was because it was +already installed.+ Dragging the 'java.exe' onto a Windows PC which has no Java will not magically make it 'Java enabled'.
    And speaking of Java on the client machine. Webstart has in-built mechanisms to ensure that the end user has the minimum required Java version to run the app. - we can also use the [deployJava.js|http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit] on the original web page, to check for minimum Java before it puts the link to download/install the app. - if the user does not have the required Java, the script should guide them through installing it.
    Those nice features in deployJava.js are available to applets and apps. launched using webstart, but they are not available for (plain) Jar's or loose class files. So if 'ensuring the user has Java' is one of the requirements for your launch, you are barking up the wrong tree by deploying loose class files.
    Note also that if you abandon webstart, but have your app. set up to work from a Jar, the installation process would be similar to above (though it would not need a .bat file, or editing it). This basic strategy is one way that I provide [Appleteer (as a downloadable ZIP archive)|http://pscode.org/appleteer/#download]. Though I side-step your part 1 by putting the stuff into a Jar with the path Appleteer/ - when the user expands the ZIP, the parts of the app. are already in the Appleteer directory.
    Appleteer is also provided as a webstart launched application (and as an applet). Either of those are 'easier' to use than the downloadable ZIP, but I thought I would provide it in case the end user wants to save it to disk and transport the app. to a machine with no internet connection, but with Java (why they would be testing applets on a PC with no internet connection, I am not sure - but the option is there).
    "I know that .jar and .exe files are out because I always get errors and I do not like their interfaces. "
    What on earth are you talking about? Once the app. is on-screen, the end user would not be able to distinguish between
    1) A Jar launched using a manifest.
    2) A Jar launched using webstart.
    3) Loose class files.
    Your fixation on .bat files sounds much like the adage that 'If the only tool you have is a hammer, every job starts to look like a nail'.
    Get over them, will you? +Using .bat files is not a practical way to provide a Java app. to the end user+ (and launching an app. from a .bat looks quite crappy and 'second hand' to +this+ user).
    Edit 1:
    The instructions for running Appleteer as a Jar are further up the page, in the [Running Appleteer: Application|http://pscode.org/appleteer/#application] section.
    Edited by: AndrewThompson64 on May 19, 2009 12:06 PM

  • Packaging icon not showing up

    All I have this in our ANT file
    <fx:info id="inforef" title="${application.title}" vendor="${application.vendor.name}" >
    <fx:icon href="${src.dir}/main/resources/icon_files/application.ico" />
    <fx:splash href="http://www.celer-tech.com/images/logo_with_shadow.png"/>
    </fx:info>
    but when the installer is created the default java icon is show on the executable. And the installer screens all have the Java icon. How do I fix this?
    And will you be able to put information in the installer screens like text?

    I got a custom icon to display in a bundled app :-)
    Not sure of the exact set of magic incantations I performed to make it happen, but it was something like this:
    1. the <fx:icon href="location"/> seemed to be unused with respect to bundling (maybe it is used in webstart packaging or something - or maybe it is planned to be used in bundling in the future and is just not implemented - or maybe I couldn't work out the right way to specify the location).
    2. the app seems to look for an icon in the location Gerhard points out => package/windows/XXX.ico
    3. the build.xml file for Ensemble (2.2b17 example) has a note in it: note that for native package customizations to work: jfx-impl.xml have to include "." on classpath when it loads javafx ant tasks (search for taskdef). NOTE: if NB converted project file to the newer format then you may need to correct taskdef in the nbproject/jfx-impl.xml - simply add ".:" in front of classpath value
    4. I was using a NetBeans 7.2 preview and it did convert the file so I added the .: to the path in jfx-impl.xml as the note in Ensemble said.
    5. Ensemble sample had a file in package/windows/ensemble2.ico
    6. However, when I ran the build fx:deploy task with an verbose="true" attributed, it reported that it was looking for package/windows/ensemble.ico
    7. No idea how the build knew that the name of the icon should be ensemble.ico.
    8. So I renamed package/windows/ensemble2.ico to package/windows/ensemble.ico
    9. Then I reran the ant task and it packaged the ensemble app with a little toaster icon for the install exe rather than the default icon.
    10. It wasn't perfect as there is another icon displayed on the installer window which was still a default app icon, but perhaps you also need to set the [setup dialog icon] (add package/windows/XXX-setup-icon.bmp to the class path to customize) Gerhard also pointed out (didn't try that).
    11. I'm going to guess that the last file which Gerhard points out (the .iss one) is an InnoSetup script as documented in the Inno Setup Help http://www.jrsoftware.org/ishelp/ and is the thing which allows you to change dialog wordings, text and languages - customizing the setup installer as you see fit (but that is just a guess at this stage - haven't done enough investigation to confirm).

Maybe you are looking for