This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what classpath export to compile asterisk java code

 
saravanan rajendran
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems your jar is not in the classpath . Include the jar in your class path by setting environment variables.
 
saravanan rajendran
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this link How to set a classpath?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic