Results 1 to 4 of 4
Thread: Restart main
- 11-21-2009, 06:47 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 12
- Rep Power
- 0
- 11-21-2009, 07:23 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
If you main( ... ) method looks like this now:
... change it to this:Java Code:public static void main(String[] args) { // a whole lot of code here that doesn't belong here to start with }
kind regards,Java Code:public static void main(String[] args) { while(true) doWork(args); } private static void doWork(String[] args) { // the entire bunch of code here ... }
Jos
- 11-22-2009, 08:18 AM #3
Member
- Join Date
- Nov 2009
- Posts
- 12
- Rep Power
- 0
What command should i put to restart it? :confused:
Thank you
- 11-22-2009, 08:34 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
How to make program restart without writing java programname, again.
By TheBeed in forum New To JavaReplies: 6Last Post: 11-04-2009, 09:41 PM -
how to include restart merkers in a JPEG file
By ananta_javaforums001 in forum NetworkingReplies: 0Last Post: 04-09-2009, 03:29 PM -
Make application restart itself
By Singing Boyo in forum New To JavaReplies: 1Last Post: 03-22-2009, 02:49 AM -
Application restart in tomcat.....
By jithan in forum New To JavaReplies: 1Last Post: 09-10-2008, 03:31 PM -
Restart a For loop and increment an Int value
By dcnorman07 in forum New To JavaReplies: 1Last Post: 07-12-2008, 12:24 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks