This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

How to run jar as a service on windows 2000 server?

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I built a console jar program and want to run it as a service on windows 2000 server.

May I ask how can I do it?

Thanks
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


J2Exe is simple application that makes an executable file or windows service for your java application. The output file uses default java which is installed on PC in order to launch your java application. You can start it with specific java version if you put it in bin directory of this java version. Supported versions till this moment are JDK1.1.x, JDK1.2.2, JDK1.3.x, JDK1.4.x and JDK1.5.x of Sun Microsystems, Inc.

Produced executable file (or windows service) might be an application with standard console, without it or with managed console. Applications without standard console are similar to java application started with javaw. Applications with managed console are my idea. They are new type of java applications. If you build executable file (or windows service) with managed console then you can find a menu item in system menu of every frame of your java applications. This menu item will give you the possibility to show and to hide console of your applications. This is useful for testing purpose because you can show standard console and to dump stack traces of all threads. During the rest of the time the console is hidden and your taskbar is free of it.

J2Exe project is distributed as three independent modules:

J2Exe: Generates standard executable file.
J2TrayExe: Generates standard executable file with "tray" capability. User can minimize your application into tray area. There are provided 2 additional classes - WinTray.java and WinTrayListener.java. Developer can use them to embed his own menu items with icons into tray popup menu of application and to receive notification events when user clicks one of them. No additional natives are required.
J2WinService: Generates standard windows service.




Reference Website
http://j2exe.tripod.com/cgi-bin/index.pl
http://www.devx.com/Java/Article/21604
 
Andrew Parker
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your kind reference.

FYI: the link was moved to http://www.geocities.com/j2exe/
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!