Help!!!! to run!!

276 views
Skip to first unread message

Ulisse Ruiz

unread,
Apr 11, 2012, 10:46:07 PM4/11/12
to OpenPnP
Hello to all ....
Sorry if I ask for help but I have problems to run the software ....
The screen that appears is this. I use a mac.

Exception in thread "main" java.lang.NoClassDefFoundError: org/openpnp/
app/Main
Caused by: java.lang.ClassNotFoundException: org.openpnp.app.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Tahnks!!!

Richard Spelling

unread,
Apr 11, 2012, 11:37:12 PM4/11/12
to ope...@googlegroups.com
I know nothing about Java. Don't like it, actually, but..

"ClassNotFound" means something is not defined somewhere?

--
Visit my online store for solar electronics: http://www.richardsfoundry.com
------------------------------------------------------------------------------
NOT sent from a Blackberry. Sent from a free hand-me-down PC running
free open source Ubuntu Linux... :-P

Jason von Nieda

unread,
Apr 11, 2012, 11:40:10 PM4/11/12
to ope...@googlegroups.com
How are you running the program?

The snapshot distribution comes with a openpnp.sh that should work on Mac. Just download the snapshot, unzip it and from the snapshot directory run:
./openpnp.sh

Jason



--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openpnp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openpnp?hl=en.


sup...@mycard.sg

unread,
Apr 11, 2012, 11:59:14 PM4/11/12
to ope...@googlegroups.com
Hi Joson

I have same issue while run the latest The snapshot distribution comes
with a openpnp.sh in Windows Visa,
Same error, Please advise.

Thanks
John

--
Thanks & regards
MyCard.sg Team

Jason von Nieda

unread,
Apr 12, 2012, 12:01:06 AM4/12/12
to ope...@googlegroups.com
In Windows you should be able to run openpnp.bat. If that fails, please send the error message.

sup...@mycard.sg

unread,
Apr 12, 2012, 12:18:49 AM4/12/12
to ope...@googlegroups.com
Hi, Joson

I tried both, same issue, Nothing was displayed after the bat file,
I don't know how to out log for cmd.exe, so I just pause and take the
full screen shot,
The screen was attached,

Thanks
John

openpnp error.jpg

Ulisse Ruiz

unread,
Apr 12, 2012, 12:26:55 AM4/12/12
to OpenPnP
I followed the instructions as described but it still gives the same
error

Jason von Nieda

unread,
Apr 12, 2012, 8:04:32 PM4/12/12
to ope...@googlegroups.com
You'll need to edit config/machine.xml and remove the <reference-camera> section. It's trying to load the Mac camera. 

Jason von Nieda

unread,
Apr 12, 2012, 8:04:36 PM4/12/12
to ope...@googlegroups.com
Can you please post a cut and paste showing your running of the command and the full output?

sup...@mycard.sg

unread,
Apr 12, 2012, 9:16:06 PM4/12/12
to ope...@googlegroups.com
Hi, Joson

You are right, it is ok after remove the <reference-camera> section;
But how load the Win camera ?

Thanks
John

Jason von Nieda

unread,
Apr 13, 2012, 9:09:29 PM4/13/12
to ope...@googlegroups.com
Try this:

<reference-camera class="org.openpnp.machine.reference.camera.VfwCamera" name="Head Tele" looking="Down" head-id="H1" driver="" show-video-source-dialog="false" show-video-format-dialog="false" show-video-display-dialog="false">
  <location units="Millimeters" x="0.0" y="-5.0" z="20.0" rotation="0.0"/>
  <units-per-pixel units="Millimeters" x="0.030745" y="0.030813" z="0.0" rotation="0.0"/>
</reference-camera>

When you run OpenPnP it will print an error message on the console showing something like this:

No driver specified for VfwCamera [Head Tele]. Available drivers are:

Pick one of the drivers for the camera you want to use and then fill in the driver="" attribute with that driver name. Then when you restart OpenPnP it should load the camera.


sup...@mycard.sg

unread,
Apr 14, 2012, 7:45:27 AM4/14/12
to ope...@googlegroups.com
Hi, Joson

I tried to put "USB Video Device" or "usbvideo.sys" or "Acer Crystal Eye webcam" ,
none of them worked. how to identify the camera driver?

attached is screen shot of my camera device under system manager. and screen shot of working on skype.

There is two <reference-camera ... > ... </reference-camera>, should i need to delete both of them and replace with the one from your previous email ? or only just delete first one and correct <table-scanner-output-directory-path>/Users/xxxxx/Desktop/scan</table-scanner-output-directory-path> and create folder scan with my computer according ?
 
Please help to advise

Thanks & Regards
John
camera with skype.jpg
cammer.jpg

sup...@mycard.sg

unread,
Apr 15, 2012, 7:15:14 PM4/15/12
to ope...@googlegroups.com
Hi, Joson

error but never "obtain a list of available drivers on the console".

Attached is screen shot of the console output and error message

Best Regards
John
viewcamera1.jpg
viewcamera2.jpg

