sos about visibroker for java 4.1 trial version(50分)

  • 主题发起人 主题发起人 tigerlion002
  • 开始时间 开始时间
T

tigerlion002

Unregistered / Unconfirmed
GUEST, unregistred user!
各位大侠,用visibroker for java 中的console , 可能是路径配置的问题,
console 无法运行,提示是:out of environment space
plwase help me!!!
 
console.bat as follow:
@echo off
echo Inprise Console
echo Copyright (C) 1999 Inprise Corporation
echo All rights reserved.
set CN=d:/program_inprise/visibroker_java/console
set AS=d:/program_inprise/visibroker_java
set VB=d:/program_inprise/visibroker_java
set JDK=D:/Jbuilder/jdk1.2.2
set JRE=d:/program files_Jbuilder/Java
set ASL=%AS%/lib
set CNL=%CN%/lib
set VBL=%VB%/lib
set JVL=%JDK%/lib
rem set LOG=console.log
rem set JAVA_COMPILER=NONE
set OLDPATH=%PATH%
set PATH=%JRE%/bin;%OLDPATH%
set CLASSPATH=%CN%/classes
set CLASSPATH=%CLASSPATH%;%CNL%/console.jar;%CNL%/jafa.jar
set CLASSPATH=%CLASSPATH%;%VBL%/vbjorb.jar;%VBL%/vbdev.jar;%VBL%/vbjdev.jar;%VBL%/vbsec.jar
set CLASSPATH=%CLASSPATH%;%CNL%/jndi.jar;%CNL%/providerutil.jar;%CNL%/cosnaming.jar;%CNL%/fscontext.jar
rem set CLASSPATH=%CLASSPATH%;%CNL%/dbswing3.1.jar;%CNL%/dbtools3.1.jar;%CNL%/pthelp3.1.jar
set CLASSPATH=%CLASSPATH%;%ASL%/vbejb.jar;%ASL%/navigator.jar
set CLASSPATH=%CLASSPATH%;%CNL%/jcchart.jar
set CLASSPATH=%CLASSPATH%;%JVL%/tools.jar
set CLASSPATH=%CLASSPATH%;%CN%/plugins/vbcore.jar
set CFG=%CN%/plugins/console.ini
goto run
:restart
echo Restarting
:run
java -classpath "%CLASSPATH%" -Dlog=%LOG% -Dcfg="%CFG%" com.inprise.console.Console
if errorlevel 100 goto end
if errorlevel 99 goto restart
:end
set PATH=%OLDPATH%
echodo
ne
我用echo 逐行检查,发现出现“out of environment space”的是第1~9行"set",
改路径后,出现在13~27行,
加echo 的console.bat 如下://////////////////////////
//////////////////////////////////////////////////////
@echo off
echo Inprise Console
echo Copyright (C) 1999 Inprise Corporation
echo All rights reserved.
SET PATH="d:/program_inprise/visibroker_java/console"
rem SET PATH="d:/program_inprise/visibroker_java/console";%JRE%/bin;%OLDPATH%;OLDPATH=%PATH%
echo 1
set CN=d:/program_inprise/visibroker_java/console
echo 2
set AS=d:/program_inprise/visibroker_java
echo 3
set VB=d:/program_inprise/visibroker_java
echo 4
set JDK=D:/Jbuilder/jdk1.2.2
echo 5
set JRE=d:/program files_Jbuilder/Java
echo 6
set ASL=%AS%/lib
echo 7
set CNL=%CN%/lib
echo 8
set VBL=%VB%/lib
echo 9
set JVL=%JDK%/lib
echo 10
rem set LOG=console.log
rem echo 11
rem set JAVA_COMPILER=NONE
echo 12
rem set OLDPATH=%PATH%
echo 13
rem SET PATH=%JRE%/bin;%OLDPATH%
rem echo 14
set CLASSPATH=%CN%/classes
rem echo 15
set CLASSPATH=%CLASSPATH%;%CNL%/console.jar;%CNL%/jafa.jar
rem echo 16
set CLASSPATH=%CLASSPATH%;%VBL%/vbjorb.jar;%VBL%/vbdev.jar;%VBL%/vbjdev.jar;%VBL%/vbsec.jar
rem echo 17
set CLASSPATH=%CLASSPATH%;%CNL%/jndi.jar;%CNL%/providerutil.jar;%CNL%/cosnaming.jar;%CNL%/fscontext.jar
rem echo 18
rem set CLASSPATH=%CLASSPATH%;%CNL%/dbswing3.1.jar;%CNL%/dbtools3.1.jar;%CNL%/pthelp3.1.jar
rem echo 19
set CLASSPATH=%CLASSPATH%;%ASL%/vbejb.jar;%ASL%/navigator.jar
rem echo 20
set CLASSPATH=%CLASSPATH%;%CNL%/jcchart.jar
rem echo 21
set CLASSPATH=%CLASSPATH%;%JVL%/tools.jar
rem echo 22
set CLASSPATH=%CLASSPATH%;%CN%/plugins/vbcore.jar
rem echo 23
set CFG=%CN%/plugins/console.ini
rem echo 24
goto run
echo 25
:restart
echo Restarting
echo 26
:run
rem SET PATH="D:/program files_Jbuilder/java/bin"
SET PATH="D:/Jbuilder/jdk1.2.2/jre/bin"
java -classpath "%CLASSPATH%" -Dlog=%LOG% -Dcfg="%CFG%" com.inprise.console.Console
echo 27
if errorlevel 100 goto end
rem echo 28
if errorlevel 99 goto restart
rem echo 29
:end
rem echo 30
set PATH=%OLDPATH%
echodo
ne
//////////////////////////////
请教大侠,
路径中的“%”为何意?还有,上面提到的“CN”(位置:第一行(echo 1)),
AS (echo 2),VB,JRE,ASL,CNL , VBL,JVL,分别指什么?
SOS!!! 请大侠指教!!!


 
在另一台机器中安装,路径:
C:/Jbuilder3.5/ (foundation version)
C:/inprise/visibroker/console/ (trial version)
console.bat内容为:///////////////////////////////////
///////////////////////////////////////////////////////
@echo off
echo Inprise Console
echo Copyright (C) 1999 Inprise Corporation
echo All rights reserved.
set CN=C:/Inprise/vbroker/console
set AS=C:/Inprise/vbroker
set VB=C:/Inprise/vbroker
set JDK=C:/JBuilder35/jdk1.2.2
set JRE=C:/JBuilder35/jdk1.2.2/jre
set ASL=%AS%/lib
set CNL=%CN%/lib
set VBL=%VB%/lib
set JVL=%JDK%/lib
rem set LOG=console.log
rem set JAVA_COMPILER=NONE
set OLDPATH=%PATH%
set PATH=%JRE%/bin;%OLDPATH%
set CLASSPATH=%CN%/classes
set CLASSPATH=%CLASSPATH%;%CNL%/console.jar;%CNL%/jafa.jar
set CLASSPATH=%CLASSPATH%;%VBL%/vbjorb.jar;%VBL%/vbdev.jar;%VBL%/vbjdev.jar;%VBL%/vbsec.jar
set CLASSPATH=%CLASSPATH%;%CNL%/jndi.jar;%CNL%/providerutil.jar;%CNL%/cosnaming.jar;%CNL%/fscontext.jar
rem set CLASSPATH=%CLASSPATH%;%CNL%/dbswing3.1.jar;%CNL%/dbtools3.1.jar;%CNL%/pthelp3.1.jar
set CLASSPATH=%CLASSPATH%;%ASL%/vbejb.jar;%ASL%/navigator.jar
set CLASSPATH=%CLASSPATH%;%CNL%/jcchart.jar
set CLASSPATH=%CLASSPATH%;%JVL%/tools.jar
set CLASSPATH=%CLASSPATH%;%CN%/plugins/vbcore.jar
set CFG=%CN%/plugins/console.ini
goto run
:restart
echo Restarting
:run
java -classpath "%CLASSPATH%" -Dlog=%LOG% -Dcfg="%CFG%" com.inprise.console.Console
if errorlevel 100 goto end
if errorlevel 99 goto restart
:end
set PATH=%OLDPATH%
echodo
ne
/////////////////////////////////
运行console.bat ,结果仍然是:”out of environment of space“
SOS,请指教!!!

 
command /E:1024
然后运行console.bat
 
本人免费提供visibroker for java ,jbuilder 3.5 ,只需将运行情况告诉我!!!
if you have interest,send mail to me.
xiaoniu625@263.net
 
谢谢 JJams_King,效果非常好,只是1024改为4096,可否指教“E:1024”是指什么意思?
是否为"Environment"? 其默认值为何?
其次,在NT下好像不行,提示是:
the name specified is not recognized as an internal or external command.,
operabl program or batch file.
我该如何处理?
请指教!
此外,我现在手头上有两种Jbuilder,一个是Jbuilder3.5(JDK1.2.2),
另一个是2.0(Borland ),不知有何区别?(3.5的运行较慢,2.0的较快。)
不好意思,还有一个问题,如何杀线程?可否指点?
明日将所以150分奉送!
谢谢!
 
谢谢JJams_King,请指教上述问题!
 
command 的E参数指定环境块的大小。NT下用cmd,NT下环境块够用,不用改。
Thread.stop()
 
:JJams_King
你好,在NT下还是不行,提示是:
"the name specified is not recognized as an internal or external command,
operable program or batch file"
osagent and osfind ,都没有问题。
可否指教,请在 “help me todo
wn visibroker, thank you , 100$”中指点,我好将
分奉送,谢谢!
 
我在NT下用过,安装完了什么都不用改就能运行。如果你运行的batch是你改过的,建议
你先卸掉,重新装一个试一试。应该没问题的。目前我在Windows2000下用,也一直没问
题。
 
