Win a copy of Svelte and Sapper in Action this week 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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/
 
Do Re Mi Fa So La Tiny Ad
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic