This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ant deploy can't find jar Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "ant deploy can Watch "ant deploy can New topic
Author

ant deploy can't find jar

Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 189

Hello,

Getting this error when running ant deploy

[javac] C:\Servers\liferay-plugins-sdk-6.0.6-20110225\ext\cvrg-portal-ext\docroot\WEB-INF\ext-impl\src\com\liferay\portlet\login\util\LoginUtil.java:17: package com.jhu.cvrg.utilities.authentication does not exist

The .classpath file contains the following entry:



And the file is indeed in the following location:

C:\Users\myuserid\cvrg_jars\cvrg_authenticator.jar

This is a custom .jar I created.

The command produces the same result in Eclipse or at the command line.

Am I missing something?


Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 189

The Answer
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

Looks like you need to fix you javac task to properly reference that JAR. (Referencing it in Eclipse is not enough))

If that doesn't help, please post the <javac> task.


JBoss In Action
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: ant deploy can't find jar
 
Similar Threads
getting started with Liferay ext environment
Beginner to Liferay 5.2.3
Failed to compile jsp files
any help how to send emails using ant
How to become expert at liferay