Results 1 to 2 of 2
- 02-23-2011, 03:35 AM #1
Banned
- Join Date
- Feb 2011
- Posts
- 65
- Rep Power
- 0
how to start and stop other java applicaton
hello guys i wonder how to do this.
public class startotherclass {
public static void main(String[]args){
// I need code to start classtostart.java
}
}
public class classtostart {
public static void main(String[]args){
while(true){
//Chek file if change
}
}
}
public class stopclasstostart {
public static void main(String[]args){
//I need code to stop classtostart.java
}
}
i need this code so that i can protect my file even i close my main application in java.
i must start classtostart.java so that it will protect my file even i close my main project please help.
- 02-23-2011, 08:51 AM #2
in the api of the class Thread all methods needed to start, stop etc. are well exaplained. please, read the api and if you have questions about it post it here
Similar Threads
-
Start Swing GUI program by Java Web Start with IE in Eclipse debug mode
By albertkao in forum EclipseReplies: 1Last Post: 01-18-2011, 06:27 PM -
Use stop button to stop moving (stop timers) on JPanel
By mneskovic in forum New To JavaReplies: 3Last Post: 07-23-2010, 12:50 PM -
applicaton for nokia S60 devices(Translator), need help
By Basit781 in forum CLDC and MIDPReplies: 0Last Post: 05-18-2010, 03:42 PM -
How do you start a Java program from the "Start" menu under Windows?
By ScottVal in forum New To JavaReplies: 5Last Post: 03-20-2009, 10:04 PM -
Applets (init, start, stop, destroy)
By Java Tip in forum Java TipReplies: 0Last Post: 12-12-2007, 10:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks