Arek Czarnowski - 2016-12-21

Hi,

I used Launch4j plugin in my Java project with Maven. When I compile project to exe and run on Windows system where there is no Java installed, it redirects (automatically open web browser) to download Java but with 32-bit version. I want to redirect to download 64-bit newest version. Is it possible?

My plugin definition in Maven looks like

<plugin>
    <groupId>com.akathist.maven.plugins.launch4j</groupId>
    <artifactId>launch4j-maven-plugin</artifactId>
    <version>1.7.11</version>
    <executions>
        <execution>
            <id>l4j-gui</id>
            <phase>package</phase>
            <goals>
                <goal>launch4j</goal>
            </goals>
            <configuration>
                <headerType>gui</headerType>
                <outfile>target/Project.exe</outfile>
                <jar>target/Project.jar</jar>
                <priority>high</priority>
                <errTitle>project</errTitle>
                <classPath>
                    <mainClass>com.project.Main</mainClass>
                    <preCp>libs/*.jar</preCp>
                </classPath>
                <jre>
                    <minVersion>1.8.0_101</minVersion>
                </jre>
                <icon>${basedir}/build-resources/win/application-${ENV}.ico</icon>
            </configuration>
        </execution>
    </executions>
</plugin>