有反应 C:\>java Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file)where options include: -client to select the "client" VM -server to select the "server" VM -hotspot is a synonym for the "client" VM [deprecated] The default VM is client. -cp <class search path of directories and zip/jar files> -classpath <class search path of directories and zip/jar files> A ; separated list of directories, JAR archives, and ZIP archives to search for class files..............................
另,我重其它地方拷了idl包括上述idl,其中的timebase.idl包括以下内容 // $Id: TimeBase.idl,v 1.1.1.1 2001/03/17 18:08:13 brose Exp $#ifndef _TIME_BASE_IDL #define _TIME_BASE_IDL #pragma prefix "omg.org"#include <orb.idl>module TimeBase {..... } 另orb.idl内容如下// Some definitions from the CORBA module as needed // by other modules. This file is for declaration // purposes only!!// $Id: orb.idl,v 1.8 2004/02/02 08:56:54 gerald Exp $#ifndef _ORB_IDL #define _ORB_IDL/* the following pragma is proprietary to JacORB. It ensures that no code is ever generated when this file is included in other files even when the -all compiler option is set *///#pragma inhibit_code_generation #pragma prefix "omg.org"module CORBA { typedef unsigned short ServiceOption; typedef unsigned short ServiceDetailType; // for PortableInterceptors typedef sequence<string> StringSeq; typedef sequence<wstring> WStringSeq; typedef sequence<octet> OctetSeq; typedef unsigned long PolicyType; // actually, Current is pseudo, but we need it this way so everything compiles interface Current {}; interface Environment{}; interface NamedValue {}; interface NVList {}; // not suitable for deriving user-defined interfaces ! enum TCKind { tk_null, tk_void, tk_short, tk_long, tk_ushort, tk_ulong, tk_float, tk_double, tk_boolean, tk_char, tk_octet, tk_any, tk_TypeCode, tk_Principal, tk_objref, tk_struct, tk_union, tk_enum, tk_string, tk_sequence, tk_array, tk_alias, tk_except, tk_longlong, tk_ulonglong, tk_longdouble, tk_wchar, tk_wstring, tk_fixed, tk_value, tk_value_box, tk_native, tk_abstract_interface, tk_local_interface // latest addition }; // not suitable for deriving user-defined interfaces typedef string Identifier; typedef string RepositoryId; interface TypeCode {}; // PIDL // exception Bounds {}; // exception BadKind {};// // for all TypeCode kinds // boolean equal (in TypeCode tc); // TCKind kind ();// boolean equivalent(in TypeCode tc); // TypeCode get_compact_typecode();// // for tk_objref, tk_struct, tk_union, tk_enum, // // tk_alias, and tk_except // RepositoryId id () raises (BadKind);// // for tk_objref, tk_struct, tk_union, tk_enum, // // tk_alias, and tk_except // Identifier name () raises (BadKind);// // for tk_struct, tk_union, tk_enum, and tk_except // unsigned long member_count () raises (BadKind); // Identifier member_name (in unsigned long index) // raises (BadKind, Bounds);// // for tk_struct, tk_union, and tk_except // TypeCode member_type (in unsigned long index) // raises (BadKind, Bounds);// // for tk_union // any member_label (in unsigned long index) // raises (BadKind, Bounds); // TypeCode discriminator_type () raises (BadKind); // long default_index () raises (BadKind);// // for tk_string, tk_sequence, and tk_array // unsigned long length () raises (BadKind);// // for tk_sequence, tk_array, and tk_alias // TypeCode content_type () raises (BadKind);// }; interface InterfaceDef {}; /* this is the original PIDL from the lang. mapping, but we do not use it! Instead... pseudo interface Principal { attribute sequence<octet> name; }; */ /* ... we use this little hack. It saves us fiddling with the generated code that uses Principals. Actually, we should not be doing this.... */ typedef sequence<octet> Principal; interface IDLType {}; enum OperationMode {OP_NORMAL, OP_ONEWAY}; enum ParameterMode {PARAM_IN, PARAM_OUT, PARAM_INOUT}; struct ParameterDescription { Identifier name; TypeCode type; IDLType type_def; ParameterMode mode; }; typedef sequence <ParameterDescription> ParDescriptionSeq; interface Policy { readonly attribute PolicyType policy_type; Policy copy(); void destroy(); }; typedef sequence <Policy> PolicyList; interface DomainManager { Policy get_domain_policy(in PolicyType policy_type); }; interface ConstructionPolicy: Policy { void make_domain_manager(in InterfaceDef object_type, in boolean constr_policy); }; typedef sequence <DomainManager> DomainManagersList; typedef short PolicyErrorCode; const PolicyErrorCode BAD_POLICY = 0; const PolicyErrorCode UNSUPPORTED_POLICY = 1; const PolicyErrorCode BAD_POLICY_TYPE = 2; const PolicyErrorCode BAD_POLICY_VALUE = 3; const PolicyErrorCode UNSUPPORTED_POLICY_VALUE = 4; exception PolicyError { PolicyErrorCode reason; }; exception UserException {}; interface ExceptionList {}; valuetype WStringValue { public wstring value; }; }; #endif /* _ORB_IDL */用idl2pas orb.idl提示internal problem; please contact Inprise Customer Support 何解?
C:\>java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client. -cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files..............................
// $Id: TimeBase.idl,v 1.1.1.1 2001/03/17 18:08:13 brose Exp $#ifndef _TIME_BASE_IDL
#define _TIME_BASE_IDL
#pragma prefix "omg.org"#include <orb.idl>module TimeBase
{.....
}
另orb.idl内容如下// Some definitions from the CORBA module as needed
// by other modules. This file is for declaration
// purposes only!!// $Id: orb.idl,v 1.8 2004/02/02 08:56:54 gerald Exp $#ifndef _ORB_IDL
#define _ORB_IDL/*
the following pragma is proprietary to JacORB. It ensures
that no code is ever generated when this file is included in
other files even when the -all compiler option is set
*///#pragma inhibit_code_generation
#pragma prefix "omg.org"module CORBA
{
typedef unsigned short ServiceOption;
typedef unsigned short ServiceDetailType; // for PortableInterceptors
typedef sequence<string> StringSeq;
typedef sequence<wstring> WStringSeq;
typedef sequence<octet> OctetSeq; typedef unsigned long PolicyType; // actually, Current is pseudo, but we need it this way so everything compiles
interface Current {}; interface Environment{};
interface NamedValue {};
interface NVList {}; // not suitable for deriving user-defined interfaces !
enum TCKind {
tk_null, tk_void,
tk_short, tk_long, tk_ushort, tk_ulong,
tk_float, tk_double, tk_boolean, tk_char,
tk_octet, tk_any, tk_TypeCode, tk_Principal, tk_objref,
tk_struct, tk_union, tk_enum, tk_string,
tk_sequence, tk_array, tk_alias, tk_except,
tk_longlong, tk_ulonglong, tk_longdouble,
tk_wchar, tk_wstring, tk_fixed, tk_value,
tk_value_box,
tk_native, tk_abstract_interface,
tk_local_interface // latest addition
}; // not suitable for deriving user-defined interfaces
typedef string Identifier;
typedef string RepositoryId; interface TypeCode {}; // PIDL
// exception Bounds {};
// exception BadKind {};// // for all TypeCode kinds
// boolean equal (in TypeCode tc);
// TCKind kind ();// boolean equivalent(in TypeCode tc);
// TypeCode get_compact_typecode();// // for tk_objref, tk_struct, tk_union, tk_enum,
// // tk_alias, and tk_except
// RepositoryId id () raises (BadKind);// // for tk_objref, tk_struct, tk_union, tk_enum,
// // tk_alias, and tk_except
// Identifier name () raises (BadKind);// // for tk_struct, tk_union, tk_enum, and tk_except
// unsigned long member_count () raises (BadKind);
// Identifier member_name (in unsigned long index)
// raises (BadKind, Bounds);// // for tk_struct, tk_union, and tk_except
// TypeCode member_type (in unsigned long index)
// raises (BadKind, Bounds);// // for tk_union
// any member_label (in unsigned long index)
// raises (BadKind, Bounds);
// TypeCode discriminator_type () raises (BadKind);
// long default_index () raises (BadKind);// // for tk_string, tk_sequence, and tk_array
// unsigned long length () raises (BadKind);// // for tk_sequence, tk_array, and tk_alias
// TypeCode content_type () raises (BadKind);// };
interface InterfaceDef {}; /* this is the original PIDL from the lang. mapping,
but we do not use it! Instead... pseudo interface Principal
{
attribute sequence<octet> name;
};
*/ /* ... we use this little hack. It saves us fiddling with
the generated code that uses Principals. Actually, we
should not be doing this....
*/ typedef sequence<octet> Principal; interface IDLType {}; enum OperationMode {OP_NORMAL, OP_ONEWAY};
enum ParameterMode {PARAM_IN, PARAM_OUT, PARAM_INOUT}; struct ParameterDescription {
Identifier name;
TypeCode type;
IDLType type_def;
ParameterMode mode;
};
typedef sequence <ParameterDescription> ParDescriptionSeq; interface Policy
{
readonly attribute PolicyType policy_type;
Policy copy();
void destroy();
}; typedef sequence <Policy> PolicyList; interface DomainManager
{
Policy get_domain_policy(in PolicyType policy_type);
}; interface ConstructionPolicy: Policy
{
void make_domain_manager(in InterfaceDef object_type,
in boolean constr_policy);
}; typedef sequence <DomainManager> DomainManagersList;
typedef short PolicyErrorCode;
const PolicyErrorCode BAD_POLICY = 0;
const PolicyErrorCode UNSUPPORTED_POLICY = 1;
const PolicyErrorCode BAD_POLICY_TYPE = 2;
const PolicyErrorCode BAD_POLICY_VALUE = 3;
const PolicyErrorCode UNSUPPORTED_POLICY_VALUE = 4; exception PolicyError
{
PolicyErrorCode reason;
}; exception UserException {};
interface ExceptionList {};
valuetype WStringValue {
public wstring value;
};
};
#endif /* _ORB_IDL */用idl2pas orb.idl提示internal problem; please contact Inprise Customer Support
何解?