Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

netbeans ant task classpathref reference not found

Thread view: 
lionelv@gmail.com - 09 Feb 2007 05:45 GMT
Adding the following to build.xml

<taskdef
   name="cup"
   classname="java_cup.anttask.CUPTask"
   classpathref="${basedir}\jars\java_cup_11a.jar"
/>

Produces the error:

C:\Documents and Settings\Vandenbergl\Tool\build.xml:85: Reference C:
\Documents and Settings\Vandenbergl\Tool\jars\java_cup_11a.jar not
found.

Yet the path it reports as not found is correct.

Can anyone tell me what Netbeans actually wants here?

Thanks

Lionel.
Arne Vajhøj - 09 Feb 2007 20:46 GMT
> Adding the following to build.xml
>
[quoted text clipped - 13 lines]
>
> Can anyone tell me what Netbeans actually wants here?

As I remember it then the classpath attribut point to
a classpath like a jar file but a classpathref points
to a logical name containing a classpath defined
previously.

Try:

classpath="${basedir}\jars\java_cup_11a.jar"

Arne
lionelv@gmail.com - 12 Feb 2007 00:12 GMT
Arne Vajh?j wrote:
> > Adding the following to build.xml
> >
[quoted text clipped - 22 lines]
>
> classpath="${basedir}\jars\java_cup_11a.jar"

You nailed it. Thanks.

Lionel.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.