[jacorb-developer] common-demo.xml

McKnerney, Michael D (US SSA) michael.mcknerney at baesystems.com
Thu May 31 04:14:01 CEST 2012


FYI-

Should add -Djava.endorsed.dirs to javac in common-demo.xml
i.e.

    <target name="compile" depends="idl" >
        <mkdir dir="${classes.dir}"/>

        <javac destdir="${classes.dir}" debug="true" includeantruntime="false">
            <src path="${src.dir}" />
            <src path="${gen.dir}" />
            <classpath refid="jacorb.classpath" />
            <compilerarg value="-Djava.endorsed.dirs=${jacorb.dir}/lib" />
        </javac>
    </target>

Without it, I kept getting this error:

    [javac] Compiling 6 source files to /home/users/mcknerney/jacorb-3.0/demo/hello/build/classes
    [javac] /home/users/mcknerney/jacorb-3.0/demo/hello/build/generated/GLPI/FlyweightIdCurrentHelper.java:22: cannot find symbol
    [javac] symbol  : method create_local_interface_tc(java.lang.String,java.lang.String)
    [javac] location: class org.omg.CORBA.ORB
    [javac]                                     _type = org.omg.CORBA.ORB.init().create_local_interface_tc("IDL:GLPI/FlyweightIdCurrent:1.0", "FlyweightIdCurrent");
    [javac]                                                                     ^
    [javac] 1 error

When I added a local interface FlyweightIdCurrent to the Hello example

Take care,
mike


More information about the jacorb-developer mailing list