启动IMAN的时候,是通过执行portal.bat来执行%JAVA_COMMAND%命令,命令行如下:
%JAVA_COMMAND_LINE%=
# java command
"%JRE_HOME%\bin\java"
# VM Parameters
-Xbootclasspath:%X_BOOTCLASSPATH%
-Dorg.omg.CORBA.ORBClass
=IE.Iona.OrbixWeb.CORBA.ORB
-Dorg.omg.CORBA.ORBSingletonClass
=IE.Iona.OrbixWeb.CORBA.singletonORB
-DIMAN_PORTAL_ROOT=%IPR%
# Classpath
-classpath "%IPR%;%IDR%;%IDR%\orbix.jar;
%IDR%\icctstubs.jar;
%IDR%\portal_patch.jar;%IPR%\jgraph.jar;
%IDR%\portal.jar;%IDR%\xml4j.jar;
%IDR%\xerces.jar;%IDR%\xalan.jar;%IDR%\java2com.jar;
%IDR%\shdocvw-neva.jar;
%IDR%\..."
# Main class here
com.ugsolutions.aif.AIFPortal
# portal.bat parameters
%1 %2 %3 %4 %5 %6 %7 %8 %9
# Execute it
%JAVA_COMMAND_LINE%
在JAVA_COMMAND_LINE 中使用控制台java命令来启动含有main class的AIFPortal类来引导IMAN, 众所周知,除了控制台命令java之外,还有一个图形方式的javaw,因此我们可以将JAVA_COMMAND_LINE中 的java改成javaw,只这样还不够,这样做只隐藏了java的控制台输出信息,还需要用后台方式运行javaw 命令行,语法如下:
%JAVA_COMMAND_LINE%=
# java command
"%JRE_HOME%\bin\javaw"
# VM Parameters
-Xbootclasspath:%X_BOOTCLASSPATH%
-Dorg.omg.CORBA.ORBClass=IE.Iona.OrbixWeb.CORBA.ORB
-Dorg.omg.CORBA.ORBSingletonClass
=IE.Iona.OrbixWeb.CORBA.singletonORB
-DIMAN_PORTAL_ROOT=%IPR%
# Classpath
-classpath "%IPR%;%IDR%;%IDR%\orbix.jar;
%IDR%\icctstubs.jar; %IDR%\portal_patch.jar;%IPR%\jgraph.jar;
%IDR%\portal.jar;%IDR%\xml4j.jar;
%IDR%\xerces.jar;%IDR%\xalan.jar;%IDR%\java2com.jar;
%IDR%\shdocvw-neva.jar;
%IDR%\wordexcel-neva.jar;%IDR%\ssoapplib.jar;
%IDR%\ssocommon.jar;" ... ...
# Main class here
com.ugsolutions.aif.AIFPortal
# portal.bat parameters
%1 %2 %3 %4 %5 %6 %7 %8 %9
# Execute it
rem %JAVA_COMMAND_LINE%
start "Portal Daemon" /B %JAVA_COMMAND_LINE%
现在,Portal.bat的命令窗口就不会再出来了,在给客户使用的时候,可以这样做,当然,我们在测试 或者调试程序的时候,还是需要它的.
1 comment:
Buy a card game at Alderney
Buy a card game at Alderney – card game from Alderney. This 카지노 사이트 is your first chance to try a demo with this great card game.
Post a Comment