[Freeswitch-users] Mod_java loading error
dipen at entvoice.com
dipen at entvoice.com
Wed Oct 14 05:54:28 PDT 2009
Hi Baskar,
Can you tell us how did you solve your problem of Loading mod_java.
I mean which steps to follow to solve the problem.
Currently i am getting the error..
[ERR] modjava.c:133 load_config() Error loading /opt/SDK/jdk/jre/lib/i386/client/libjvm.so
[CRIT] switch_loadable_module.c:871 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_java.so
**Module load routine returned an error**
Thanks & Regards
Dipen Velani.
On Wed 15/04/09 3:15 AM , Baskar <yudha2008 at gmail.com> wrote:
> Hi,
>
> Now i can able to load the mod_java in the freeswitch console.
>
> After that i have followed these method to run the PhoneTest.java
> 1) VERIFIED MY CLASSPATH IN THE JAVA.CONF.XML:
>
> 2)MY PHONETEST.CLASS IS LOCATED IN /USR/LOCAL/FREESWITCH/SCRIPT -
> DIRECTORY, SAME AS WHERE FREESWITCH.JAR IS LOCATED
>
> 3) I CREATED PHONETEST.JAR FILE FROM PHONETEST.CLASS
>
> 4)CHANGED MY DIALPLAN TO:
> Then i have complied and Run the PhoneTest.java by this methods
>
> Method1:
> [localhost scripts]# javac -cp freeswitch.jar PhoneTest.java
> [localhost scripts]# java -cp freeswitch.jar PhoneTest
> Exception in thread "main" java.lang.NoClassDefFoundError: PhoneTest
> Caused by: java.lang.ClassNotFoundException: PhoneTest
> at
> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native
> Method)
> at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at
> java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at
> java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>
> Method2:
> [localhost scripts]# javac -cp PhoneTest.jar:freeswitch.jar
> PhoneTest.java
> [localhost scripts]# java -cp PhoneTest.jar:freeswitch.jar PhoneTest
> Exception in thread "main" java.lang.NoSuchMethodError: main
>
> But I get these above errors .So Please Correct me where i am wrong
> and assist me how to compile and run the PhoneTest.java.
> --
> Warm Regards,
> N.Baskar
>
>
>
---- Msg sent via @Mail - http://atmail.com/
More information about the FreeSWITCH-users
mailing list