Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9065629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:33:07+00:00 2026-06-16T16:33:07+00:00

I have created a bundled JavaFX application jar with ANT on Windows 8 O.S.

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T16:33:08+00:00Added an answer on June 16, 2026 at 4:33 pm

    See related forum post.

    To run the app for the latest installed Oracle jre version:

    /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -jar application.jar
    

    To run the app for a given installed jdk version:

    export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
    java -jar application.jar
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a JavaFX application, I have built native bundle using Ant ,
I have created a java application and many users use it. I have bundled
I have created Java FX bundle for Mac OS X using Ant. It creating
I have successfully created an app that reads from a bundled .plist file and
I have created a JSP / servlets application running in Tomcat 7. It runs
I have created an android application that calls (using kSOAP library) a SOAP based
I have a android webservice client application. I am trying to use the java
CocoaPods question: I have created a framework bundled with a static library inside, depending
I have created a Java app (deployed by Java Web Start) which needs to
I have an application that will initially be downloaded and installed by the user.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.