WinRun4j is a java launcher for windows. It is an alternative to javaw.exe.
Questions tagged [winrun4j]
30 questions
59
votes
2 answers
Izpack fails with 'There is no script engine for file extension ".js",
On test machine using Izpack 5 Beta 11 if I start install.jar using a 64bit winrun4j exe running bundled 64 bit java then Izpack complains
There is no script engine for file extension ".js",
then complains The installer could not launch with…

Paul Taylor
- 13,411
- 42
- 184
- 351
37
votes
5 answers
What's the best way to start Java applications on Windows 7?
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…

kayahr
- 20,913
- 29
- 99
- 147
8
votes
1 answer
Unable to get vmargs identified in winrun4j ini file
I have just moved my application from Java8 to Java10, as part of that I now need to add
--add-modules java.xml.bind
to avoid java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
exception.
And this works fine in my batch file
JVM64\bin\java…

Paul Taylor
- 13,411
- 42
- 184
- 351
8
votes
2 answers
Simple and flexible method to run java as a windows service
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…

cynepnaxa
- 1,024
- 1
- 14
- 30
4
votes
1 answer
How to prevent showing console window in winrun4j
I created a desktop gui app in java and use WinRun4J to create a native Windows launcher.
my ini file looks like…

Łukasz Bownik
- 6,149
- 12
- 42
- 60
3
votes
1 answer
winrun4j auto detect JVM
I am using WinRun4J utility to create a java desktop application(using JDK 1.6.0_45 64 bit on Windows 7 premium 64 bit) executable. I have created the EXE file by selecting "Export type" as 'Standard' and "Launcher Type" as '64-bit Windows'from the…

Rohit
- 445
- 2
- 7
- 17
3
votes
0 answers
Unable to Log events in Application Event viewer - WinRun4J
Using the command as described
EventLog.report("WinRun4J Test Service", EventLog.INFORMATION,
"Ping");
Instead of writing the event logs it writes this
The description for Event ID 0 from source WinRun4J Test Service
cannot be found. Either…

Basit Anwer
- 6,742
- 7
- 45
- 88
2
votes
3 answers
Winrun4j: Exceeded maximum classpath size
My project has many dependencies and I tell winrun4j to include all of them by setting
classpath.1=D:\lib\*.jar
in the ini file.
The service log is telling me that that winrun4j is expanding classpath and generating a classpath:
[info] Expanding…

Michi
- 487
- 5
- 20
2
votes
0 answers
How to use winrun4j to start the standalone oc4j application service on Windows 2012 server?
We are running the Oracle standalone OC4J J2EE web application server on our Windows 2012 R2 server. The command line to start the oc4j server is as follows:
`java -jar %J2EE_HOME%\oc4j.jar`
The J2EE_HOME system-wide environment variable has been…

ck_dc
- 21
- 2
2
votes
1 answer
WinRun4J - service not stopping
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 {
…

user1667016
- 123
- 2
- 8
2
votes
4 answers
Can I install a file using Izpack 5 without it being part of the install.jar built by izpack
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…

Paul Taylor
- 13,411
- 42
- 184
- 351
1
vote
1 answer
Can't install winrun4j eclipse plugin
I'm having issues installing the WinRun4J eclipse plugin. Eclipse finds the plugin just fine and begins the installation, but most of the way through the install eclipse stops at an error. The error is below. I've tried googling for a resolution to…

Taelsin
- 1,030
- 12
- 24
1
vote
1 answer
Spring Boot & WinRun4J for Windows Service JAR: Service launch class outside BOOT-INF folder
I want to run an Spring Boot Application as a Windows Service using WinRun4J. It doesn't work since WinRun4J is unable to find the main class. I noticed that it is because the spring-boot-maven-plugin collect the sources inside a BOOT-INF folder and…

e_v_e
- 478
- 3
- 16
1
vote
2 answers
winrun4j - Unable to create service
I have service created by using winrun4j with java application.
I am getting following error while installing service.
C:\LoginTester>service.exe --WinRun4J:RegisterService
[info] Module Name: C:\LoginTester\service.exe
[info] Module INI:…

Shamsuddin Altamash
- 163
- 1
- 3
- 11
1
vote
1 answer
Logging exceptions in Windows Service with WinRun4j
I have been trying to get a Windows service running from my JAR file. WinRun4j seems to be able to do the job, but I can't get it to work. I am especially finding it quite difficult to debug. I tried several methods for logging (writing to a .txt…

Frank
- 51
- 4