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

Send fax desktop Application in javaFx

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to send fax using javaFx.I have tried using Asterisk.I included 3 jar file asterisk-java-0.3.1,asterisk-java-0.3.1-javadoc,asterisk-java-0.3.1-sources which is downloaded from asterisk-java.org.I have done my first program in java main class file
import org.asteriskjava.fastagi.AgiChannel;
import org.asteriskjava.fastagi.AgiException;
import org.asteriskjava.fastagi.AgiRequest;
import org.asteriskjava.fastagi.BaseAgiScript;
import org.asteriskjava.fastagi.*;

public class Asterisk extends BaseAgiScript
{
public Asterisk(){

}

public void service(AgiRequest request, AgiChannel channel)
throws AgiException
{

// Answer the channel...
answer();

// ...say hello...
streamFile("welcome");

// ...and hangup.
hangup();
}

public static void main(String[] args) {
// TODO code application logic here
}

}

when i run this in cmd(javac Asterisk.java) i get error
package org.asteriskjava.fastagi doesn't exist and shows error arrow on every keywork i.e BaseAgiScript,AgiRequest and so on.
 
Sheriff
Posts: 24654
58
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, that's only because you haven't set your classpath correctly for the compiler (something which is one of the first things that Java programmers should learn). And of those three jars, you'll only need to include the first of the three in the classpath. The compiler doesn't need the javadoc (the second jar) and neither does it need the source code (the third jar).
 
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read 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!