A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
load java program on startup?
mahmoud saleh
Greenhorn
Joined: Sep 06, 2008
Posts: 19
posted
Sep 30, 2008 19:38:00
0
greeting all
i searched google for how to register a
java
program to run on startup
and find that the way is through a .bat file
but i don't know which commands to use to make this issue?
could any one help me please?
thanks in advance
arulk pillai
Author
Ranch Hand
Joined: May 31, 2007
Posts: 3189
posted
Sep 30, 2008 20:16:00
0
set $PATH=$PATH;"c:/j2sdk1.4.2/bin" SET CLASSPATH=.;%cd%\iText.jar;%cd%\mySQLc.jar;%cd%\pg73jdbc2.jar cd c:/MyProgramFolder java -cp %CLASS_PATH% MyProgram
Java Interview Questions and Answers Blog
|
Amazon.com profile
|
Java Interview Books
Gamini Sirisena
Ranch Hand
Joined: Aug 05, 2008
Posts: 347
posted
Sep 30, 2008 22:08:00
0
Can you tell us how you make the batch file run at startup?
If you want to run the java application as a Windows service check this
link
.
Rene Larsen
Ranch Hand
Joined: Oct 12, 2001
Posts: 1179
I like...
posted
Oct 01, 2008 01:59:00
0
Originally posted by Gamini Sirisena:
Can you tell us how you make the batch file run at startup?
You can put a link to the BAT/CMD file in the 'startup' folder - which is placed in your Program menu.
And you can use a windows service...
Regards, Rene Larsen
Dropbox Invite
mahmoud saleh
Greenhorn
Joined: Sep 06, 2008
Posts: 19
posted
Oct 09, 2008 23:51:00
0
i just want my application to run on startup without user interference
i will check the link
thanks guys
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: load java program on startup?
Similar Threads
How do I make a sevlet be called once a day?
Linux script to call a java program
running a java program
Startup Heap Size
program running problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter