launch4j

not able to rename process/image name using launch4j

微笑、不失礼 提交于 2019-12-10 10:46:09
问题 I am using the Launch4j to rename my Java process for unique identification. I have set the node customProcName to true in the required xml file. But I am still getting javaw.exe as the process/Image name in the windows task manager. Below is my xml code which I am using to launch the application. Please suggest <?xml version="1.0" encoding="UTF-8"?> <launch4jConfig> <customProcName>true</customProcName> <dontWrapJar>false</dontWrapJar> <headerType>gui</headerType> <jar>D:\MQLink_Installers

lauch4j hello world program

泪湿孤枕 提交于 2019-12-08 03:05:54
问题 I created a "hello world" java program and use lauch4j to convert executable jar to .exe file. When I tried to run it in cmd, but nothing printed out. I also tried to run it in launch4j. Log indicates: Executing: C:\Documents and Settings\cnbq84\Desktop\helloworld.exe. But still no "hello world" is displayed. How to display the "Hello World" msg? Thanks Here is my config file: <launch4jConfig> <dontWrapJar>false</dontWrapJar> <headerType>gui|console</headerType> <jar>C:\Documents and Settings

not able to rename process/image name using launch4j

£可爱£侵袭症+ 提交于 2019-12-06 11:23:55
I am using the Launch4j to rename my Java process for unique identification. I have set the node customProcName to true in the required xml file. But I am still getting javaw.exe as the process/Image name in the windows task manager. Below is my xml code which I am using to launch the application. Please suggest <?xml version="1.0" encoding="UTF-8"?> <launch4jConfig> <customProcName>true</customProcName> <dontWrapJar>false</dontWrapJar> <headerType>gui</headerType> <jar>D:\MQLink_Installers_Files\TestLaunch_fat.jar</jar> <outfile>D:\MQLink_Installers_Files\MyMain.exe</outfile> <errTitle><

lauch4j hello world program

送分小仙女□ 提交于 2019-12-06 05:53:35
I created a "hello world" java program and use lauch4j to convert executable jar to .exe file. When I tried to run it in cmd, but nothing printed out. I also tried to run it in launch4j. Log indicates: Executing: C:\Documents and Settings\cnbq84\Desktop\helloworld.exe. But still no "hello world" is displayed. How to display the "Hello World" msg? Thanks Here is my config file: <launch4jConfig> <dontWrapJar>false</dontWrapJar> <headerType>gui|console</headerType> <jar>C:\Documents and Settings\cnbq84\Desktop\helloworld.jar</jar> <outfile>C:\Documents and Settings\cnbq84\Desktop\helloworld.exe<

Sign a launch4j executable in ant with sign4j and jsign

拈花ヽ惹草 提交于 2019-12-06 00:30:55
I have an application in a Jar and I wrap it in a exe with launch4j so is easy for the user to launch it (in windows). I have a certificate, so I sign the jar (I don't know if this is really necessary because it will be wrapped inside the exe) and I want to sign the exe but it corrupt the executable. I use ant to make all the process and look like: <signjar jar="${jar.location}" alias="${key.alias}" storetype="pkcs12" keystore="${key.file}" storepass="${key.password}" tsaurl="https://timestamp.geotrust.com/tsa" /> <launch4j configFile="launch4j_configuration.xml" fileversion="${version}.0"

Instructions to setup Launch4j for jar file

筅森魡賤 提交于 2019-12-05 22:12:50
问题 I have created my project in U:/myproject where all the java stuff is installed in C: Drive. the jar file i created through netbeans is in u:/myproject/dist/myproject.jar. Could some one provided me the clean instructions of how to setup the launch4j and do i have to create a .exe file first? or if i just sign the jar file, i will get this errror output.exe is not a valid win32 application 回答1: Using Launch4J can be very simple. You only need your .JAR file to get your .EXE I usually do the

Create exe with launch4j with maven

不问归期 提交于 2019-12-05 09:13:58
I want to wrap my jar with launch4j to an exe file. Here is my pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>de.thz.cameracontrol</groupId> <artifactId>Kamerasteuerung</artifactId> <version>0.0.3-SNAPSHOT</version> <packaging>jar</packaging> <name>name</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.version

Bundle a JRE into an exe using Launch4J

纵然是瞬间 提交于 2019-12-03 20:22:00
问题 I'm attempting to bundle the JRE into my exe using launch4j. My folder structure is as follows- |- test |- jre(copied from my windows installation of jre) |-bin |-lib |- jretest.jar (the jar file I am using to create my exe) |- jretest.exe (the output exe file) In Launch4j, I have set the Bundled JRE Path as jre . The exe works fine so far. However, when i copy my exe file elsewhere and run it, I get the error message This application was configured to use a bundled Java Runtime Environment

Exception in Launch4j

夙愿已清 提交于 2019-12-03 11:16:17
I have the following instructions in my build.xml, and I am getting the following exception. launch4j: net.sf.launch4j.ExecException: Exec failed (1): C:\Program Files\Launch4j\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Windows\TEMP\launch4j2603642297702639520rc C:\Windows\TEMP\launch4j1179691608441365102o This is my build script: <project basedir="." default="build" name="Bienvenue"> <!-- Crée le fichier d'installation BienvenueSetup.exe --> <target name="build"> <!-- Création du dossier classes --> <mkdir dir="classes"/> <!-- Compilation des classes du programme -->

Launch4j / windres: how to set paths correctly?

会有一股神秘感。 提交于 2019-12-01 08:45:13
I have launch4j configure for my project. I used it back, when i developed on windowsXP, where it worked. Now i need it to build on mac as well: My build.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project default="create-exe"> <property name="platform" value="win32"/> <property name="launch4j.dir" location="${basedir}/tools/launch4j/" /> <include file="create-jar.xml" as="sub"/> <target name="create-exe" depends = "sub.create-jar"> <launch4j configFile="launch4j-config.xml" /> <delete file="client.win32.jar"/> </target> <taskdef name="launch4j" classname="net.sf.launch4j.ant