• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your kind reference.

FYI: the link was moved to http://www.geocities.com/j2exe/
 
Hang a left on main. Then read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic