winrun4j

Can I install a file using Izpack 5 without it being part of the install.jar built by izpack

浪尽此生 提交于 2020-01-04 08:07:12
问题 My installation widget.zip zipfile contains the following: 32bitJava install.jar widgetinstaller.exe widgetinstaller.ini widgetinstaller.ico To summarize: 32bitJava is a 32bit JRE downloaded from Oracle install.jar is the installer created by Izpack widgetinstaller.* are created by winrun4j providing an exe wrapper for the installer. So with this setup I can install my application without user having to have a java runtime already installed. However once installed the actual application also

Simple and flexible method to run java as a windows service

走远了吗. 提交于 2019-12-31 22:27:44
问题 I read SO q&a about launch java as windows service wrappers, but can't find/choose product, suitable for my requirements : Wrapper reads all java launch parameters from config file. In registry must be only commands to run wrapper itself - path to exe and maybe path to config. Always grant admin rights to change app parameters in registry is not comfortable. Working dir and path to application also must be in config. I want to place all wrapper files deep into program, because user not

How to fill ini file for creating exe for Java app with libs (WinRun4J)

允我心安 提交于 2019-12-25 12:00:41
问题 "MyApp" folder has now the following structure: - MyApp - lib - MyLib.jar - MyApp.jar MyApp.jar has a manifest with Class-Path: lib/MyLib.jar I want to add MyApp.exe file to "MyApp" folder. So I put all files required to create exe via WinRun4J to "MyApp" folder. Then I run bat file as described here. That gives me exe file with a proper icon but all I see when I run it is a splash screen. Where am i wrong? My ini file content: main.class=my.main.class classpath.1=lib/MyLib.jar splash.image

Embedding a jre into WInrun4j only once for installer and application

百般思念 提交于 2019-12-25 07:34:00
问题 For installation of my Windows desktop application I create an installer using izpack and then call it from an exe using winrun4j, also part of the izpack installation add another winrun4j wrapper for actually running the application once installed. The trouble is that for the win4runj.exe to work it needs to be using the correct Java type, i.e if exe is 64bit it must run 64 bit jvm, if exe is 32 bit it must run 32bit jvm. This can be confusing for the user so I was going to take advantage of

WinRun4J - service not stopping

和自甴很熟 提交于 2019-12-21 22:36:43
问题 I'm using this to install my application as a windows service. Everything works fine except the service does not stop; @Override public int serviceMain(String[] strings) throws ServiceException { try { System.out.println("BootService: init"); System.out.println("BootService: service loop start"); while (ws.isServiceRunning()) { System.out.println("BootService: loop"); ws.serviceHandler(); } System.out.println("BootService: stopped"); return 0; } catch (Exception ex) { throw new

Simple and flexible method to run java as a windows service

怎甘沉沦 提交于 2019-12-03 03:54:05
I read SO q&a about launch java as windows service wrappers, but can't find/choose product, suitable for my requirements : Wrapper reads all java launch parameters from config file. In registry must be only commands to run wrapper itself - path to exe and maybe path to config. Always grant admin rights to change app parameters in registry is not comfortable. Working dir and path to application also must be in config. I want to place all wrapper files deep into program, because user not intrested in it. No dependencies(.net, python, etc). I don't want to extend requirements of my program. Free

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

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