Dont want to display command window

Reply

Join Date: Apr 2005
Posts: 21
Reputation: luisator is an unknown quantity at this point 
Solved Threads: 0
luisator luisator is offline Offline
Newbie Poster

Dont want to display command window

 
0
  #1
Jul 6th, 2005
Hi everybody! The application I´ve been working is almost done, first of all thanks to all for your help. But now I want to do something extra and don´t know if is possible. My application starts when I call a bat file with the javac and the java command to run my application. Obviously I keep a command window opened and I dont want it there....I want to know if i can put the .bat file in the start of windows for it starting eachtime the sistem starts ....and also if there is a way to dont show the command window....I am finishing now!!! PLease help me again!!!!
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Dont want to display command window

 
0
  #2
Jul 6th, 2005
I know of one way, but that still requires you to run it from the command prompt. After that, you can close the command line and it will still run:

Try the javaw command:


javaw ApplicationName

That will start the program and then you can close the command prompt withought closing the program..
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Dont want to display command window

 
0
  #3
Jul 6th, 2005
There is one other way I know of: If you are programming on windows you can create shortcuts that have properties set(path, app name and that junk);
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 45
Reputation: cheenu78 is an unknown quantity at this point 
Solved Threads: 0
cheenu78's Avatar
cheenu78 cheenu78 is offline Offline
Light Poster

Re: Dont want to display command window

 
0
  #4
Jul 7th, 2005
u can try creating an executable batch file.
to create an executable batch file u can follow the following link
http://java.sun.com/docs/books/tutor...st/appman.html

if you are using windows u can try adding an entry in the registry :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 192
Reputation: stupidenator is an unknown quantity at this point 
Solved Threads: 4
stupidenator's Avatar
stupidenator stupidenator is offline Offline
Junior Poster

Re: Dont want to display command window

 
0
  #5
Jul 7th, 2005
you can also create an executable JAR file. That won't open the command prompt window
-Nick
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2693 | Replies: 4
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC