ozzner / sip2peer

Automatically exported from code.google.com/p/sip2peer
0 stars 0 forks source link

java.lang.NoClassDefFoundError #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
i have this problem when i tried to execute the project:
08-25 07:09:10.460: E/AndroidRuntime(458): java.lang.NoClassDefFoundError: 
it.unipr.ce.dsg.s2p.example.peerdroid.SimplePeer
please help me.

Original issue reported on code.google.com by alimai...@gmail.com on 25 Aug 2012 at 9:48

GoogleCodeExporter commented 8 years ago
Hi, did you put sip2peer jar library into BuildPath ?

Which ADT plugin are you using ? From ADT17 che library should be put only in a 
folder called "libs" and the tool automatically organize the buildpath of the 
project.

Original comment by picon...@gmail.com on 13 Oct 2012 at 9:32

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
yes. by default the library name in eclipse is "lib". you need to rename it to 
"libs". Even in the sample project in this library has the directory named 
"lib". Just rename it to "libs" and it should work fine

Original comment by chila...@keyboardlabs.com on 10 Dec 2012 at 1:22

GoogleCodeExporter commented 8 years ago
Hi!

I downloaded Sip2PeerExample-1.0.zip, unpacked it and tried to run in my public 
ubuntu 11.04 server according to readme that came with download (purpose is to 
have one sip rdv public peer running that i could connect with installed 
android sip2peer example - i want to try creating my own p2p android network in 
wide area).

After giving first command python scriptPython\startBootstrap.py, console gave 
me this error report:
Exception in thread "main" java.lang.NoClassDefFoundError: 
it/unipr/ce/dsg/s2p/peer/Peer
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Caused by: java.lang.ClassNotFoundException: it.unipr.ce.dsg.s2p.peer.Peer
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        ... 11 more
Could not find the main class: it.unipr.ce.dsg.s2p.example.peer.BootstrapPeer. 
Program will exit.

Original comment by p2t...@gmail.com on 4 Mar 2013 at 9:16

GoogleCodeExporter commented 8 years ago
I have encountered the same problem :(

Original comment by cs3vi...@gmail.com on 17 May 2013 at 6:27

GoogleCodeExporter commented 8 years ago
FYI: I fixed the class not found problem by compiling to Android API Level 17

Original comment by cs3vi...@gmail.com on 17 May 2013 at 6:30

GoogleCodeExporter commented 8 years ago
i am facing the same problem as #4 p2t...@gmail.com

Could not find the main class: it.unipr.ce.dsg.s2p.example.peer.BootstrapPeer.

Could anyone help ?

Original comment by hardik...@gmail.com on 3 Aug 2014 at 4:26