aspose file tools*
The moose likes Servlets and the fly likes what classpath export to compile asterisk java code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "what classpath export to compile asterisk java code " Watch "what classpath export to compile asterisk java code " New topic
Author

what classpath export to compile asterisk java code

saravanan rajendran
Ranch Hand

Joined: Jun 13, 2008
Posts: 75
Hi,
I trying to compile asterisk contain java program i putted that program in
/usr/local/apache-tomcat-5.5.26/webapps/Asianet/WEB-INF/classes/com/example/servlets/hello.java

getting error:

package org.asteriskjava.manager does not exist
import org.asteriskjava.manager.AuthenticationFailedException;

/usr/local/apache-tomcat-5.5.26/webapps/Asianet/WEB-INF/lib/
contains:servlet jar,asterisk jar,mysql.

To compile asterisk contain java file what class path have to export
please help me thank u
satishkumar janakiraman
Ranch Hand

Joined: May 03, 2004
Posts: 334
It seems your jar is not in the classpath . Include the jar in your class path by setting environment variables.
saravanan rajendran
Ranch Hand

Joined: Jun 13, 2008
Posts: 75
hi thanks for yr reply
Actually
/usr/local/apache-tomcat-5.5.26/webapps/Asianet/WEB-INF/lib/
contains:servlet jar,asterisk jar files

I set that class path like this: export CLASSPATH=/usr/local/apache-tomcat-5.5.26/webapps/Asianet/WEB-INF/lib/asterisk-java-0.3.1.jar

BUT ITS SHOWING SAME ERROR PLEASE HELP ME
satishkumar janakiraman
Ranch Hand

Joined: May 03, 2004
Posts: 334
check this link How to set a classpath?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what classpath export to compile asterisk java code