Urgent Requirement

Will it be possible to execute command line java program execution in GUI environment.If yes, how?Please provide me as soon as possible.Thanx in advance.khiz_eng
[203 byte] By [khiz_eng] at [2007-9-26 2:13:16]
# 1

I assume you mean from a shortcut on the desktop (in windows)? If so create a jar file for your application and call from a batch file, e.g.

start jrew -cp Immunisation.jar com.dmsltd.ui.frames.MainFrame

The jrew command runs the app without the DOS console appearing. Set the batch file as your short-cut target.

It is also possible to make an executable (haven't looked into it myself, but plenty of posts about it in these forums).

Hope this helps

isjm at 2007-6-29 9:07:38 > top of Java-index,Desktop,Core GUI APIs...
# 2
In Win98, it is not possible (afaik) to run a .bat file without the DOS console appearing.A better approach is to associate .jar files with javaw.
nerd2004 at 2007-6-29 9:07:38 > top of Java-index,Desktop,Core GUI APIs...
# 3
Sorry, I forgot one thing. Batch file needs the exit command immediately after running app with jrew (to dispose of the DOS console).
isjm at 2007-6-29 9:07:38 > top of Java-index,Desktop,Core GUI APIs...