Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Auto Run Java Program


13 replies to this topic

#11 jordanliuhao

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 32 posts

Posted 30 January 2005 - 05:41 AM

If you system is linux, you can use cron job to do the same thing. It is a tool to start specified program at specified time continuouly.

You can use

crontab -l

to show the existing cron job.

You can also use

crontab -e

to configure it.

the job definition can be divided into two part. One part is the time schedule definition. You can specify the year/month/day/weekday/hour/minute/second. One part is program definition. It is same as your command line, such as java -jar run.jar.


eldeo, on Nov 7 2004, 07:44 AM, said:

You can also run java program as a windows service. Use javaservice free tool

View Post



#12 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 12 July 2008 - 07:55 PM

About jar
Auto Run Java Program

While creating jar file I faced a problem that is could not find main class ,the program will exit

-reply by Giri

#13 SoundStorm

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 34 posts
  • Gender:Male
  • Location:Cluj Napoca
  • Interests:Web developing with Java frameworks, music, movies, being happy :P
  • myCENT:76.72

Posted 10 March 2010 - 09:01 AM

There are also some tools that help you convert a jar to an exe. Although it isn't indicated ... But still... nice to know :angel:

#14 T X

    Member [Level 1]

  • Kontributors
  • PipPipPipPip
  • 56 posts
  • Gender:Male
  • Location:Rochester, NY
  • myCENT:1.63

Posted 28 March 2010 - 12:00 AM

May I also recommend JARMaker?

http://www.goldenstudios.or.id/products/ut...maker/index.php

And Jar2Exe?

http://www.regexlab.com/jar2exe/

Of course, if you're talking about hiding the window while you're running it just use javaw:

@echo off
start javaw Main

Otherwise you can do:

@echo off
title Run
java -Xmx256m Main
pause

I don't understand the point of jarring it unless you're going to be distributing it.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users