installing openPnP on ubuntu 18.04.1 x64

720 views
Skip to first unread message

Brynn Rogers

unread,
Sep 4, 2018, 3:00:34 PM9/4/18
to OpenPnP
Okay,   I am just trying to setup this old machine (dell  with core 2 and 2GB RAM) to be the openPnP machine.
I just installed Ubuntu on it, and then openPnp-develop.

then it wanted Java.   So that is kindof not clear what way is best, but I eventually found 'sudo apt install openjdk-8-jre-headless'

Then when I try "sudo ./openPnP" when in the /opt/openPnP directory, I get a pile of errors, starting with
java.awt.AWTERROR ......

NOTE: there is no openPnP.sh file that I can find in the install.   I installed openPnP from the .deb file I found.

Brynn

Jason von Nieda

unread,
Sep 4, 2018, 3:02:46 PM9/4/18
to ope...@googlegroups.com
Headless means it doesn't include the GUI stuff, with AWT being part of that. I think you can just sudo apt install default-jdk and be good to go.

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/d559c76b-044c-4255-b4c3-366f23f0644c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brynn Rogers

unread,
Sep 4, 2018, 3:15:16 PM9/4/18
to OpenPnP
Just did sudo apt install default-jre, then sudo apt install default-jdk when that didn't help.
But I get a few new errors in front of all the old errors.
starting with 
javassist.notfoundexception: org.jdesktop.beansbinding.ELProperty

down near the end of the errors, it says 
caused by: Java.lang.ClassNotFoundException: org.gnome.accesability.atkwrapper

Jason von Nieda

unread,
Sep 4, 2018, 3:16:24 PM9/4/18
to ope...@googlegroups.com
Did you remove the headless one first?

Brynn Rogers

unread,
Sep 4, 2018, 3:18:06 PM9/4/18
to OpenPnP
no.   give me a minute

Brynn Rogers

unread,
Sep 4, 2018, 3:23:37 PM9/4/18
to OpenPnP
Okay, now it seems to work!

Why does the quickstart tell me to run openpnp.sh ?   I cannot find it.

Brynn

Jason von Nieda

unread,
Sep 4, 2018, 10:04:41 PM9/4/18
to ope...@googlegroups.com
The Quick Start says to use the shell script if you download one of the archive formats. For the "installer" formats you can use the installed launcher. Blame Linux for not having standardized on a way to install an app in 20+ years :)

That being said, I don't use the Linux installers myself, and aside from having tested them once when I first created the build system, I don't test them. So if there are improvements that can be made to either the installers or the docs please let me know - or better yet - submit a pull request or edit the Wiki.

Thanks,
Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

Mike Williams

unread,
Sep 7, 2018, 11:00:05 AM9/7/18
to OpenPnP

Anyone else having errors with opencv_java342 missing in Ubuntu 18.04.1? I've tried the .deb, the .sh, and .tar.gz, all with the same error.


The only way I can get OpenPnP to launch is by building OpenCV 3.4.2 from source and executing it like this:
/usr/local/src/opencv-3.4.2/build/lib/ >LD_LIBRARY_PATH=`pwd` OpenPnP

jt whissel

unread,
Sep 7, 2018, 11:06:16 AM9/7/18
to ope...@googlegroups.com
sudo cp -p /usr/local/src/opencv-3.4.2/build/lib/ /usr/lib


For more options, visit https://groups.google.com/d/optout.


--
From,
Jt Whissel

Mike Williams

unread,
Sep 7, 2018, 11:32:35 AM9/7/18
to OpenPnP
Yes, that should work.

But, I was commenting more along the lines that the default .sh installer for OpenPnP brings its own OpenCV library with it, opencv-3.4.2-0.jar, installed by default at ~/openpnp/lib/, and OpenPnP still can't find it.

Jason von Nieda

unread,
Sep 7, 2018, 2:34:06 PM9/7/18
to ope...@googlegroups.com
What version of Java are you running?

Mike Williams

unread,
Sep 7, 2018, 3:01:06 PM9/7/18
to OpenPnP
java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)

Jason von Nieda

unread,
Sep 7, 2018, 3:04:33 PM9/7/18
to ope...@googlegroups.com
There’s a bug in the opencv library related to java 10. Downgrade to 8 and it should be fine. See https://github.com/openpnp/opencv/issues/33

Jason

Mike Williams

unread,
Sep 7, 2018, 3:23:45 PM9/7/18
to OpenPnP
Yep, that did it.

Mike

Zang Bivo

unread,
Feb 20, 2020, 8:44:59 PM2/20/20
to OpenPnP
What is the headless

Dave McGuire

unread,
Feb 20, 2020, 9:39:55 PM2/20/20
to Zang Bivo, OpenPnP
On 2/20/20 8:44 PM, Zang Bivo wrote:
> What is the headless

"No keyboard/mouse/monitor". Meaning a computer that you connect to
it over a network rather than sit in front of it.

-Dave

--
Dave McGuire
McGuire Scientific Services, LLC
New Kensington, PA
Reply all
Reply to author
Forward
0 new messages