launch4j

Launch4j, NSIS, and duplicate pinned Windows 7 taskbar icons

烂漫一生 提交于 2019-12-18 05:01:35
问题 I'm having a problem wherein when I pin a taskbar icon in Windows 7 for my application, clicking the icon opens up a separate (duplicate) icon for the program instead of keeping it grouped with the shortcut used to call it. The application itself is a .jar file that's been wrapped into an .exe using Launch4j. That would explain why the icon is getting duplicated -- Launch4j is calling a separate process of javaw.exe, and it looks like the AppModelUserID gets confused when you start doing

How to get the path to the executable when using launch4j?

时光总嘲笑我的痴心妄想 提交于 2019-12-18 04:48:15
问题 I'm using launch4j to wrap an executable jar file in my Windows application, but I need to pass references to some of its libraries in through the JVM arguments. The libraries in question reside in the application install directory, and are always located in the same place, relative to the executable. I'd like to tell launch4j to use executable-relative paths in the JVM options. I know this information is available at the Windows batch script level, but how do you configure launch4j to fetch

Java packaging tools - alternatives for jsmooth, launch4j, onejar

谁说胖子不能爱 提交于 2019-12-17 17:42:25
问题 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

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

痞子三分冷 提交于 2019-12-17 08:48:12
问题 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

Launch4j JRE Installation or bundled

独自空忆成欢 提交于 2019-12-11 16:37:59
问题 I'll ship my application as .exe file on a cdrom. When the end user gonna start the program, the following events should occurs (in case he hasn't got any valid JRE installation): If the user hasn't got an internet connection, the program (exe file) should use an embedded JRE (shipped with the cdrom) If the user has got an internet connection, he should be redirected to the JRE download location (java.com). He should then download the JRE and install it. I won't use the bundled JRE for a user

Wrapped .exe with launch4j and jdk8 takes very long to start. Using jdk7 instead starts almost instant

允我心安 提交于 2019-12-11 11:34:30
问题 I have the following problem: I used to have a launch4j config to create a wrapped executable from my runable jar using a bundeled jdk/jre7 for quite some time. The Programm (launched with that .exe) starts almost immediatly with jdk7. I now had to switch to jdk8 which results in a VERY slow startup. Everything works just fine, that is not the problem, but the launch process of that .exe takes ~1-2 Minutes and I simply don't get why. Starting the application from within eclipse (using the

Wrapping a java command line application with launch4j and maven

萝らか妹 提交于 2019-12-11 06:21:01
问题 I would like to wrap a java based command line app and all it's dependencies into a single *.exe file using maven and launch4j. Now I have read all similar questions on SO like this one and this but I can not get it to work. Can anybody supply a simple pom.xml snippet, how to achieve this with all needed dependencies. And by the way, what maven build goal should I run in Eclipses run configuration? Here is what I have copied from SO: <!-- Launch4j --> <plugin> <groupId>org.apache.maven

Maven Shade Plugin + Launch4j

孤街浪徒 提交于 2019-12-11 04:46:17
问题 I have two maven projects inside the same folder. One is dependent upon other i.e. has the other one it its dependencies. Now I would like to use maven shade plugin and launch4j but it seems to complicated to me. Can somebody give me a step by step explanation for my case? So I have 2 POM files, one in each project. My multi-module file looks like this: <project xmlns="http://maven.apache.org/POM/4.0.0 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven

Launch4J exe still needs the jar file

痴心易碎 提交于 2019-12-11 01:55:31
问题 Launch4j seems to simple to setup but after the exe has been generated it wouldn't run from another location. The jar file used to create the launcher still needs to be in the same folder as the exe is. I thought it would have wrapped the jar in exe and could run it from anywhere? I have done this with JSmooth before and it worked well. But JSmooth isn't supported on Windows 7 anymore. Also could not find any proper documentation for it. What is going wrong here. Thanks, Shankar. 回答1: Your

Does compilng java code to exe (e.g. using Launch4Java) ensure code cannot be reversed engineered?

随声附和 提交于 2019-12-11 00:21:05
问题 After experimenting myself, I am convinced that java code obsfucation is not safe in terms of preventing reverse code engineering. So, I turn to using Launch4J to bundle one of my core jar file into a single EXE file. The jar file contains the main entry method as well. Is this going to protect again code reverse engineering? 回答1: If a computer can run it, a human can reverse engineer it. 回答2: Launch4J doesn't translate your Java code into native executable code, it just provides a native