943,970 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 3004
  • Java RSS
Jul 6th, 2005
0

Dont want to display command window

Expand Post »
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!!!!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
luisator is offline Offline
21 posts
since Apr 2005
Jul 6th, 2005
0

Re: Dont want to display command window

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..
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Jul 6th, 2005
0

Re: Dont want to display command window

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);
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Jul 7th, 2005
0

Re: Dont want to display command window

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
Reputation Points: 10
Solved Threads: 0
Light Poster
cheenu78 is offline Offline
45 posts
since Jun 2005
Jul 7th, 2005
0

Re: Dont want to display command window

you can also create an executable JAR file. That won't open the command prompt window
-Nick
Reputation Points: 18
Solved Threads: 4
Junior Poster
stupidenator is offline Offline
192 posts
since Mar 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: JComboBox -- Item is not in the list????????
Next Thread in Java Forum Timeline: JEditorPane Display Errors





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC