• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to turn off client's console ?

 
Mariusz Malinowski
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wrote j2EE client app in swing and I am using SJSAS PE 8.

The question is: "How to turn off client console (cmd.exe)".

Thank you in advance.

Regards

Mariusz
 
Mariusz Malinowski
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know this is possible in J2SE using javaw.exe instead of java.exe but how can I do it in J2EE ? I load my app with appclient.bat.

Regards,

Mariusz
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make a copy of cmd.exe (should be in c:/windows/system32/) and rename it something else. Then in the Properties dialog of it, check the Hidden attribute checkbox. Now in the bat file that starts the app server, reference this new copy of cmd.exe instead of the original one. That should do the trick.
 
Mariusz Malinowski
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now in the bat file that starts the app server, reference this new copy of cmd.exe instead of the original one.[/QB]


Hi,

Thanks for your response but I think we are talking about two different things...
Your description refers to the server console. The problem I presented is how to turn off client console when I load my client's swing application:

appclient -client TheNameOfTheAppClient.jar

If you have any idea I would be grateful.

Regards,

Mariusz
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your description refers to the server console.

Nope, I'm talking about client-side. Your question mentioned cmd.exe, which exists on client and server versions of Windows. Maybe you can tell us what you mean by client console. Is it the console into which you type "appclient -client TheNameOfTheAppClient.jar" to start the app, or is it the one that gets started when you double-click a jar file, or something else entirely?
 
Mariusz Malinowski
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it the console into which you type "appclient -client TheNameOfTheAppClient.jar" to start the app, or is it the one that gets started when you double-click a jar file, or something else entirely?


Actually, I've created run.but file which contains:
appclient -client TheNameOfTheAppClient.jar

and I execute it via WindowsCommander 5.0

Regards,

Mariusz
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then it's the run.bat where you need to set the 'Hidden' attribute in the file properties.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!