Compile java class



我试图编译这个java类_MyServerStub.java,但我得到这个错误

cannot find symbol
symbol  : class ServantObjectExt
location: package org.omg.CORBA.portable
                if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 
                                                          ^
stock/_MyServerStub.java:83: cannot find symbol
symbol  : class ServantObjectExt
location: package org.omg.CORBA.portable
                    ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
                                            ^
stock/_MyServerStub.java:88: cannot find symbol
symbol  : class ServantObjectExt
location: package org.omg.CORBA.portable
                if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 
                                                          ^
stock/_MyServerStub.java:89: cannot find symbol
symbol  : class ServantObjectExt
location: package org.omg.CORBA.portable
                    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
                                            ^
stock/_MyServerStub.java:94: cannot find symbol
symbol  : class ServantObjectExt
location: package org.omg.CORBA.portable
                if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 
                                                          ^
stock/_MyServerStub.java:95: cannot find symbol
symbol  : class ServantObjectExt
location: package org.omg.CORBA.portable
                    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
                                            ^
6 errors

_MyServerStub.java是从jacORB生成的存根,因此代码没有错误。

如果您正在使用maven,您可以包括以下依赖项:

        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-corba_3.0_spec</artifactId>
            <version>1.1</version>
        </dependency>

相关内容

  • 没有找到相关文章

最新更新