Questions tagged [winrun4j]

WinRun4j is a java launcher for windows. It is an alternative to javaw.exe.

30 questions
1
vote
1 answer

Setting embedded Jetty war from classpath

How I can set a war in an embedded jetty in a way that it can load from a classpath. Following is my current code snippet webAppContext.setWar("hello.war"); Context :- I want to secure my code other than obfuscation.so, I used Jetty to create a…
Ali Asghar
  • 11
  • 1
1
vote
1 answer

WinRun4J - can't load library jars

I'm trying to execute my Java program as windows service using WinRun4J. The service is correctly created and run until it stop because of a ClassNotFoundException: org.springframework.beans.factory.parsing.BeanDefinitionParsingException:…
brevleq
  • 2,081
  • 10
  • 53
  • 97
1
vote
4 answers

WinRun4J service example doesn't run

Does anyone know how to get the WinRun4J service example (ServiceTest class that is distributed with the software) to run? I'm on a Windows 7 box, 64 bit, and have the Java 7 JDK and JRE installed. I performed the following: Copied WinRun4J64c.exe…
Steven Solomon
  • 301
  • 1
  • 3
  • 14
0
votes
0 answers

How do you embed an .ini in a WinRun4j executable?

The documentation on the WinRun4j page mentions that embedding an .ini file into an executable is supported: Supports embedding (inside the executable) the INI file. See Embedded Resources section below. The problem is, I can't see how to do…
Warren
  • 179
  • 2
  • 7
0
votes
1 answer

On Windows with Winrun4j how do I specify Java gclog location that understands APPDATA location

I want to enable garbage collection logging for Java application running on Windows Like standard Windows programs the application is installed in C:/Program Files/CompanyName/SoftwareName and my application logs are stored in…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
0
votes
1 answer

How to I stop debug messages from jetty from showing up in my log files

I have a web service written in Java, running on windows via WinRun4J and using Jetty for its web service. When I start up the web service, I get a whole mess of DEBUG and INFO messages in my log file that look like this: [Thread-2] DEBUG…
Burdell
  • 60
  • 7
0
votes
1 answer

Pass property file in WinRun4J

I am trying to translate a .bat file to a INI file so that I can use WinRun4J to launch a small JAVA app as a service. Working from the demo that ships with the download, the web page https://github.com/poidasmith/winrun4j and a few samples that…
Gene Burk
  • 1
  • 1
  • 1
  • 2
0
votes
3 answers

trying to use log4j.xml file within WinRun4j

has anyone tried to use a log4j.xml reference within a WinRun4j service configuration. here is a copy of my service.ini file. I have tried many configuration combinations. this is just my latest…
0
votes
1 answer

What causes the error that says "Could not find the Service Class" for a service wrapped by WinRun4j

I have the following error when running a jar wrapped by WinRun4J: [info] Module Name: C:\Users\User\Documents\NetBeansProjects\NETBEANS 6.9.1\Desktop_apps\Test2\src\com\service\wrapper\ServiceWrapper.exe [info] Module INI:…
LasithaMD
  • 115
  • 2
  • 11
0
votes
1 answer

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

"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…
Zharro
  • 819
  • 1
  • 11
  • 23
0
votes
1 answer

How to run a Java application as Windows service using WinRun4J

I'm trying to run a Java application as a Windows service with WinRun4J. I copied WinRun4J64c.exe in my application directory and placed the following service.ini file…
deamon
  • 89,107
  • 111
  • 320
  • 448
0
votes
1 answer

invoke methods in a windows service made by winrun4j

I made a windows service from a jar file using WinRun4J, so far it's very basic. package org.boris.winrun4j.test; import java.io.BufferedWriter; import java.io.FileWriter; import org.boris.winrun4j.Service; import…
Rayf
  • 451
  • 3
  • 12
0
votes
1 answer

Embedding a jre into WInrun4j only once for installer and application

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…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
0
votes
1 answer

Problems with 32bit/64bit exe wrapper for Java on Windows

In my ini file for winrun4j java exe wrapper I set vm.version.min=1.7 to specify Java 7 as a requirement. But when I ran it I couldn't get winrun4j to recognise that I had a java 7 jre installed even though java -version from the command line…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
-1
votes
1 answer

How can i run my java application as a window service?

I had made a simple java program of screen capture I want to run that program as a window service but I had trouble im not able to find the right way I had used WinRun4J but at the time of starting the service, I got an error that error 1053 the…
1
2