Hi, I use your software for a while and thaks for it.
Actually, I use it for a launcher and the .exe request Administrator privileges. But the jar file can run without these privilege (and the code doesn't need them). I didn't know why so hope you can help me (user don't appreciate the request popup for only a launcher).
My program use also two Apache dependency (commons-lang and commons-codec) and log4j. The dependencies are in the jar file (with the shade-plugin).
Hi, I wasn't able to reproduce this. Launch4j does not require administrative privileges to execute the jar. Is there anything special in the folder where this exe is located? I'd also scan it for viruses for example with virus total. Also try without the mutex, and let me know if anything changed.
Grzegorz
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, for the scan, my antivirus block it beacause "not enought used" ><, but I check the binary and nothing special (these is the same jar contents than my jar). The program don't use any other file. But it's use Properties, Log4J properties and system properties. Can be that ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I try with a jar without log4j (it's the only new thing I add to my program so before it's was ok). But request alway admin rights. The request is for the wrapper jar.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I use your software for a while and thaks for it.
Actually, I use it for a launcher and the .exe request Administrator privileges. But the jar file can run without these privilege (and the code doesn't need them). I didn't know why so hope you can help me (user don't appreciate the request popup for only a launcher).
My program use also two Apache dependency (commons-lang and commons-codec) and log4j. The dependencies are in the jar file (with the shade-plugin).
Here, the maven task for launch4j:
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>1.7.7</version>
<executions>
<execution>
<id>default-cli</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>gui</headerType>
<outfile>target/${project.name}.exe</outfile>
<jar>target/${project.name}.jar</jar>
<errTitle>${project.name} - Erreur Fatal</errTitle>
<icon>src/main/resources/${project.name}.ico</icon>
<supportUrl>${project.organization.url}</supportUrl>
<singleInstance>
<mutexName>${project.name}</mutexName>
</singleInstance>
<classPath>
<mainClass>${main.class}</mainClass>
</classPath>
<jre>
<minVersion>1.7.0</minVersion>
<maxVersion>1.8.0</maxVersion>
</jre>
<versionInfo>
<fileVersion>${project.version}.0</fileVersion>
<txtFileVersion>${project.version}-${release.identifier}</txtFileVersion>
<fileDescription>${project.description}</fileDescription>
<copyright>MIT</copyright>
<productVersion>${project.version}.0</productVersion>
<txtProductVersion>${project.version}-${release.identifier}</txtProductVersion>
<productName>${project.name}</productName>
<internalName>${project.name}</internalName>
<originalFilename>${project.name}.exe</originalFilename>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
Hi, I wasn't able to reproduce this. Launch4j does not require administrative privileges to execute the jar. Is there anything special in the folder where this exe is located? I'd also scan it for viruses for example with virus total. Also try without the mutex, and let me know if anything changed.
Grzegorz
Hi, for the scan, my antivirus block it beacause "not enought used" ><, but I check the binary and nothing special (these is the same jar contents than my jar). The program don't use any other file. But it's use Properties, Log4J properties and system properties. Can be that ?
I try with a jar without log4j (it's the only new thing I add to my program so before it's was ok). But request alway admin rights. The request is for the wrapper jar.