Comments (5)
@mbachinger take a look at the documentation mentioning
<minVersion>, <maxVersion> format - Java >= 9
The new version format is xxx[.xxx[.xxx]] where only 1 part is required and the update version after the underscore is not allowed.
- 1.6
- 9
- 10.0.1
from gradle-launch4j.
@TheBoegl
Thanks for the reply. I am not specifying the underscore or the portion after though. I have tried:
- 11
- 11.0
- 11.0.5
I also tried setting the targetCompatibility since this overrides it.
Versions 9 and under work but 10 and 11 don't.
This is the createExe.xml being created before running into that error:
<?xml version='1.0' encoding='UTF-8'?>
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>lib/wdirclient-4.4.jar</jar>
<outfile>wdirclient.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir>.</chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<stayAlive>false</stayAlive>
<restartOnCrash>false</restartOnCrash>
<manifest></manifest>
<icon>..\..\src\dist\favicon.ico</icon>
<classPath>
<mainClass>wdirclient.WesternDirectoryClient</mainClass>
<cp>lib\wdirclient-4.4.jar</cp>
</classPath>
<jre>
<path></path>
<bundledJre64Bit>false</bundledJre64Bit>
<bundledJreAsFallback>false</bundledJreAsFallback>
<minVersion>11.0.0</minVersion>
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits>
</jre>
<versionInfo>
<fileVersion>4.4.0.0</fileVersion>
<txtFileVersion>4.4</txtFileVersion>
<fileDescription>wdirclient</fileDescription>
<copyright>unknown</copyright>
<productVersion>4.4.0.0</productVersion>
<txtProductVersion>4.4</txtProductVersion>
<productName>wdirclient</productName>
<companyName></companyName>
<internalName>wdirclient</internalName>
<originalFilename>wdirclient.exe</originalFilename>
<trademarks></trademarks>
<language>ENGLISH_US</language>
</versionInfo>
</launch4jConfig>
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>lib/wdirclient-4.4.jar</jar>
<outfile>wdirclient.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir>.</chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<stayAlive>false</stayAlive>
<restartOnCrash>false</restartOnCrash>
<manifest></manifest>
<icon>..\..\src\dist\favicon.ico</icon>
<classPath>
<mainClass>wdirclient.WesternDirectoryClient</mainClass>
<cp>lib\wdirclient-4.4.jar</cp>
</classPath>
<jre>
<path></path>
<bundledJre64Bit>false</bundledJre64Bit>
<bundledJreAsFallback>false</bundledJreAsFallback>
<minVersion>11.0.0</minVersion>
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits>
</jre>
<versionInfo>
<fileVersion>4.4.0.0</fileVersion>
<txtFileVersion>4.4</txtFileVersion>
<fileDescription>wdirclient</fileDescription>
<copyright>unknown</copyright>
<productVersion>4.4.0.0</productVersion>
<txtProductVersion>4.4</txtProductVersion>
<productName>wdirclient</productName>
<companyName></companyName>
<internalName>wdirclient</internalName>
<originalFilename>wdirclient.exe</originalFilename>
<trademarks></trademarks>
<language>ENGLISH_US</language>
</versionInfo>
</launch4jConfig>
from gradle-launch4j.
@mbachinger I've edited your answer to display your xml output as code block.
I'm unable to reproduce your error. Please provide a minimal reproducible example. Creating the executable with your provided xml works for me.
from gradle-launch4j.
@TheBoegl Changing the Launch4j version to 2.4.4 fixed the problem.
from gradle-launch4j.
@mbachinger Are you referring to this plugin in version 2.4.4 from 2018? To really help you please attach a failing project configuration or a link to a repository. I'm still unable to reproduce this issue.
from gradle-launch4j.
Related Issues (20)
- Build for Linux OS HOT 1
- Gradle 7 support HOT 3
- Created EXE needs admin-privileges to be run HOT 2
- add support for gradle configuration cache HOT 1
- Launch4jLibraryTask broken with Gradle 8+
- Plans to update to Launch4j 3.50 HOT 11
- Add support for not specifying a jar file HOT 2
- `copyConfigurable` shows a warning HOT 15
- classpath property issue HOT 3
- Version 3 should not require the presence of the jar plugin
- Unable to use empty `libraryDir` with latest version HOT 3
- It should be possible to define a Wrapper Manifest
- Gradle tries to download launch4j 3.0.3 plugin from jcenter HOT 3
- Question: Differences between 2.5.4 and 3.0.+ versions? HOT 4
- Improved diagnosis possibilitites / output of the launch4j process HOT 4
- No such field error after upgrading 2.5.4 -> 3.0.4 HOT 1
- Build fails with error: "Original filename exceeds the maximum length of 50 characters" HOT 2
- Erratic "Caused by: net.sf.launch4j.BuilderException: Icon doesn't exist." HOT 3
- how to change jar file location in version 3.0.5 HOT 3
- "Unresolved reference: jarTask" with Gradle Kotlin DSL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-launch4j.