Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

what classpath export to compile asterisk java code

 
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
 
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?
 
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!