JJams_King
我刚才又查看来一下,发现“set JDK=D:/”和“set JRE=D:/”中少了“/”,
谢谢提醒。
昨晚又发现“使用服务程序管理器”一章中,调用服务程序管理器浏览器,即
vbj -Dvbroker.serverManager.enabled=true
-Dvbroker.serverManager.name=<name><server_name>
出错。提示是:
fail to load class vbroker.serverManager.enabled=true
java.lang.NoclassDeffoundError: vbroker/serverManager/enabled=true

关于
-Dvbroker.serverManager.name=<name><server_name>
,提示是:
file not found
可否指教,谢谢!
 
fail to load class vbroker.serverManager.enabled=true
java.lang.NoclassDeffoundError: vbroker/serverManager/enabled=true
是不是忘了加-D??
 
to JJams_King
加了,如下:
vbj -D vbroker.serverNamager.enabled=true
vbj -D vbroker.serverNamager.name=<name><server_name>
我很奇怪,class :serverNamager,是有的,但是.enabled 没有,可能是class 的属性,
第二句中的 <name>,<server_name>不知是指什么?
应该是具体的name ,servername.
不知该如何处理?(不知JJams_King大侠和其他大侠是否遇到过),请指点一二。
 
-D后面不要有空格
 
关键“-D”是何意,vbj 帮助中没有“-D”项,奇怪!
这是发行版中的例子,我用的是测试版,但测试版中也有这个例子,即bank_agent
在<<visibroker for java >>的pp91中。
 
Enter the following at the command line to run the server:
vbj -Dvbroker.serverManager.enabled=true
-Dvbroker.serverManager.name=&amp;lt;name&amp;gt;
&amp;lt;server_name&amp;gt;
This exposes the server objects in the Server Manager browser.
检查是不是命令打错了
 
我试一试,我想不会是命令敲错了,暂时也只好如此。
 

Similar threads

D
回复
0
查看
1K
DelphiTeacher的专栏
D
I
回复
0
查看
711
import
I
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
893
import
I
后退
顶部