Jason von Nieda

unread,
Apr 15, 2012, 7:21:30 PM4/15/12
to ope...@googlegroups.com
Hi John,

I am working on a new GUI that will make it easy to configure cameras. It should be released in a snapshot in the next day or two. Please wait until then and it should make things much easier for you.

I will announce the new snapshot on this list.

Jason

Karl Backström

unread,
May 6, 2012, 4:20:51 AM5/6/12
to ope...@googlegroups.com
Is it only me that still has a problem of starting openpnp (using the
openpnp.sh on OS X Lion).
I also get "java.lang.NoClassDefFoundError", have tried to remove the
camera section in the config file, but I guess that is an error that
comes later.
Also have tried to modify the -cp parameter and also env CLASSPATH
without any success.

Anyone got any ideas?

Best regards,
Karl

Jason von Nieda

unread,
May 6, 2012, 4:27:47 AM5/6/12
to ope...@googlegroups.com
Hi Karl,

Please post the exact error message. Include the output from when you start the program to when it fails.

Thanks,
Jason

Karl Backström

unread,
May 6, 2012, 4:53:40 AM5/6/12
to ope...@googlegroups.com
Sure,

here is the output from a clean clone of the project:
$ ./openpnp.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/openpnp/app/Main
Caused by: java.lang.ClassNotFoundException: org.openpnp.app.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Thanks,
Karl

chris

unread,
May 6, 2012, 6:55:24 AM5/6/12
to OpenPnP
I have the same problem, using the last snapshoot 2012-03-02-14-27-57
the error is this,

Caused by: java.lang.ClassNotFoundException:
com.lti.civil.CaptureObserver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 65 more


the whole error is this:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
com/lti/c
ivil/CaptureObserver
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.simpleframework.xml.strategy.Loader.load(Loader.java:
50)
at
org.simpleframework.xml.strategy.TreeStrategy.readValue(TreeStrategy.
java:163)
at
org.simpleframework.xml.strategy.TreeStrategy.read(TreeStrategy.java:
102)
at
org.simpleframework.xml.convert.AnnotationStrategy.read(AnnotationStr
ategy.java:100)
at org.simpleframework.xml.core.Source.getOverride(Source.java:
370)
at
org.simpleframework.xml.core.Factory.getConversion(Factory.java:207)
at
org.simpleframework.xml.core.Factory.getOverride(Factory.java:139)
at
org.simpleframework.xml.core.ObjectFactory.getInstance(ObjectFactory.
java:63)
at org.simpleframework.xml.core.Composite.read(Composite.java:
141)
at org.simpleframework.xml.core.Traverser.read(Traverser.java:
92)
at
org.simpleframework.xml.core.CompositeList.populate(CompositeList.jav
a:175)
at
org.simpleframework.xml.core.CompositeList.read(CompositeList.java:14
8)
at
org.simpleframework.xml.core.Composite.readVariable(Composite.java:68
2)
at
org.simpleframework.xml.core.Composite.readInstance(Composite.java:63
5)
at
org.simpleframework.xml.core.Composite.readUnion(Composite.java:610)
at
org.simpleframework.xml.core.Composite.readElement(Composite.java:593
)
at
org.simpleframework.xml.core.Composite.readElements(Composite.java:50
6)
at
org.simpleframework.xml.core.Composite.readSection(Composite.java:388
)
at org.simpleframework.xml.core.Composite.read(Composite.java:
367)
at
org.simpleframework.xml.core.Composite.readDefault(Composite.java:262
)
at org.simpleframework.xml.core.Composite.read(Composite.java:
232)
at org.simpleframework.xml.core.Composite.read(Composite.java:
202)
at org.simpleframework.xml.core.Composite.read(Composite.java:
150)
at
org.simpleframework.xml.core.Composite.readVariable(Composite.java:68
7)
at
org.simpleframework.xml.core.Composite.readInstance(Composite.java:63
5)
at
org.simpleframework.xml.core.Composite.readUnion(Composite.java:610)
at
org.simpleframework.xml.core.Composite.readElement(Composite.java:593
)
at
org.simpleframework.xml.core.Composite.readElements(Composite.java:50
6)
at
org.simpleframework.xml.core.Composite.readSection(Composite.java:388
)
at org.simpleframework.xml.core.Composite.read(Composite.java:
367)
at
org.simpleframework.xml.core.Composite.readDefault(Composite.java:262
)
at org.simpleframework.xml.core.Composite.read(Composite.java:
232)
at org.simpleframework.xml.core.Composite.read(Composite.java:
202)
at org.simpleframework.xml.core.Composite.read(Composite.java:
150)
at org.simpleframework.xml.core.Traverser.read(Traverser.java:
92)
at org.simpleframework.xml.core.Persister.read(Persister.java:
632)
at org.simpleframework.xml.core.Persister.read(Persister.java:
613)
at org.simpleframework.xml.core.Persister.read(Persister.java:
591)
at org.simpleframework.xml.core.Persister.read(Persister.java:
550)
at org.simpleframework.xml.core.Persister.read(Persister.java:
528)
at org.simpleframework.xml.core.Persister.read(Persister.java:
433)
at
org.openpnp.model.Configuration.loadMachine(Configuration.java:178)
at org.openpnp.model.Configuration.load(Configuration.java:79)
at org.openpnp.gui.MainFrame.<init>(MainFrame.java:225)
at org.openpnp.app.Main$1.run(Main.java:52)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
com.lti.civil.CaptureObserver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 65 more

