-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error at start on Windows #41
Comments
Hi @HumanG33k! |
Hi again! |
hi, I m aware about the fact 13 is already dead. (F*cking stupid 6 months release ) |
Ok! It seems that you are executing the plugin múltiple times, but If I’m not wrong, each execution removes the previous generated app. I know this is not the problem, but I have to warn you. Take a look at this link! Can you confirm to me that Don’t worry about 13, I’m using too!! I’m too lazy to update it |
yes it is. i miss it during my anonymisation. can you edit your post to remove it ? thx. -classpath %classpath com.organisation.mavenproject3.Main |
do you know if something similar is possible with javapacker or if my error can be related to that ? |
You can specify VM arguments to javapackager using I’ve seen that launch4j fails with too fat jars. Can you try your jar with launch4j in standalone mode? |
For launch4j : The standalone launch4j says it need 1.6 -1.8 jre. I try to build the exe and this configuration file permit to start it : <?xml version="1.0" encoding="UTF-8"?>
<launch4jConfig>
<dontWrapJar>true</dontWrapJar>
<headerType>gui</headerType>
<jar>project-1.0-SNAPSHOT.jar</jar>
<outfile>D:\USER\Projects\USER_tmp\Project\target\project.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir>.</chdir>
<priority>normal</priority>
<downloadUrl>https://adoptopenjdk.net/</downloadUrl>
<supportUrl></supportUrl>
<stayAlive>false</stayAlive>
<restartOnCrash>false</restartOnCrash>
<manifest></manifest>
<icon></icon>
<classPath>
<mainClass>com.organisation.mavenproject3.Main</mainClass>
<cp>%classpath com.organisation.mavenproject3.Main</cp>
</classPath>
<jre>
<path></path>
<bundledJre64Bit>false</bundledJre64Bit>
<bundledJreAsFallback>false</bundledJreAsFallback>
<minVersion>11</minVersion>
<maxVersion>14</maxVersion>
<jdkPreference>preferJre</jdkPreference>
<runtimeBits>64/32</runtimeBits>
</jre>
</launch4jConfig> i guess error come from the cp option. |
I see that you have configured the property |
And, no, you can’t specify |
I've added mainclass to classpath by default to launch4j and published to 1.1.1-SNAPSHOT. Can you give it a try?
|
hello, I guess it s because gradle jar are not in the project directory. so i try a
but i have an error, the --info says
So i "fix" it by commenting the part in build.gradle and relaunch the command. After that i retry the following command and a new error occur :
|
Ok! I’ve been making changes trying to build and release the plugin with Gradle. I’ll try to build it on a brand new virtual machine to reproduce your problem |
@fvarrui did you test in virtual machine ? I really curious about if this problem came from my setup. |
Hi @HumanG33k!
I hope now you can build and publish SNAPSHOT version to your local repo. |
the build and the publish work but i have some jni error when i execute my jar/exe i will investigate. |
Maybe it could be related to this Launch4j issue. I could add a new property to choose if JAR has to be wrapped into EXE or stay next to it, if this is the problem. |
it's probably the case.
Also for my previous test program, exe are well generated but not find the main class even if my jar work with simple java -jar myfat.jar |
There are a samples page, with different use cases. I have to add more.
I’m not sure what you mean.
Good idea!! Thanks
If you create a mock project, similar to yours, maybe I could help. |
the creation on windows need inno setup and WiX. And both have probably their own options. And had a way to specify throught your config part their options. Also you if you can (money skills time) build or use a CI stack to auto build your project and the projects use your project. Your example page is really good it permit a fast learning curve (not sure of the sentence) maybe a back link at the end to option list. If you have the time to add the option to not bundle it can be great. |
Ok, I get you ... but Inno Setup and WIX are too complex to contemplate all their variants. For this reason, I enabled the possibility of adding custom options to the plugin through the
Yes, it's a good idea! When I have a little more time, I'd like to add test cases to the plugin.
Yes, I'll do it. |
|
I've just released v1.2.0 to Maven Central with the new |
I'm going to close this issue ... if it's not resolved, we can reopen it and further investigate the cause. |
Hi, |
Hi @Trylam! |
Hello,
I probably miss something but when i try to execute my generate exe it not start.
After i start it in a powershell shell it says it can’t find my main class but the fat jar build start without trouble with a :
This is my relevant pom part :
For the record my main javafx class is already in a wrapper java main class.
The text was updated successfully, but these errors were encountered: