I want to run java program on windows environment as background process

Hi all

I want to run java program on windows environment as background processSo command promptreturn after executing java command and program on background In Linux we can do this easily 卋ut I do not how to do this in windows

for example look this programe

import java.io.*;

import java.util.*;

public class TestClass {

class ravi extends Thread{

public void run(){

try {

String target_file = "ravind.txt";

File targetfile = new File(target_file);

PrintWriter writer = new PrintWriter(new FileWriter(targetfile)) ;

for (int i =0 ; i < 100 ;i++ ){

Thread.sleep(10000);

writer.println(" ravindra shukla ");

}

} catch (Exception e) {

e.printStackTrace();

}

}

}

public static void main(String[] args) {

TestClass test1 = new TestClass();

TestClass.ravi r1 = test1.new ravi();

r1.start();

System.out.println(" return from main ");

}

}

first i compile this

javac TestClass.java

then i run this by using this command

java TestClass

but becouse i put sleep on threads run function so it takes to much time to get return on command promt .... i want to run this programe as background process so command promt return as soon as i execute java command

[1348 byte] By [ravindra.shuklaa] at [2007-10-2 17:22:06]
# 1
Then just type "start java ..." at the command line.
DrClapa at 2007-7-13 18:38:13 > top of Java-index,Other Topics,Patterns & OO Design...
# 2

Thanks dude

This solution 搒tart java TestClass?works fine ? But it does not solve my problem

It opens another black window and that black window persist till the life time of my program

Is it possible application run on complete background without opening another black window 卆s in Linux

ravindra.shuklaa at 2007-7-13 18:38:13 > top of Java-index,Other Topics,Patterns & OO Design...
# 3
javaw
BIJ001a at 2007-7-13 18:38:13 > top of Java-index,Other Topics,Patterns & OO Design...
# 4
javaw TestClass
amitswamia at 2007-7-13 18:38:13 > top of Java-index,Other Topics,Patterns & OO Design...