Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091223

[Packager] Wrong Name in About on OSX in self-contained application

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 7u6
    • Fix Version/s: None
    • Component/s: deploy
    • Environment:

      osx 10.8.5, packaging jre-1.7.0_45 and javaFX-2.2.45

      Description

      2.2.45 JavaFX Packager creates standalone applications for osx with the wrong application name in the System Menu bar at the top of the screen, in the process list, and Force Quit.

      javafx applications identify them selves as 'java' no matter what Title is set to.
      swing applications identify them selves as 'Main' no matter what Title is set to.

      Even the samples do this: javafx-samples-2.2.45

      Using JavaFX Packager, I created a self-contained application for Osx, named MyProgram.app, yet when I click on the Apple menu at the top of the screen, under "MyProgram" it says "About Main". "Activity Monitor" calls the program "Main", though the Icon is my custom icon. My program is a swing application.

      I don't want it to say "Main"

      How do I replace "Main" with "MyProgram"?

      This is my ant task to create the self-contained application for Osx:
         <!-- <fx:deploy nativeBundles set to "all" or "image" -->
         <fx:deploy nativeBundles="image"
                      width="100" height="100"
                      outdir="native-packages"
                      outfile="MyProgram"
                      offlineAllowed="true"
                      updatemode="background"
                      embedjnlp="true"
                      verbose="true"
         >
               <fx:info
                   title="MyProgram"
                   vendor="Foo Software"
                   license="EULA.file"
                   copyright="Copyright (c) 1996-2013"
                   description="MyProgram - Multipurpose Program"
               >
                   <!-- icon to be used by default for anything but splash -->
                   <fx:icon href="MyProgramIcon.icns" kind="shortcut"
                           width="32" height="32" depth="8"/>
               </fx:info>
               <fx:application
                     id="swingFXApp"
                     version="${app.version}-${app.build}"
                     mainClass="com.stilen.myprog.MyProgramApp"
                     name="MyProgram"
                     toolkit="swing"
               >
               </fx:application>
               <fx:preferences shortcut="true" menu="ture" />
               <fx:platform>
                   <fx:jvmarg value="-verbose:jni"/>
               </fx:platform>
               <fx:resources>
                  <fx:fileset type="jar" dir="jars">
                     <include name="*.jar"/>
                  </fx:fileset>
                  <fx:fileset type="jar" file="${file.reference.jfxrt.jar}"/>
                  <fx:fileset type="license" file="EULA.file"/>
               </fx:resources>
         </fx:deploy>

      I am packaging jre-1.7.0_45 and javaFX-2.2.45

        Attachments

          Activity

            People

            Assignee:
            asemenyuk Alexey Semenyuk
            Reporter:
            jstilejfx John Stile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: