launch4j

Configure Launch4J to use 32-bit JVM only

霸气de小男生 提交于 2019-11-29 02:56:40
问题 I'm using Launch4J to start my Java application and if an x64 JRE is present on the system, Launch4J seems to prefer it. Unfortunately my application cannot run on a 64 bit JVM because I'm loading a 32 bit DLL, which is not possible and leads to an UnsatisfiedLinkError. Is there any way to force/trick Launch4J to use a 32 bit JVM only? 回答1: I had this exact problem about a year ago, using Lauch4J to wrap a small Java program that required a 32-bit DLL (swt-win32.dll, as it happened). I found

Difference between .exe and the .exe returned from Inno Setup - Installed application fails [duplicate]

流过昼夜 提交于 2019-11-28 07:03:45
问题 This question already has an answer here: Application does not work when installed with Inno Setup 1 answer I don't know what the issue is, but for some reason my .exe file and the .exe file that I get after running the installer from Inno Setup are not the same. No error codes thrown or anything, it compiles perfectly, but the toolbars in my application (the program was made with Java swing) do not contain their buttons correctly. I have two JToolBars that hold JButtons (each button has an

Java packaging tools - alternatives for jsmooth, launch4j, onejar

本秂侑毒 提交于 2019-11-28 04:42:46
I have used these three open source tools for packaging my java apps, but they all look like abandon-ware now. All three are very good pieces of software. What are the options now? (or is using Java for desktop app development no longer a "hot" market for app developers to build & maintain these tools?). 1) exe wrapper: jsmooth - no new development in 2.5 years - does not support 64 bit. launch4j - no new development in over a year, supports 64 bit, but you can't sign the exe created by launch4j, so I prefer jsmooth, but it does not support 64 bit. 2) onejar: It works, but there has been no

What's the best way to start Java applications on Windows 7?

佐手、 提交于 2019-11-28 03:15:54
Requirements I want to publish a Java GUI application on Windows 7. This application is using the Swing Toolkit and doesn't need any native code. The application is installed using an NSIS installer. I want to integrate this application into Windows 7 as good as possible. This means: When the application is running it must be possible to pin the application to the taskbar. It must be possible to associate data files with the application so Windows opens these files with my application. Must automatically work with the 32 bit Java Runtime and with the 64 bit Java runtime. So when the user

Pinning a Java application to the Windows 7 taskbar

久未见 提交于 2019-11-27 10:41:30
I use Launch4j as a wrapper for my Java application under Windows 7, which, to my understanding, in essence forks an instance of javaw.exe that in turn interprets the Java code. As a result, when attempting to pin my application to the task bar, Windows instead pins javaw.exe . Without the required command line, my application will then not run. As you can see, Windows also does not realize that Java is the host application: the application itself is described as "Java(TM) Platform SE binary". I have tried altering the registry key HKEY_CLASSES_ROOT\Applications\javaw.exe to add the value

Can I tailor a maven build based on platform?

爱⌒轻易说出口 提交于 2019-11-27 08:26:21
问题 Specifically, I run the launch4j-maven-plugin plugin to generate me an .exe file. This only works on Windows, so I was wondering if I could 'opt-out' of this step on other platforms? The plugin is tied to the execution phase like this <plugin> ... <execution> <id>l4j-clui</id> <phase>package</phase> <goals> <goal>launch4j</goal> </goals> </execution> ... 回答1: You can wrap that plugin under separate build profile and just enable that profile on the build that you want For example: <project> ..

How do I bundle a JRE into an EXE for a Java Application? Launch4j says “runtime is missing or corrupted.”

谁都会走 提交于 2019-11-27 06:59:30
I am new to programming in Java but am generally familiar with how everything works. I would like to be able to put both a jar file and a jre into a windows executable(exe) so that when I distribute it, the client needn't have a JRE installed. What program should I use? I have launch4j and it seems to do exactly what I want but when I try to run the app, I get "This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted." I want my app to just be a runnable exe, not an installer. At the very least, can anyone show me how to correctly bundle

What's the best way to start Java applications on Windows 7?

杀马特。学长 韩版系。学妹 提交于 2019-11-27 05:06:13
问题 Requirements I want to publish a Java GUI application on Windows 7. This application is using the Swing Toolkit and doesn't need any native code. The application is installed using an NSIS installer. I want to integrate this application into Windows 7 as good as possible. This means: When the application is running it must be possible to pin the application to the taskbar. It must be possible to associate data files with the application so Windows opens these files with my application. Must

Launch4J - how to attach dependent jars to generated exe

荒凉一梦 提交于 2019-11-26 22:53:54
I have a simple java project, which requires external jars. I build this with netbeans and after Clean and Build command, I can find in dist directory the following structure: -myApp.jar -lib/ library1.jar library2.jar typical, I would say. Now, I'd like to distribute myApp.jar with dependent libraries as one exe. Is this possible? I am trying to use Launch4J. In the GUI I create the config file, there are some options in cp section <cp>lib/swing-layout-1.0.4.jar</cp> but it seems to be classpath, and it is the only place I can refer to my extra jars. After exe file is created, I can't find

Pinning a Java application to the Windows 7 taskbar

会有一股神秘感。 提交于 2019-11-26 15:16:56
问题 I use Launch4j as a wrapper for my Java application under Windows 7, which, to my understanding, in essence forks an instance of javaw.exe that in turn interprets the Java code. As a result, when attempting to pin my application to the task bar, Windows instead pins javaw.exe . Without the required command line, my application will then not run. As you can see, Windows also does not realize that Java is the host application: the application itself is described as "Java(TM) Platform SE binary"