Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What should i give in the <pathelement> path attribute to find a class defined in a package?

 
Vish Joshi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<project default="dir" >
<property name="build" value="Build"/>
<target name="dir" >

<javac srcdir="../Build1" destdir="." includes="hello.java"/>
<java classname="hello">

<classpath>
<pathelement path="Build1/convergys"/>
</classpath>

</java>

</target>
</project>

Folder Structure is like this:-
Build
->com
->hello.class
->build2.xml



 
Vish Joshi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello.class is in "com" package
 
Vijitha Kumara
Bartender
Posts: 3914
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set it to a property which points to the top level directory of your classes.


Check Path-like structures for more information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic