Damjan,<br><br>Thanks for the reply.&nbsp; I had already worked through the issues of the -D option not allowed twice and CLASSPATH being ignored.&nbsp; I am successfully launching the fs_ivr class (yes, I do intend to use a jar file) but I have hit another snag (see trace below).&nbsp; It appears the app is not finding the native interface library.&nbsp; Where do I declare that path?
<br><br>Jonathan<br><br>2007-11-25 23:17:53 [NOTICE] switch_core_state_machine.c:134 switch_core_standard_on_execute() Execute java(fs_ivr arg1 arg2 arg3)<br>Exception in thread &quot;Thread-0&quot; java.lang.reflect.InvocationTargetException
<br>&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>&nbsp;&nbsp;&nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)<br>&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:585)<br>&nbsp;&nbsp;&nbsp; at org.freeswitch.Launcher.launch(Launcher.java:80)<br>Caused by: java.lang.UnsatisfiedLinkError: console_log<br>&nbsp;&nbsp;&nbsp; at org.freeswitch.swig.freeswitchJNI.console_log
(Native Method)<br>&nbsp;&nbsp;&nbsp; at org.freeswitch.swig.freeswitch.console_log(freeswitch.java:13)<br>&nbsp;&nbsp;&nbsp; at fs_ivr.run(fs_ivr.java:27)<br>&nbsp;&nbsp;&nbsp; ... 5 more<br>2007-11-25 23:17:53 [NOTICE] switch_core_state_machine.c:184 switch_core_standard_on_execute() Hangup PortAudio/1234 [CS_EXE
<br><br><br><br><div class="gmail_quote">On Nov 25, 2007 10:35 PM, Damjan Jovanovic &lt;<a href="mailto:damjan@ecntelecoms.com">damjan@ecntelecoms.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
X-ECN Telecoms-MailScanner-Information: Contact ECN Telecoms<br>X-ECN Telecoms-MailScanner: Found to be clean<br>X-ECN Telecoms-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,<br> &nbsp; &nbsp; &nbsp; &nbsp;score=-97.488, required 6, AWL -
0.22, FH_HOST_ALMOST_IP 1.75,<br> &nbsp; &nbsp; &nbsp; &nbsp;RCVD_IN_SORBS_DUL 0.88, RDNS_DYNAMIC 0.10,<br> &nbsp; &nbsp; &nbsp; &nbsp;USER_IN_WHITELIST -100.00)<br>X-ECN Telecoms-MailScanner-From: <a href="mailto:damjan@ecntelecoms.com">damjan@ecntelecoms.com</a>
<br>X-Spam-Status: No<br><div class="Ih2E3d"><br>On Sat, 2007-11-24 at 19:46 -0800, jonathan augenstine wrote:<br>&gt; I am encountering the following error when I try to use the mod_java<br>&gt; interface:<br>&gt;<br>&gt; 2007-11-24 18:38:07 [NOTICE] switch_core_state_machine.c:134
<br>&gt; switch_core_standard_on_execute() Execute java(fs_ivr arg1 arg2 arg3)<br>&gt; Exception in thread &quot;Thread-0&quot; java.lang.NoClassDefFoundError:<br>&gt; org/freeswitch/Launcher<br>&gt;<br>&gt; My dialplan has the following entry:
<br>&gt;<br>&gt; &nbsp;&lt;extension name=&quot;Validation_Demo&quot;&gt;<br>&gt; &nbsp; &nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;1234&quot;&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;java&quot; data=&quot;fs_ivr arg1 arg2 arg3&quot;/&gt;
<br>&gt; &nbsp; &nbsp; &lt;/condition&gt;<br>&gt; &nbsp; &lt;/extension&gt;<br><br></div>I&#39;m assuming fs_ivr is a class without a package and outside any jar.<br><div class="Ih2E3d"><br>&gt; java.conf.xml has the following entry:<br>
&gt;<br>&gt; &nbsp;&lt;options&gt;<br>&gt; &nbsp; &nbsp; &lt;!-- Your class path (make sure freeswitch.jar is on it) --&gt;<br>&gt; &nbsp; &nbsp; &lt;option<br>&gt; value=&quot;-Djava.class.path=/usr/local/freeswitch/scripts/freeswitch.jar&quot;/&gt;
<br><br></div>Make sure you have a /usr/local/freeswitch/scripts/freeswitch.jar<br><div class="Ih2E3d"><br>&gt; &nbsp; &nbsp; &lt;option<br>&gt; value=&quot;-Djava.class.path=/usr/local/freeswitch/scripts/fs_ivr&quot;/&gt;<br><br></div>
This means you have a directory /usr/local/freeswitch/scripts/fs_ivr<br>containing fs_ivr.class. Also I&#39;m not sure if you can have multiple<br>-Djava.class.paths like this (that could be why it isn&#39;t finding<br>org/freeswitch/Launcher), you might have to have one colon (:) separated
<br>list of paths. This is also why I prefer having JARs by the way, you<br>don&#39;t have to set the classpath before running freeswitch and reload<br>mod_java if it changes, and if you overwrite the JAR with a newer<br>
version it starts using the newer version for calls made from then on<br>(no dialplan editing required :-).<br><br>&gt; &nbsp; &nbsp; &lt;!-- Enable remote debugging --&gt;<br>&gt; &nbsp; &nbsp; &lt;option<br>&gt; value=&quot;-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=MailScanner warning: numerical links are often malicious: 
<a href="http://127.0.0.1:8000" target="_blank">127.0.0.1:8000</a>&quot;/&gt;<br><div class="Ih2E3d">&gt; &nbsp; &lt;/options&gt;<br>&gt;<br>&gt; I have also tried setting the class path to freeswitch.jar in the<br>&gt; CLASSPATH environment variable.
<br>&gt;<br>&gt; export CLASSPATH=/usr/local/freeswitch/scripts/freeswitch.jar.<br><br></div>The CLASSPATH environment variable is ignored.<br><div class="Ih2E3d"><br>&gt; None of the permutations have met with success. &nbsp;Can anyone spot the
<br>&gt; error I am making? &nbsp;Any ideas on what to try?<br><br></div>Sorry it&#39;s so confusing, I&#39;ll document it better when you get it<br>working.<br><br>&gt; Jonathan<br>&gt;<br><br>Damjan<br><br><br><br>_______________________________________________
<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users
</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br>