Generate a JAR to JavaFX

Hello,
I wanna generate a JAR with JavaFX class. How can I do it? Will this JAR run in JRE? Someone knows some tutorial?
Thanks a lot!

I think you can find answers (or part of them) in [How to package the JavaFx application|http://forums.sun.com/thread.jspa?threadID=5365358] and [Distribution JavaFX application without web start|http://forums.sun.com/thread.jspa?threadID=5367483].

Similar Messages

  • Ojdeploy sometimes generates invalid JARs

    We've encountered the following problem: sometimes ojdeploy (called via ant task) generates invalid JARs for some projects in the workspace. Invalid means they have a size less the 1KB, there may be only META-INF\manifest.mf and no classes at all inside that JAR, or there may be some (not all) classes. And consequently the whole build fails because of "package blah-blah-blah does not exist" etc.
    Here's the bit of example from the failed build (some parts of the log are obscured and skipped):
         [exec] 13.04.2011 17:31:48 oracle.ide.boot.Launcher throttleLocale
         [exec] INFO: Locale ru_RU is not supported by this product. Forcing locale to en_US.
         [exec] ----build file----
         [exec] <?xml version = '1.0' standalone = 'yes'?>
         [exec] <ojdeploy-build>
         [exec]     <deploy>
         [exec]         <parameter name="workspace" value="${workspace}\"/>
         [exec]         <parameter name="project" value="${project}"/>
         [exec]     </deploy>
         [exec]   <defaults>
         [exec]     <variable name="workspace" value="our workspace"/>
         [exec]     <variable name="project" value="BlahBlahBlah"/>
         [exec]     <parameter name="buildfile" value="our buildfile"/>
         [exec]     <parameter name="profile" value="*"/>
         [exec]     <parameter name="clean"/>
         [exec]   </defaults>
         [exec] </ojdeploy-build>
         [exec] ------------------
    ... skipped ...
         [exec] [5:32:00 PM] Clean completed.
         [exec] Compiling...
         [exec] Context: selection=BlahBlahBlah.jpr application=BlahBlahBlah.jws project=BlahBlahBlah.jpr node=BlahBlahBlah.jpr
         [exec]
         [exec] C:\Oracle\Middleware\jdk160_14_R27.6.5-32\bin\javac
         [exec] -g
         [exec] -Xlint:all
    ... skipped ...    
         [exec] Compiling 4 sources
         [exec]   Compiling ...Logger.java
         [exec]   Compiling ...SystemOutHandler.java
         [exec]   Compiling ...LogFormatter.java
         [exec]   Compiling ...LoggerFactory.java
         [exec]   Writing ...Logger$CSIntFormatter.class
         [exec]   Writing ...Logger.class
         [exec] Apr 13, 2011 5:32:02 PM oracle.jdevimpl.deploy.common.ModulePackagerImpl deployProfiles
         [exec] INFO: Deploying profile...
         [exec]
         [exec] Apr 13, 2011 5:32:02 PM oracle.jdeveloper.deploy.jar.ArchiveDeployer logFileWritten
         [exec] INFO: Wrote Archive Module to file:/...Logging.jar
         [exec] Apr 13, 2011 5:32:02 PM oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl$DeployConsoleLogger finished
         [exec] INFO: Elapsed time for deployment:  2 seconds
         [exec]
         [exec] Apr 13, 2011 5:32:02 PM oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl$DeployConsoleLogger finished
         [exec] INFO: ----  Deployment finished.  ----
         [exec]
         [exec]   Writing ...SystemOutHandler.class
         [exec]   Writing ...LogFormatter.class
         [exec]   Writing ...LoggerFactory.class
         [exec] [5:32:02 PM] Successful compilation: 0 errors, 0 warnings.BTW, I've noticed one strange thing while writing this. I see that ojdeploy says " Deploying profile... Wrote Archive Module to file:/...Logging.jar..." and <b>AFTER having created the JAR</b> it says "Writing ...SystemOutHandler.class Writing ...LogFormatter.class Writing ...LoggerFactory.class"
    Has anyone encountered such strange behavior of ojdeploy?

    (kinda bump)
    I haven't mentioned that we use JDeveloper 11.1.1.2

  • Wsdlc generated ***_wsdl.jar creates referred xsds outside the jar

    Hi All,
    I am using wsdlc to generate ***_wsdl.jar and having some problems.
    This is my wsdl/ types structure:
    --resources
    |--schemas
    | |--1.0
    | | |--TypeOneDto.xsd
    | | |--TypeTwoDto.xsd
    |--services
    | |--service_name
    | | |--ServiceDto.xsd
    | | |--Service.wsdl
    Service.wsdl refers ServiceDto.xsd
    ServiceDto.xsd refers TypeOneDto.xsd and TypeTwoDto.xsd
    This is how I use wsdlc:
    <wsdlc srcWsdl="resources/services/service_name/Service.wsdl"
                   destJwsDir="target/jws"
                   destImplDir="target/impl"
                   verbose="true">
         </wsdlc>
    When Service_wsdl.jar is generated in target/jws, it has only Service.wsdl and ServiceDto.xsd under its wsdls/ directory. TypeOneDto.xsd and TypeTwoDto.xsd are created outside Service_wsdl.jar, in a separate directory (i.e. target/schemas/)
    Can someone please give me a tip on how to get all the Type*.xsds in to Service_wsdl.jar?
    Thanks a lot in advance.

    Here is an example how I use exe4j :
    1. Welcome: Next
    2. Project type: Next
    3. Application      Info:
    Short name of your application:
    any name you like
    for example: testjar
    Distribution source directory:
    project folder
    for example: C:\Documents and Settings\Uhres Andr�\NetBeansProjects\TestJar
    Next
    4. Executable Info:
    Executable name:
    any name you like
    for example: TestJar
    Next
    5. Java invocation:
    Class path:
    the path to your jar file
    for example: .\dist\TestJar.jar
    Main class:
    after you specified "Class path", what you just did,
    you only have to click on ... to discover the project's main classes.
    Select the class that should start first and click "OK"
    for example: jardemo.TestJar
    Next
    6. JRE:
    Java version:
    Minimum version: 1.5
    Advanced options: Search sequence
    +
    Directory
    ..\..\..\..\Program Files\Java\jdk1.5.0_03
    select it and move to top using arrow button
    Next
    Preferred VM: Next
    7. Splash screen:
    General: Show slpash screen
    select any image file you like
    for example: C:\Program Files\Java\jdk1.5.0_03\jre\lib\images\cursors\win32_MoveDrop32x32.gif
    Finish
    Finished:
    Click here to start the application
    Exit
    Yes
    type any name for your executable (for example: TestJar)
    Save
    an information message tells you where the exe4j file is placed
    for example: C:\Documents and Settings\Uhres Andr�\NetBeansProjects\TestJar\TestJar.exe4j
    The same folder contains your exe file (for execution outside of NetBeans)

  • How can I generate a JAR file like SwingSet2.jar (jdk1.3)

    I need to generate a JAR file like SwingSet2.jar (jdk1.3). I mean when I give a double click in a JAR file, it opens my application.

    You want to make en executable JAR file. You can read how to do this in the JAR files forum.

  • Unable to generate runnable jar

    I have a Eclipse project with the latest JDK and JavaFX setup. The project runs fine in Eclipse, when I run through the "RUN" button, but when I try to export it as a runnable jar it gives me a NullPointerException, below is the stack trace.
    Exception in Application start method
    Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
    Caused by: java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:403)
    at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: java.lang.NullPointerException
    at controllers.Main.start(Main.java:183)
    at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
    at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:206)
    at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
    at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
    ... 1 more
    I've tried using the javafxpackager tool to create a jar as well, with the following command line:
    javafxpackager -createjar -appclass controllers.Main -srcdir bin -classpath lib/*.jar -outdir dist -outfile M1000_software -v
    but then I receive an error
    This application requires a newer version of the Java runtime. Please download and install the latest Java runtime from java.com. Then restart the application.
    Any help would be appreciated.

    Hi,
    Do you have a main method that launchs you Application class?
    You can also try this ant script (very simple one) I used for generating a runnable JAR with IntelliJ IDEA: http://thierrywasyl.wordpress.com/2012/12/07/build-javafx-runnable-jar-with-intellij-idea-and-ant/
    Hope it helps

  • Auto-generated executable jar not working properly

    Hi all,
    I have a desktop application. that I can run it from Netbeans with all its functionalities but when I click the generated jar file the application run wel but some of its functionalities was not working.
    Any idea ...
    Thank you in advance

    Yousef_Aqarbeh wrote:
    I have a desktop application. that I can run it from Netbeans with all its functionalities but when I click the generated jar file the application run wel but some of its functionalities was not working.Possibly you have not added your resources to the Jar file or are trying to get these resources as files, and files don't exist inside of Jars (AFAIK).
    Any idea ...For more help, better help, and helpful help, create a [Short, Self Contained, Correct (Compilable), Example|http://sscce.org] or SSCCE. This is a small program that compiles, runs, demonstrates your problem, and contains no extraneous code. Please read the link, and have a go at it. Best of luck.

  • [J2ME Polish] How to generate jad/jar for all devices?

    Hello,
    I've developed a J2ME Polish application using Netbeans 6.1 as IDE.
    Now I'd like to generate the corresponding jad/jar for all the existing devices. How can I do that?
    Furthermore, as soon as I'll have generated all these jar/jad, I'd like to put them all in a Web directory in order to make each device able to download the jad/jar corresponding to its configuration. How can I switch a given device towards the appropriate jad/jar in this Web directory?
    Help me please, I'm really confused!
    Thanks you in advance.
    /arkienou

    Even though JDK1.4 is not officially shipping the
    Java Plugin 1.4 documents on Security are fairly
    good. Check out :
    http://java.sun.com:80/j2se/1.4/docs/guide/plugin/developer_guide/contents.html
    http://java.sun.com:80/j2se/1.4/docs/guide/plugin/developer_guide/rsa_how.html
    regards,
    atsSun
    Sun Microsystems

  • Appc generate ejb.jar error

    Hi
    I tried weblogic.appc (WL8 sp2) to generate a very simple stateless ejb, it
    has warings when compiling:
    java weblogic.appc trader.jarE:\Tmp\appcgen\statelessSession_mt9oui_HomeImpl.java:43: warning:
    non-varargs call of varargs method with
    inexact argument type for last parameter;
    cast to java.lang.Class for a varargs call
    cast to java.lang.Class[] for a non-varargs call and to suppress this
    warning
    "ejbCreate", null);
    ^
    E:\Tmp\appcgen\statelessSession_mt9oui_HomeImpl.java:47: warning:
    non-varargs call of varargs method with
    inexact argument type for last parameter;
    cast to java.lang.Class for a varargs call
    cast to java.lang.Class[] for a non-varargs call and to suppress this
    warning
    "ejbPostCreate", null);
    ^
    2 warnings
    then, when deploying it via WL console, it has exceptions:
    Exception:weblogic.management.ApplicationException: prepare failed for
    trader Module: trader Error: Exception preparing module:
    EJBModule(trader,status=NEW) Unable to deploy EJB: statelessSession from
    trader.jar: java.lang.AssertionError: Unable to find expected methods.
    Please check your classpath for stale versions of your ejb classes and
    re-run weblogic.ejbc at
    statelessSession_mt9oui_HomeImpl.<clinit>(statelessSession_mt9oui_HomeImpl.j
    ava:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method) at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
    sorImpl.java:39) at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
    torAccessorImpl.java:27) at
    java.lang.reflect.Constructor.newInstance(Constructor.java:274) at
    java.lang.Class.newInstance0(Class.java:306) at
    java.lang.Class.newInstance(Class.java:259) at
    weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInf
    oImpl.java:974) at
    weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:983) at
    weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1283) at
    weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477) at
    weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContaine
    r.java:29
    Can any help?
    Thanks
    John woo
    Toronto

    John,
    "John Woo" <[email protected]> wrote in message news:[email protected]...
    Thanks lots, Slava .
    U r right, now instead of using javac, I'm using jikes, which is good for
    all jdk.The problem is that your Java runtime may be still 1.5, so you may get other
    strange errors. I don't think you will need 1.5 for a while, at least to develop
    apps under weblogic. You may want to review your environment settings.
    HTH.
    Regards,
    Slava Imeshev
    >
    >
    >
    >
    John Woo
    Toronto
    "Slava Imeshev" <[email protected]> wrote in message
    news:[email protected]...
    Hi John,
    Make sure that you are using JDK 1.4.2, not 1.5.x. You may know your javaversion by
    running this command:
    java -version
    Hope this helps.
    Regards,
    Slava Imeshev
    "John Woo" <[email protected]> wrote in message
    news:[email protected]...
    Hi
    I tried weblogic.appc (WL8 sp2) to generate a very simple statelessejb, it
    has warings when compiling:
    java weblogic.appc trader.jarE:\Tmp\appcgen\statelessSession_mt9oui_HomeImpl.java:43: warning:
    non-varargs call of varargs method with
    inexact argument type for last parameter;
    cast to java.lang.Class for a varargs call
    cast to java.lang.Class[] for a non-varargs call and to suppress this
    warning
    "ejbCreate", null);
    ^
    E:\Tmp\appcgen\statelessSession_mt9oui_HomeImpl.java:47: warning:
    non-varargs call of varargs method with
    inexact argument type for last parameter;
    cast to java.lang.Class for a varargs call
    cast to java.lang.Class[] for a non-varargs call and to suppress this
    warning
    "ejbPostCreate", null);
    ^
    2 warnings
    then, when deploying it via WL console, it has exceptions:
    Exception:weblogic.management.ApplicationException: prepare failed for
    trader Module: trader Error: Exception preparing module:
    EJBModule(trader,status=NEW) Unable to deploy EJB: statelessSession from
    trader.jar: java.lang.AssertionError: Unable to find expected methods.
    Please check your classpath for stale versions of your ejb classes and
    re-run weblogic.ejbc at
    statelessSession_mt9oui_HomeImpl.<clinit>(statelessSession_mt9oui_HomeImpl.j
    ava:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method) at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
    sorImpl.java:39) at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
    torAccessorImpl.java:27) at
    java.lang.reflect.Constructor.newInstance(Constructor.java:274) at
    java.lang.Class.newInstance0(Class.java:306) at
    java.lang.Class.newInstance(Class.java:259) at
    weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInf
    oImpl.java:974) at
    weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:983)at
    weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1283) at
    weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477) at
    weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContaine
    r.java:29
    Can any help?
    Thanks
    John woo
    Toronto

  • How to generate webServicesEjb_client.jar's files

    Hi, I would like compile (maybe generate) all the files include in webServicesEjb_client.jar.
    I use the ant task:
    <project name="buildWebservice" default="ear">
    <target name="ear">
         <servicegen
         destEar="./deploy/medrecEar.ear"
         warName="ws_medrec.war"
         contextURI="ws_medrec">
              <service
                   ejbJar="./deploy/webServicesEjb.jar"
                   targetNamespace="http://localhost:7101/ws_medrec/MedRecWebServices"
                   serviceName="MedRecWebServices"
                   serviceURI="/MedRecWebServices"
                   generateTypes="True"
                   expandMethods="True"
                   style="rpc" >
              </service>
         </servicegen>
    </target>
    </project>
    This ant task generate file like: AddressWS, AddressWSCodec, AddressWSHolder but file like MedRecWebServicesPort.class are not present!
    Thank

    Sorry I don't read all the tutorial:
    Tutorial 12-Procedure 1-step3 a ant task generate it!
    Stef-âne

  • Impossibile to generate wlfullclient.jar

    Hi Guys, i'm trying to generate the "wlfullclient.jar" through those steps:
    1) cd /Users/fabrizio/mywls/wls12120/wlserver/server/lib (i'm on Mac OSX)
    2) java -jar ../../modules/com.bea.core.jarbuilder_2.1.0.0.jar
    but here is the output:
    java.io.FileNotFoundException: /Users/fabrizio/mywls/wls12120/wlserver/server/lib/weblogic-classes.jar
      at com.bea.jarbuilder.internal.CompositeJar.<init>(CompositeJar.java:69)
      at com.bea.jarbuilder.JarBuilder.createJar(JarBuilder.java:165)
      at com.bea.jarbuilder.JarBuilder.main(JarBuilder.java:53)
    Error creating target jar
    I did a lot of research on google for days but without positive results!
    Can anyone help me?
    Thanks for your attention!
    Fabrizio

    Follow the below link for generating a wlfullclient.jar file
    http://docs.oracle.com/cd/E23943_01/web.1111/e13717/jarbuilder.htm#BABCGHFH

  • Creating a manifest.mf when generating a jar file.

    First post ever using java and its probable really simple. I've basically been chucked in at the deep end of a java app. I've had to reverse engineer it and I'm at the following stage:-
    I'm rebuilding the project to create my jar file and I'd like to
    1)get a list of all the files of the project within my manifest.mf
    2)Digitally sign the files as well, which from what I've read create a *.DSA and *.SF file. The manifest would then have to contain the checksums (SHA1-Digest)
    Now I've been playing for a few hours trying to get the manifest to produce the list of files, but with no success all I get is teh default.
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.5
    Created-By: 1.5.0_12-b04 (Sun Microsystems Inc.)Any ideas on what I'm missing.
    Thanks for any help it will be greatly appricated by a newb with 0% java experience
    (taking me a few days to sort out a Ubuntu server to serve the Java apps, but thats working sweet as :D)

    got it all working in the end.
    Used the following within the jdk/bin folder
    keytool - to create a cert
    jar - to create the jar file
    jarsigner - to create the manifest and sign the files.
    I created a load of bat files to do the job.
    Now onto the next problem of compiling the java files into class's

  • Re: Impossibile to generate wlfullclient.jar

    Following those instructions results in FileNotFoundException being thrown for missing file:  weblogic-classes.jar
    Since Weblogic is one of the FEW servers supported by Netbeans I really would like to get it going so that I can learn how to use remote EBJs.
    Please fix the distribution of weblogic for the missing files (so that wlfullclient.jar will build) and let us download again.
    Thanks.

    No problem here
    C:\bea\weblogic10.3.6\installation\wlserver_10.3\server\bin>setWLSEnv.cmd
    CLASSPATH="C:\bea\WEBLOG~1.6\INSTAL~1\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\WE
    BLOG~1.6\INSTAL~1\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\JROCKI~1.0\lib\tools.ja
    r;C:\bea\WEBLOG~1.6\INSTAL~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\bea\WEBLOG~1.6\INSTAL~1\WLSERV~1.3\server\lib\webl
    ogic.jar;C:\bea\WEBLOG~1.6\INSTAL~1\modules\features\weblogic.server.modules_10.3.6.0.jar;C:\bea\WEBLOG~1.6\INSTAL~1\WLS
    ERV~1.3\server\lib\webservices.jar;C:\bea\WEBLOG~1.6\INSTAL~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\bea\WEBLOG~1.6\INSTA
    L~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;"
    PATH="C:\bea\WEBLOG~1.6\INSTAL~1\patch_wls1036\profiles\default\native;C:\bea\WEBLOG~1.6\INSTAL~1\patch_ocp371\profiles\
    default\native;C:\bea\WEBLOG~1.6\INSTAL~1\WLSERV~1.3\server\native\win\32;C:\bea\WEBLOG~1.6\INSTAL~1\WLSERV~1.3\server\b
    in;C:\bea\WEBLOG~1.6\INSTAL~1\modules\ORGAPA~1.1\bin;C:\bea\JROCKI~1.0\jre\bin;C:\bea\JROCKI~1.0\bin;c:\oracle\product\1
    1.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;;
    C:\Program Files (x86)\Java\jdk1.6.0_21\bin;C:\bea\WEBLOG~1.6\INSTAL~1\WLSERV~1.3\server\native\win\32\oci920_8"
    Your environment has been set.
    C:\bea\weblogic10.3.6\installation\wlserver_10.3\server\bin>cd ..\lib
    C:\bea\weblogic10.3.6\installation\wlserver_10.3\server\lib>java -jar wljarbuilder.jar
    Integrating jar -->(1)/(37265)/C:\bea\weblogic10.3.6\installation\modules\com.bea.core.http.pubsub.mbean_1.7.0.0.jar
    Integrating jar <--(1)/(37269)/(4)/C:\bea\weblogic10.3.6\installation\modules\com.bea.core.http.pubsub.mbean_1.7.0.0.jar
    Integrating jar -->(1)/(37269)/C:\bea\weblogic10.3.6\installation\modules\com.bea.core.diagnostics.accessor_1.5.0.0.jar
    Integrating jar <--(1)/(37365)/(96)/C:\bea\weblogic10.3.6\installation\modules\com.bea.core.diagnostics.accessor_1.5.0.0.jar
    Created new jar file: C:\bea\weblogic10.3.6\installation\wlserver_10.3\server\lib\wlfullclient.jar
    Version is WebLogic 10.3.6, and used the documentation provided here: Using the WebLogic JarBuilder Tool - 11g Release 1 (10.3.6)

  • How to run JavaFX jar with JRE7 on MAC OS Lion 10.7.5 ?

    I have created a bundled JavaFX application jar with ANT on Windows 8 O.S. , 64 bit machine. I have JavaFx2.0 and Java 1.7.0_09 installed on my Window O.S.
    <target name="CreatingJars" depends="Compiling" description="generate the distribution" >
                        <taskdef resource="com/sun/javafx/tools/ant/antlib.xml"     
                                 uri="javafx:com.sun.javafx.tools.ant" classpath="${env.JAVA_HOME}/lib/ant-javafx.jar"/>
                              <mkdir dir="${WorkingFolder}/temp/libs"/>
                             <copy todir="${WorkingFolder}/temp/libs">
                             <fileset file="${WorkingFolder}/CustomJars/ProjectLib.jar">
                             </fileset>
                             </copy>
                             <copy todir="${WorkingFolder}/temp/libs">
                             <fileset dir="${WorkingFolder}/libs">
                             </fileset>
                        </copy>
                        <fx:jar destfile="${WorkingFolder}/${app.name}.jar">
                        <fx:application mainClass="${main.class}"/>
                        <fx:resources>
                             <fx:fileset dir="${WorkingFolder}/temp/"/>
                        </fx:resources>
                        <fileset dir="${WorkingFolder}/build"/>
                        <fileset dir="${WorkingFolder}/resources"/>
                        </fx:jar>
         </target> When I am trying to run that JavaFX application jar on MAC OS Lion 10.7.5 using
    java -jar application.jar
    It always shows a dialog "The application require a newer version of Java Run-time" with download link. Even I have downloaded and successfully installed it on my MAC machine but it still shows me the same window.
    java -version is always point to 1.6.
    Then I searched for Java Preferences to point the current JRE 1.7 but I could find Java Preferences at Applications -> Utilities -> Java -> Java Preferences.
    I would like to know -- how to run JavaFX jar with JRE7 on MAC OS Lion 10.7.5? Is their any other way to run the JavaFX application JAR with JRE7?

    Do I need to download the whole JAVA 1.7 on MAC to run the JAR? No
    Can not I run the Jar file with Jre7?Yes, you can.
    This may be because I have downloaded the JRE 1.7Yep, that's correct, the java_home command only works for jdk's - sorry for the confusion.
    For jre7+ versions, only a single Oracle jre version is allowed to be installed on the machine at a time - making a tool like java_home redundant for jre checking.
    Weirdly, jre7u10 does not supplant the Apple Java on the command line path by default. If you just type java -v, then the Apple java version will displayed if you have an old Java 6 from Apple and a new Oracle jre7+.
    The Oracle jre is always located under (also somewhat strangely):
    /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaTo test jar launching, I used the willow JavaFX browser pre-release jar available here:
    http://code.google.com/p/willow-browser/downloads/detail?name=Willow-0.1-prerelease.jar
    Then I launched the jar from the command line using:
    /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -jar Willow-0.1-prerelease.jar The JavaFX jar ran fine on jre7 with the above machine.
    The test machine was running Mac OS X 8 with Oracle jre7u10 installed as well as the Apple Java 6 runtime, but no Oracle jdk7+ installed.

  • Error Running javafx app by jnlp at browser : CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/Tedros-Core-EjbClient.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:13 BRST 2013,length=5185

    Some one can help me with this issue?
    i using netbeans 7.4 to generate and start my javafx application, the application works fine running on desktop but when i try run in chrome/firefox or ie browser i have the erros below.
    ps: all jar are signed and all permissions are granted.
    Thanks a lot!
    Davis
    Plug-in 10.45.2.18 do Java
    Usando a versão do JRE 1.7.0_45-b18 Java HotSpot(TM) Client VM
    Diretório home do usuário = C:\Users\Davis Gordon
    c:   limpar janela da console
    f:   concluir objetos da fila de finalização
    g:   coleta de lixo
    h:   exibir esta mensagem de ajuda
    l:   descartar lista de carregadores de classes
    m:   imprimir uso de memória
    o:   log do trigger
    q:   ocultar console
    r:   recarregar configuração da política
    s:   descartar propriedades do sistema e de implantação
    t:   descartar lista de threads
    v:   descartar pilha de threads
    x:   limpar cache do carregador de classes
    0-5: definir nível de rastreamento como <n>
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/Tedros-Core-EjbClient.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:13 BRST 2013,length=5185
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/Tedros-App-API.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:13 BRST 2013,length=116706
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/App-Painel-Controle.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:13 BRST 2013,length=141981
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/Tedros-Box.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:13 BRST 2013,length=200921
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/Tedros-Core-Model.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:13 BRST 2013,length=47516
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/Tedros-Core.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:13 BRST 2013,length=108000
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/Tedros-DataAccess-Model-API.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:13 BRST 2013,length=13588
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/Tedros-DataAccess-Server-API.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:13 BRST 2013,length=32124
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/Tedros-Exception.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:13 BRST 2013,length=2624
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/Tedros-Util.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:14 BRST 2013,length=15348
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/Tedros-FXComponents.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:14 BRST 2013,length=282972
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/commons-collections-3.2.1.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:14 BRST 2013,length=583672
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/eclipselink-jpa-modelgen_2.4.1.v20121003-ad44345.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:14 BRST 2013,length=12387
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/commons-lang3-3.1.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:14 BRST 2013,length=319222
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/javax.persistence_2.0.4.v201112161009.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:20 BRST 2013,length=128747
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/jfxrt.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:23 BRST 2013,length=15117378
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/openejb-client-4.5.2.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:23 BRST 2013,length=318492
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/javaee-api-6.0-5.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:20 BRST 2013,length=989597
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/org.eclipse.persistence.jpars.source_2.4.1.v20121003-ad44345.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:23 BRST 2013,length=65144
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/spring-beans-3.0.7.RELEASE.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:23 BRST 2013,length=563508
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/org.eclipse.persistence.jpars_2.4.1.v20121003-ad44345.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:23 BRST 2013,length=93694
    CacheEntry[file:/C:/Desenv/Projetos/workspace_beta02/Tedros-Box/dist/lib/eclipselink.jar]: updateAvailable=false,lastModified=Thu Dec 12 20:23:19 BRST 2013,length=8449501
    JNLP
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="Tedros-Box.jnlp">
      <information>
        <title>Tedros-Box</title>
        <vendor>Davis Gordon</vendor>
        <description>null</description>
        <offline-allowed/>
      </information>
      <resources>
        <jfx:javafx-runtime version="2.2+" href="http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp"/>
      </resources>
      <resources>
        <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
        <jar href="Tedros-Box.jar" size="200921" download="eager" />
        <jar href="lib/App-Painel-Controle.jar" size="141981" download="eager" />
        <jar href="lib/Tedros-App-API.jar" size="116706" download="eager" />
        <jar href="lib/Tedros-Core-EjbClient.jar" size="5185" download="eager" />
        <jar href="lib/Tedros-Core-Model.jar" size="47516" download="eager" />
        <jar href="lib/Tedros-Core.jar" size="108000" download="eager" />
        <jar href="lib/Tedros-DataAccess-Model-API.jar" size="13588" download="eager" />
        <jar href="lib/Tedros-DataAccess-Server-API.jar" size="32124" download="eager" />
        <jar href="lib/Tedros-Exception.jar" size="2624" download="eager" />
        <jar href="lib/Tedros-FXComponents.jar" size="282972" download="eager" />
        <jar href="lib/Tedros-Util.jar" size="15348" download="eager" />
        <jar href="lib/commons-collections-3.2.1.jar" size="583672" download="eager" />
        <jar href="lib/commons-lang3-3.1.jar" size="319222" download="eager" />
        <jar href="lib/eclipselink-jpa-modelgen_2.4.1.v20121003-ad44345.jar" size="12387" download="eager" />
        <jar href="lib/eclipselink.jar" size="8449501" download="eager" />
        <jar href="lib/javaee-api-6.0-5.jar" size="989597" download="eager" />
        <jar href="lib/javax.persistence_2.0.4.v201112161009.jar" size="128747" download="eager" />
        <jar href="lib/jfxrt.jar" size="15117378" download="eager" />
        <jar href="lib/openejb-client-4.5.2.jar" size="318492" download="eager" />
        <jar href="lib/org.eclipse.persistence.jpars.source_2.4.1.v20121003-ad44345.jar" size="65144" download="eager" />
        <jar href="lib/org.eclipse.persistence.jpars_2.4.1.v20121003-ad44345.jar" size="93694" download="eager" />
        <jar href="lib/spring-beans-3.0.7.RELEASE.jar" size="563508" download="eager" />
      </resources>
    <security>
      <all-permissions/>
    </security>
      <applet-desc  width="1280" height="760" main-class="com.javafx.main.NoJavaFXFallback"  name="Tedros-Box" >
        <param name="requiredFXVersion" value="2.2+"/>
      </applet-desc>
      <jfx:javafx-desc  width="1280" height="760" main-class="com.tedros.Tedros"  name="Tedros-Box" />
      <update check="always" policy="always"/>
    </jnlp>

    I could be wrong, but I don't think these aren't errors. These are just telling you where your jar files are coming from. In your case, they are coming from cached entries. You probably want to clear your cache. I do this by running javaws -uninstall and then javaws -clearcache

  • Error while generating JAR using adadmin

    Hi all,
    EBS Version: R12.1.1
    I am in the middle of migrating the EBS from windows 2003-32bit to Linux 5-64Bit.
    I am getting the below error while generating the JAR files using adadmin.
    Error generated in adadmin
    Signing product JAR files in  JAVA_TOP -
      /u01/appltest/TEST/apps/apps_st/comn/java/classes
       using entity TEST_vm1213l and certificate 1.
    Successfully created javaVersionFile.
    Generating product JAR files in JAVA_TOP -
      /u01/appltest/TEST/apps/apps_st/comn/java/classes with command:
    adjava -mx512m -nojit oracle.apps.ad.jri.adjmx @/u01/appltest/TEST/apps/apps_st/appl/admin/TEST/out/genjars.cmd
    Failed to generate product JAR files in JAVA_TOP -
       /u01/appltest/TEST/apps/apps_st/comn/java/classes.
    adogjf() Unable to generate jar files under JAVA_TOP
    Backing up restart files, if any......Done.
    You should check the file
    /u01/appltest/TEST/apps/apps_st/appl/admin/TEST/log/gen_jar.log
    for errors.
    Entries from gen_jar.log
    Reading language information from applUS.txt ...
      Temporarily resetting CLASSPATH to:
      "/u01/appltest/TEST/apps/apps_st/appl/ad/12.0.0/java/adjava.zip:/u01/appltest/TEST/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/u01/appltest/TEST/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/u01/appltest/TEST/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/u01/appltest/TEST/apps/apps_st/comn/java/lib/appsborg.zip:/u01/appltest/TEST/apps/tech_st/10.1.2/forms/java:/u01/appltest/TEST/apps/tech_st/10.1.2/forms/java/frmall.jar:/u01/appltest/TEST/apps/tech_st/10.1.2/jlib/ewt3.jar:/u01/appltest/TEST/apps/tech_st/10.1.2/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar:/u01/appltest/TEST/apps/apps_st/comn/java/classes"
      Calling /u01/appltest/TEST/apps/tech_st/10.1.3/appsutil/jdk/jre/bin/java ...
    The JDK version is 1.6.0_10
    Validating the files/directories specified for -areas option
    ERROR: File/directory 61A9A14779A1A8 does not exist
    ERROR: File/directory -keyPass does not exist
    ERROR: File/directory AA65D2F9B26DDBABEF33 does not exist
    ERROR: File/directory -storePass does not exist
    ERROR: File/directory -keysEncrypted does not exist
    Validating the files/directories specified for -outputSpec option
    Validating the directory specified for -lstDir option
    Error(s) have occurred; exiting with status 1
    Failed to generate product JAR files in JAVA_TOP -
       /u01/appltest/TEST/apps/apps_st/comn/java/classes.
    Kindly provide some inputs to troubleshoot further.
    If you need further details, kindly let me know.
    Regards,
    Krish.

    Hi all,
    I have applied the consolidated JRI fixes - patch 17191279 .
    Then, when generating Jar, received keypass is tampered error.
    re-generated the key using $ adjkey -initialize.
    Now, its working fine.
    Regards,
    Krish.

Maybe you are looking for

  • Verbose Boot. How to get rid of it?

    My Mac Pro boots with a bunch of what look like Unix line-items showing in white monospaced text on surround lines of black. How did I do that? How do I turn them off? At one point it seems to be saying that it is in dev mode with a "verbose boot."

  • Connecting to an LG BD370

    Here's what I have: an Airport Express and the BD370 Blu-Ray player, which I'd like to connect to the internet for Netflix streaming, but is not wireless. What are my options here? Do I have to purchase a new router with available ports? Any help wou

  • Financial Reporting Reports Formatted Differently in PDF

    Hello all - I am working in a 11.1.2.1 environment. When I view Financial Reporting Studio reports in HTML, they appear formatted as I expect them to. When I view the same reports in PDF, it seems to drop any bolding or italicizing I do on the header

  • User Defined classes HW

    Ok so I have a project due monday. It requires me to make two classes one that creates an object with the following attributes name,position,rate,hours. And another that tests the first class by constructing 5 objects with different values for each a

  • HT2292 Original iPad - how to update operating system

    I'd like to update the operating system on my original iPad. I just don't have the options on my screen that every tutorial I've seen shows. What do I do? I'm so so so frustrated and am to the point where I never want to own an Apple product again. I