Quantcast

Cannot start WebcamStudio

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Cannot start WebcamStudio

Birkoff
So I am trying to get WebcamStudio running. I am using gentoo x86_64 (Linux section-four 2.6.27-gentoo-r8 #23 SMP Fri Mar 5 12:29:37 AMT 2010 x86_64 Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz GenuineIntel GNU/Linux) with gnome.

I download the code using: svn co https://webcamstudio.svn.sourceforge.net/svnroot/webcamstudio/trunk webcamstudio
README.txt said to use "ant clean jar" to get the 'binaries' so I did.

After that I got the WebcamStudio.jar file in the dist/ folder. I tried to run it with:
java -version
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)

java -jar WebcamStudio.jar

/opt/ibm-jre-bin-1.6.0.7/bin/java -version
> java version "1.6.0"
> Java(TM) SE Runtime Environment (build pxa6460sr7-20091215_02(SR7))
> IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr7-20091214_49398 (JIT enabled, > AOT enabled)
> J9VM - 20091214_049398
> JIT  - r9_20091123_13891
> GC   - 20091111_AA)
> JCL  - 20091202_01

/opt/ibm-jre-bin-1.6.0.7/bin/java -jar dist/WebcamStudio.jar

I am getting the following error (for both):
Could not find the main class: webcamstudio.Main. Program will exit.

I tried to "unzip" the .jar file and run the .class files directly but I couldn't find the one with the main class. Any ideas ?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cannot start WebcamStudio

Birkoff
Sorry, forgot to get the full error message on the post (and didn't find an edit button).

Exception in thread "main" java.lang.NoClassDefFoundError: org/gstreamer/elements/RGBDataSink$Listener
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
Caused by: java.lang.ClassNotFoundException: org.gstreamer.elements.RGBDataSink$Listener
        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:303)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
        ... 12 more
Could not find the main class: webcamstudio.Main. Program will exit.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cannot start WebcamStudio

vekin
I had the same problem.
If you read the output of the 'ant clean jar' it should give you a long command along the lines of.

     [echo] To run this application from the command line without Ant, try:
     [echo] java -cp "/home/wut/webcamstudio-read-only/trunk/libraries/appframework-1.0.3.jar:/home/wut/webcamstudio-read-only/trunk/libraries/swing-worker-1.1.jar:/home/wut/webcamstudio-read-only/trunk/libraries/mail.jar:/home/wut/webcamstudio-read-only/trunk/libraries/jna-3.0.4.jar:/home/wut/webcamstudio-read-only/trunk/libraries/commons-cli-1.2.jar:/home/wut/webcamstudio-read-only/trunk/libraries/commons-codec-1.2.jar:/home/wut/webcamstudio-read-only/trunk/libraries/commons-httpclient-3.1.jar:/home/wut/webcamstudio-read-only/trunk/libraries/jcl104-over-slf4j-1.4.2.jar:/home/wut/webcamstudio-read-only/trunk/libraries/netty-3.1.5.GA.jar:/home/wut/webcamstudio-read-only/trunk/libraries/jtwitter.jar:/home/wut/webcamstudio-read-only/trunk/libraries/jna-3.2.4.jar:/home/wut/webcamstudio-read-only/trunk/libraries/dbus.jar:/home/wut/webcamstudio-read-only/trunk/libraries/gstreamer-java-1.4.jar:/home/wut/webcamstudio-read-only/trunk/dist/WebcamStudio.jar" webcamstudio.Main

The program started for me with this command.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cannot start WebcamStudio

hellocatfood
vekin wrote
I had the same problem.
If you read the output of the 'ant clean jar' it should give you a long command along the lines of.

     [echo] To run this application from the command line without Ant, try:
     [echo] java -cp "/home/wut/webcamstudio-read-only/trunk/libraries/appframework-1.0.3.jar:/home/wut/webcamstudio-read-only/trunk/libraries/swing-worker-1.1.jar:/home/wut/webcamstudio-read-only/trunk/libraries/mail.jar:/home/wut/webcamstudio-read-only/trunk/libraries/jna-3.0.4.jar:/home/wut/webcamstudio-read-only/trunk/libraries/commons-cli-1.2.jar:/home/wut/webcamstudio-read-only/trunk/libraries/commons-codec-1.2.jar:/home/wut/webcamstudio-read-only/trunk/libraries/commons-httpclient-3.1.jar:/home/wut/webcamstudio-read-only/trunk/libraries/jcl104-over-slf4j-1.4.2.jar:/home/wut/webcamstudio-read-only/trunk/libraries/netty-3.1.5.GA.jar:/home/wut/webcamstudio-read-only/trunk/libraries/jtwitter.jar:/home/wut/webcamstudio-read-only/trunk/libraries/jna-3.2.4.jar:/home/wut/webcamstudio-read-only/trunk/libraries/dbus.jar:/home/wut/webcamstudio-read-only/trunk/libraries/gstreamer-java-1.4.jar:/home/wut/webcamstudio-read-only/trunk/dist/WebcamStudio.jar" webcamstudio.Main

The program started for me with this command.
I tried running the svn version with this code and it worked but I decided to go back to using webcamstudio_0.57alpha2_all.deb. However, now when I run this my video output is blinking and green. Is there any way to undo the code the posted?
Loading...