cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
941
Views
9
Helpful
2
Replies

how to import a java class from another package

How can one import a java class from another service package A to a java class in service package B?

1 Accepted Solution

Accepted Solutions

frjansso
Cisco Employee
Cisco Employee

Add it to build.xml:

<property name="topology-discovery.dir" value="../../../topology-discovery/shared-jar"/>

...

<path id="topology-discovery-libs">

    <fileset dir="${topology-discovery.dir}">

      <include name="*.jar"/>

    </fileset>

  </path>

  <target name="compile">

    ...

      <classpath refid="core-libs" />

      <classpath refid="topology-discovery-libs" />

    ...

  </target>

View solution in original post

2 Replies 2

frjansso
Cisco Employee
Cisco Employee

Add it to build.xml:

<property name="topology-discovery.dir" value="../../../topology-discovery/shared-jar"/>

...

<path id="topology-discovery-libs">

    <fileset dir="${topology-discovery.dir}">

      <include name="*.jar"/>

    </fileset>

  </path>

  <target name="compile">

    ...

      <classpath refid="core-libs" />

      <classpath refid="topology-discovery-libs" />

    ...

  </target>

thank you Fredrik for the response. I will try today and let you know ...

Polls
AI-powered tools for network troubleshooting are likely to be part of everyone’s workflow sooner or later. What is the single biggest challenge or concern you see with adopting these tools in your organization?