Jason von Nieda schrieb:

Perry Harrington

unread,
May 6, 2012, 11:29:38 AM5/6/12
to ope...@googlegroups.com
This looks like you have an improper path to the JAR file. The primary error
appears to be an inability to find a method in the class specified.

You need to make certain that you have the JAR file and that the path in the
openpnp.sh script which points to the JAR file is correct.

--Perry
--
Perry Harrington W0NKE http://www.apsoft.com/
http://www.dainst.com/ http://www.eformance.com/

Those who would give up essential liberty to purchase a little temporary safety
deserve neither liberty or safety. Nor, are they likely to end up with either.
-- Benjamin Franklin


Jason von Nieda

unread,
May 6, 2012, 2:41:51 PM5/6/12
to ope...@googlegroups.com
Hi Karl,

If you are using a clone of the project you have to build the source code. I suggest instead that you use one of the snapshots from http://openpnp.org/downloads/snapshots/. These are already built and you should just be able to run openpnp.sh.

One of my projects for the next few days is to get the code building with Maven so that it's easier for other people to build from source.

Jason

Jason von Nieda

unread,
May 6, 2012, 2:45:43 PM5/6/12
to ope...@googlegroups.com
Chris,

Looks like you are running on either Windows or Linux, not Mac. You need to edit config/openpnp.xml and remove the <reference-camera> section. This is covered in the full thread which you can view here: http://groups.google.com/group/openpnp/browse_thread/thread/702b4a987ab7597b

That thread also covers adding the Windows camera section if you want to get a Windows camera going.

I have started working on a "default" configuration system that the new snapshots will contain which should boot up on any platform and then will allow you to add your platform specific cameras from the GUI. This new snapshot should be out in the next 7 days or so.

Jason

Karl Backström

unread,
May 6, 2012, 8:26:33 PM5/6/12
to ope...@googlegroups.com
Hi Jason,

yes, that was my problem. After some trial-and-error I was able to
successfully compile and start the application. Thank you for your
help.

While waiting on the new camera wizard, do you have a hint on how to
set up the camera on Mac?

Thanks,
Karl

mcgyvr

unread,
May 9, 2012, 6:55:39 PM5/9/12
to OpenPnP
Any idea when Linux will be supported?.. The readme in the snapshot
says its not yet... I'd like to play too. :)

On May 6, 8:26 pm, Karl Backström <backst...@akafugu.jp> wrote:
> Hi Jason,
>
> yes, that was my problem. After some trial-and-error I was able to
> successfully compile and start the application. Thank you for your
> help.
>
> While waiting on the new camera wizard, do you have a hint on how to
> set up the camera on Mac?
>
> Thanks,
> Karl
>
> On Mon, May 7, 2012 at 3:41 AM, Jason von Nieda <ja...@vonnieda.org> wrote:
>
>
>
>
>
>
>
> > Hi Karl,
>
> > If you are using a clone of the project you have to build the source code. I
> > suggest instead that you use one of the snapshots
> > from http://openpnp.org/downloads/snapshots/. These are already built and
> > you should just be able to run openpnp.sh.
>
> > One of my projects for the next few days is to get the code building with
> > Maven so that it's easier for other people to build from source.
>
> > Jason
>
> > On Sun, May 6, 2012 at 1:53 AM, Karl Backström <backst...@akafugu.jp> wrote:
>
> >> Sure,
>
> >> here is the output from a clean clone of the project:
> >> $ ./openpnp.sh
> >> Exception in thread "main" java.lang.NoClassDefFoundError:
> >> org/openpnp/app/Main
> >> Caused by: java.lang.ClassNotFoundException: org.openpnp.app.Main
> >>        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> >>        at java.security.AccessController.doPrivileged(Native Method)
> >>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> >>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> >>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> >> Thanks,
> >> Karl
>
> >> On Sun, May 6, 2012 at 5:27 PM, Jason von Nieda <ja...@vonnieda.org>
> >> wrote:
> >> > Hi Karl,
>
> >> > Please post the exact error message. Include the output from when you
> >> > start
> >> > the program to when it fails.
>
> >> > Thanks,
> >> > Jason
>
> >> > On Sun, May 6, 2012 at 1:20 AM, Karl Backström <backst...@akafugu.jp>

Jason von Nieda

unread,
May 10, 2012, 12:05:44 AM5/10/12
to ope...@googlegroups.com
The program will run on Linux without serial or camera support currently. If anyone wants one of those someone will need to step in and add it.
Reply all
Reply to author
Forward
0 new messages