T
tigerlion002
Unregistered / Unconfirmed
GUEST, unregistred user!
SOS !!! 关于 OrbConnect (此外,圣诞快乐,新年快乐!)(100分)<br />这两天用jbuilder 写 CORBA 的一个演示程序,编译通不过,
代码是:
void jButton4_actionPerformed(ActionEvent e) {
//myAccount.setCorbaInterface(myAccountManager.open(jTextField1.getText()));
//jLabel1.setText("The account balance is " + myAccount.balance());
Account.setCorbaInterface(AccountManager.open(jTextField1.getText()));//line 136
jLabel1.setText("The account balance is " + Account.balance());//line 137
}
错误信息是:
"Fram1.java": error#: 300: method open (java.lang.string)not found in class
com.borland.cx.OrbConnect at line 136, column 44
"Fram1.java": error#: 300: variable Account not found in class banktutorial.Fram1
at line 136, column 3
"Fram1.java": error#: 300: variable Account not found in class banktutorial.Fram1
at line 137, column 47
若将上述两句去掉,BankServer 没有问题,
但是Fram1 无法运行,信息是:
D:/TIGER/program/JBuilder35/jdk1.2.2/bin/javaw -classpath
"D:/TIGER/New Folder (2)/classes;D:/TIGER/program/Jvbroker/lib/vbjorb.jar;
D:/TIGER/program/JBuilder35/lib/cx3.1.jar;
D:/TIGER/program/JBuilder35/lib/dbswing3.1.jar;
D:/TIGER/program/JBuilder35/lib/dx3.1.jar;
D:/TIGER/program/JBuilder35/lib/beandt3.1.jar;
D:/TIGER/program/JBuilder35/lib/jbcl3.1.jar;D:/TIGER/program/Jvbroker/lib;
D:/TIGER/program/JBuilder35/jdk1.2.2/jre/lib/rt.jar;
D:/TIGER/program/JBuilder35/jdk1.2.2/jre/lib/i18n.jar;
D:/TIGER/program/JBuilder35/jdk1.2.2/lib/dt.jar;
D:/TIGER/program/JBuilder35/jdk1.2.2/lib/tools.jar;
D:/TIGER/program/JBuilder35/jdk1.2.2/lib/jpda.jar;
D:/TIGER/program/JBuilder35/jdk1.2.2/jre/lib/ext/iiimp.jar"
banktutorial.Frame1
java.lang.NoSuchMethodError: main
Exception in thread "main"
请高手指点!!!谢谢!!!JJams_King 请进!
此外,Tool/CORBA setup 中的
Add a visibroker smartagent items to the tools manus
是灰色的!
奇怪?
代码是:
void jButton4_actionPerformed(ActionEvent e) {
//myAccount.setCorbaInterface(myAccountManager.open(jTextField1.getText()));
//jLabel1.setText("The account balance is " + myAccount.balance());
Account.setCorbaInterface(AccountManager.open(jTextField1.getText()));//line 136
jLabel1.setText("The account balance is " + Account.balance());//line 137
}
错误信息是:
"Fram1.java": error#: 300: method open (java.lang.string)not found in class
com.borland.cx.OrbConnect at line 136, column 44
"Fram1.java": error#: 300: variable Account not found in class banktutorial.Fram1
at line 136, column 3
"Fram1.java": error#: 300: variable Account not found in class banktutorial.Fram1
at line 137, column 47
若将上述两句去掉,BankServer 没有问题,
但是Fram1 无法运行,信息是:
D:/TIGER/program/JBuilder35/jdk1.2.2/bin/javaw -classpath
"D:/TIGER/New Folder (2)/classes;D:/TIGER/program/Jvbroker/lib/vbjorb.jar;
D:/TIGER/program/JBuilder35/lib/cx3.1.jar;
D:/TIGER/program/JBuilder35/lib/dbswing3.1.jar;
D:/TIGER/program/JBuilder35/lib/dx3.1.jar;
D:/TIGER/program/JBuilder35/lib/beandt3.1.jar;
D:/TIGER/program/JBuilder35/lib/jbcl3.1.jar;D:/TIGER/program/Jvbroker/lib;
D:/TIGER/program/JBuilder35/jdk1.2.2/jre/lib/rt.jar;
D:/TIGER/program/JBuilder35/jdk1.2.2/jre/lib/i18n.jar;
D:/TIGER/program/JBuilder35/jdk1.2.2/lib/dt.jar;
D:/TIGER/program/JBuilder35/jdk1.2.2/lib/tools.jar;
D:/TIGER/program/JBuilder35/jdk1.2.2/lib/jpda.jar;
D:/TIGER/program/JBuilder35/jdk1.2.2/jre/lib/ext/iiimp.jar"
banktutorial.Frame1
java.lang.NoSuchMethodError: main
Exception in thread "main"
请高手指点!!!谢谢!!!JJams_King 请进!
此外,Tool/CORBA setup 中的
Add a visibroker smartagent items to the tools manus
是灰色的!
奇怪?