Make sure you check the Java Console option to Show Console, then click OK and restart Jalview. Then click the Edit menu, select Preferences then click the Advanced tab. Once updates, if any, have been applied, we launch our main application using a new instance of a URLClassLoader within the same JVM, as follows: URLClassLoader cload = URLClassLoader.newInstance(new . If you installed Jalview using Java Webstart, locate and start the program javaws or javaws.exe on your system. More Detail: We have the Install4j generated launcher invoke a stub jar file, which among other things performs a "silent update" self-patching operation. Interestingly, I have also observed Install4j itself revert to this behavior, after the Dock gets updated by running a generated installer.Īm I doing something wrong here? Is there an option in Install4j I should have changed when switching from Java 5/6 (using Apple JRE) to Java 7 (using bundled JRE 1.7.0_67)? I have attempted to resolve this by adding CFBundleDisplayName to the generated ist, along with the necessary InfoPlist.strings file (in Contents/Resources/en.lproj), but this didn't change anything. What I don't understand is why our application is no longer showing its actual title, nor why a new icon appears while it's running. I know that JavaApplicationStub is the name of the actual executable launched by MacOS X, which then launches the JVM.
This action will be automatically reverted by the 'Uninstall files' action. This can be useful to customize system properties to control the compilers behavior. Additional JVM arguments can be set on the install4jc process. This action will be automatically reverted by the 'Uninstall files' action. If is not configured or is configured to an invalid or corrupted location, the plugin execution will skip. vmoptions file or by changing the ist file.
If the user then selects Options->Keep In Dock on this application, the icon reverts to what appears to be a generic console app icon on exit. Changes the classpath of a launcher by modifying or creating a. In its place a new icon appears on the Dock (as for an application which was not already kept in the Dock), with the correct appearance, but with the title JavaApplicationStub. When we switched to Java 7, the installed Dock icon bounces when clicked, briefly changes to a generic window icon, then reverts and becomes inactive. Previously, the icon on the Dock would launch our application, and would then show as being the active application, as is normal for MacOS.
Custom script fragment Unix On Unix and Linux, the JVM for an installer application is launched by a shell script. When we converted our application from Java 5/6 to Java 7, the icon installed on the Dock no longer behaves as expected. Custom fragment for ist macOS On macOS, you may want to add additional elements to the ist file of the application bundle in order to customize its behavior in ways that are not directly supported by install4j.