javapackager

How to find automatic modules with javapackager

不羁的心 提交于 2020-01-21 05:09:08
问题 I am bundling an app using javapackager wherein the main jar is a module with a module-info.class but it relies on many other jars that are plain old jars, so I call them out as automatic modules in module-info.java. However, javapackager complains about not being able to find them. How do I make it find the jar files for automatic modules? Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.FindException: Module rcf not found, required by com.username.commander.ui Exception

How do I access MSI public properties from my application?

我是研究僧i 提交于 2019-12-11 16:16:22
问题 I'm using Wix via javafxpackager to build an MSI installer for my Java (8) app. When installing it, I can pass command line attributes, such as: msiexec /i app.msi FOO=BAR How do I go about accessing the value of FOO from my own application? I already have a custom wxs file that javafxpackager is picking up ( src/main/deploy/package/windows/<<APPNAME>>.wxs ) and it looks like this <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"

Limit modules added by javapackager

人走茶凉 提交于 2019-12-09 10:37:17
问题 I am trying to reduce the size of my application by limiting the modules that it includes. I already did this for my runtime using jlink . However, when I run javapackager using the --add-modules and --limit-modules options with a comma-separated list of the same small set of modules I used for the runtime, it insists on adding all of the modules anyway. It doesn't seem to want to honor the option I'm giving it. How can I get the tool to limit the modules it adds to my app bundle? "Adding

Javapackager tool from command-line on OSX?

跟風遠走 提交于 2019-12-08 06:20:50
问题 javapackager and javafxpackager don't seem to be recognised on the command line for me. They don't show up in the terminal, even after I installed the latest 1.8 SDK. (Even 'echo $JAVA_HOME' seems to be drawing a blank, though java -version seems to work fine.) If I look under /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/ I can see the javapackager and javafxpackager tools are present, but if I follow /usr/libexec/java_home back to it's origin in /System/Library

Javapackager tool from command-line on OSX?

戏子无情 提交于 2019-12-07 07:25:36
javapackager and javafxpackager don't seem to be recognised on the command line for me. They don't show up in the terminal, even after I installed the latest 1.8 SDK. (Even 'echo $JAVA_HOME' seems to be drawing a blank, though java -version seems to work fine.) If I look under /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/ I can see the javapackager and javafxpackager tools are present, but if I follow /usr/libexec/java_home back to it's origin in /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/ , there's no sign of them. The only other discussions I could

adding icon to bundle using javapackager

岁酱吖の 提交于 2019-12-07 05:35:44
问题 i am using javapackager to create an exe installer with jre bundled using the command line. does anybody know how to add an icon and customise the installer using the command line. these are the commands that i use: javapackager -deploy -native -outdir packages -outfile myFile -srcdir documents -srcfiles Application.jar -appclass application.Main -name "Application" -title "Application Title" i have tried to add license="info" and some other commands 回答1: As documented, use the option icon

Java9 packager with jlink compress tags

南楼画角 提交于 2019-12-06 02:43:02
问题 when we create jlink runtime images we can use tags such as '--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages' , creating a distribution folder around 45mb. If we want to use javapackager, for example to create an .DMG file, how can we do a similar compression? since these tags are not avaiable for javapackager. Without them the final bundle is around 100mb, losing a lot the java9 modularization advantages, so my question is if it is possible to use javapackager with

adding icon to bundle using javapackager

老子叫甜甜 提交于 2019-12-05 09:56:45
i am using javapackager to create an exe installer with jre bundled using the command line. does anybody know how to add an icon and customise the installer using the command line. these are the commands that i use: javapackager -deploy -native -outdir packages -outfile myFile -srcdir documents -srcfiles Application.jar -appclass application.Main -name "Application" -title "Application Title" i have tried to add license="info" and some other commands As documented , use the option icon with the prefix -B to use a custom icon: -Bicon=app.ico or alternatively put the icon file at package/windows

Limit modules added by javapackager

泄露秘密 提交于 2019-12-03 13:01:50
I am trying to reduce the size of my application by limiting the modules that it includes. I already did this for my runtime using jlink . However, when I run javapackager using the --add-modules and --limit-modules options with a comma-separated list of the same small set of modules I used for the runtime, it insists on adding all of the modules anyway. It doesn't seem to want to honor the option I'm giving it. How can I get the tool to limit the modules it adds to my app bundle? "Adding modules: [java.base, java.desktop, java.naming, java.sql, java.xml, java.logging, java.management, java

Failed to find library: jvm.dll. What's going on here?

佐手、 提交于 2019-12-01 15:06:57
In some computers, but not all, in which my application is installed, after what looks like a successful install, when you try to run it, it shows this error: The file is present in that directory, so, I'm not sure why it says it failed to find the library. That error is followed by and lastly: and then nothing happens. The application doesn't start. Any ideas what's going on? Some people pointed to this bug report which seems to be talking about this issue: https://bugs.openjdk.java.net/browse/JDK-8191176 but I have built my application with 8u162 as well as 8u172 (early access, specifically,