Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hiding the console window  RSS feed

 
basha khan
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai everybody, i am new to this forum..
how can i run java without using command prompt?.or how can i avoid the command prompt window while GUI applications running?.we all know that a console window is not necessory in GUI.
all suggestions are welcome..
basha
SCJP
 
Matthew Webster
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What platform? If it's Windows your'e using try in the startup script:
start "windowless java" %JAVA_HOME%\javaw.exe etc.etc.etc.
I know there are other clever ways, but this is mine and I'm bored on christmas eve.
Merry Christmas everyone
Matt.
 
basha khan
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using windows..
any possible idea to me for avoiding console window while running java?.
System.exit() is exiting the JVM.is there is any Console.exit() like methods which eleminates console window without exiting JVM?
thanks Matt but i am looking for a solution inside JVM.
wishing everyone a better day
basha
 
basha khan
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no solutions???
 
Neal Swearer
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that running the app as a Windows Service avoids the command prompt.
 
basha khan
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont think applet is a good idea.any targetted idea
to the problom?
basha
 
Neal Swearer
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Duplicate of this post which Gregg answered nicely.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!