Installation steps for OpenPnP onto a clean machine with Ubuntu 14.04

1,713 views
Skip to first unread message

Bob Beattie

unread,
Sep 5, 2014, 7:04:42 AM9/5/14
to ope...@googlegroups.com
Installation steps for OpenPnP onto a clean machine with Ubuntu 14.04

Notes on the text:
Commands to be entered by the kayboard are within single quote ' '
Keypresses are in square brackets [ ]
For example -
  'cd Downloads' [Enter]
means type
  cd Downloads
then press the Enter key

Commands which start with 'sudo' may require you to enter your login password.
There may be syntax errors in the text.


Ubuntu preparation:
 1. Download and burn to disk Ubuntu 14.04
 2. Insert Ubuntu disk into target machine CD drive
 3. Boot target PC from CD
 4. Follow Ubuntu installation instructions **be very careful not to erase a disk you want to keep**
 5. Boot machine into Ubuntu.  Log in and bring up a terminal (Ctrl-Alt-t)
 6. Type 'sudo apt-get update' [Enter].  Wait for this to complete
 7. Type 'sudo apt-get upgrade' [Enter].  Wait for this to complete
 8. Reboot Ubuntu (top right corner, click and select reboot)

Oracle Java download and setup:
 9. Log back in a bring up the web browser Firefox
11. Navigate to Downloads -> Java and select Java 1.7 JDK
12. Agree to the down licence then select the .tar.gz file.  Do not download an .rpm variant
13. Once download is complete, open a terminal (Ctrl-Alt-t) and type:
14. 'cd Downloads' [Enter]
15. 'tar xvzf jdk...' [Enter]
16. 'ls' [Enter] and you should see a directory jdk1.7.0_67
17. 'sudo mkdir -p /usr/local/java' [Enter]
18. 'sudo mv jdk1.7.0_67 /usr/local/java' [Enter]
19. 'sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.7.0_67/bin/java" 1 [Enter]
20. 'sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_67/bin/javac" 1 [Enter]
21. 'sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.7.0_67/bin/javaws" 1 [Enter]
22. 'sudo update-alternatives --set java /usr/local/java/jdk1.7.0_45/bin/java' [Enter]
23. 'sudo update-alternatives --set javac /usr/local/java/jdk1.7.0_45/bin/javac' [Enter]
24. 'sudo update-alternatives --set javaws /usr/local/java/jdk1.7.0_45/bin/javaws' [Enter]
25. 'gedit ~/.bashrc' and scroll to the bottom of the file
26. Press [Enter] if you need to be on a new line and add the following:
27. 'JAVA_HOME=/usr/local/jdk1.7.0_67'
28. 'export $PATH:$JAVA_HOME/bin'
29. 'export $JAVA_HOME'
30. Close gedit and agree to save the file
31. Log out of your Ubuntu session. (Top right corner, log out)
32. Log back in and bring up a terminal (Ctrl-Alt-t)
33. 'java -version' should report 1.7.0_67
34. 'javac -version' should also report 1.7.0_67

rxtxComm Java I/O software download and setup:
35. 'sudo apt-get install dpkg-dev' [Enter]
36. 'cd ~/Downloads' [Enter]
37. 'sudo apt-get source rxtxlib-java' [Enter]
38. 'cd rxtx...' [Enter]
39. '.configure' [Enter] and ensure no errors are reported
40. 'make' [Enter]
41. 'sudo make install' [Enter]

Maven IDE install:
42. Using the mouse, run the Software Centre application and search for and install maven.  Close the application when finished.

Unzip util install:
43. 'sudo apt-get install unzip' [Enter]

OpenPnP source download:
44. In Firefox, navigate to www.openpnp.org then navigate to the OpenPnP GitHub link.
    On the right panel side, select the option to download the .ZIP
Select save to Downloads

Building OpenPnP:
45. 'cd ~/openpnp-dev/gui' [Enter]
'mvn clean' [Enter]
'mvn package' [Enter]
    './openpnp.sh' [Enter]  should run and bring up the OpenPnP main screen.

Martin K

unread,
Sep 5, 2014, 7:36:01 AM9/5/14
to ope...@googlegroups.com
On 9/5/2014 7:04 AM, Bob Beattie wrote:
> Installation steps for OpenPnP onto a clean machine with Ubuntu 14.04
>
>
...

Bob, thank you very much for writing this up. I'm looking forward to
trying it out. I can give you feedback on how it worked for me.
Are you going to publish this online somewhere?

-
Martin K

mojalovaa1

unread,
Sep 5, 2014, 10:01:41 AM9/5/14
to ope...@googlegroups.com
Super Bob
very well explained, thanks a lot, now I was already a little clearer to understand how this is put into a single unit, I tried to run the program in Windows but was always blocked the computer and I could camera to turn it on, I'll try to install Ubuntu

Jason von Nieda

unread,
Sep 5, 2014, 12:35:17 PM9/5/14
to ope...@googlegroups.com
Thanks for writing this up Bob. This will make things much easier for our Linux users. 

Would you mind if I included your instructions on the OpenPnP 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/8ffc3e15-ebaf-4236-b4fb-99a7a8e0f576%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bob Beattie

unread,
Sep 5, 2014, 1:09:39 PM9/5/14
to ope...@googlegroups.com
Hi Jason,

Martin K is going to try it out and report any issues.
Please feel free to take my write-up and his comments and publish onto the wiki.

I will make the GRBL modification notes a better quality.

Br,
Bob.

Martin K

unread,
Sep 5, 2014, 1:13:54 PM9/5/14
to ope...@googlegroups.com
Note of reference is that I'm using a TinyG and not a grbl, I believe it
will basically be the same because it's just sending G-code to a serial
port, yes? (once the TinyG is setup)

Thanks,
Martin

Bob Beattie

unread,
Sep 6, 2014, 2:54:12 PM9/6/14
to ope...@googlegroups.com
The setup procedure to get OpenPnP running will be the same whether you use GRBL or TinyG.

Br,
Bob.

mojalovaa1

unread,
Sep 29, 2014, 7:20:59 AM9/29/14
to ope...@googlegroups.com

Bob , can I use Debian for open pnp?

Bob Beattie

unread,
Sep 29, 2014, 9:56:20 AM9/29/14
to ope...@googlegroups.com
Yes, you should be able to use Debian instead of Ubuntu, as Ubuntu is a derivative.
There is a slight difference in how the two OS handle the SuperUser account, but all should be just the same.

....which reminds me, I still have to write up the process of compiling and programming the GRBL code into an Arduino Mega2560 board.

mojalovaa1

unread,
Oct 2, 2014, 11:15:45 AM10/2/14
to ope...@googlegroups.com
After 3 day I m install ubuntu 14.04 but not work correct , he is very very slow  , ca you help me or I need install older version like 10.04.

comp is : 3.6 GHz , 1.25 Giga. ram , 2 hdd , one is 160 and second for ubuntu is 20 Giga.

Cri S

unread,
Oct 3, 2014, 12:30:54 PM10/3/14
to ope...@googlegroups.com
For lubuntu I can share one script for installing it.

mojalovaa1

unread,
Oct 3, 2014, 2:59:55 PM10/3/14
to ope...@googlegroups.com

I m install lubuntu , vauuuu very good work  , thanks.
I have some very old comp with I use for mach 3 , it is 1.6GHz , 1 GiB ram ,  who  linuks I ca use for may pnp machine on that comp

mojalovaa1

unread,
Oct 3, 2014, 4:20:48 PM10/3/14
to ope...@googlegroups.com
I not have rxtx java on my linux , where I can download an how install

Cri S

unread,
Oct 3, 2014, 4:26:08 PM10/3/14
to ope...@googlegroups.com
Step 35 to 41 from bobs list.

mojalovaa1

unread,
Oct 3, 2014, 4:40:49 PM10/3/14
to ope...@googlegroups.com

elektronika@elektronika-Aspire-SA80:~/Downloads$ sudo apt-get source rxtxlib-java
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to find a source package for rxtxlib-java
elektronika@elektronika-Aspire-SA80:~/Downloads$


I m tray all time but can

Cri S

unread,
Oct 3, 2014, 5:28:02 PM10/3/14
to ope...@googlegroups.com
As I remember I'm using something like this:
sudo apt-get install librxtx-java
It need symlinking the lib to the java lib dir.

Cri S

unread,
Oct 3, 2014, 5:31:42 PM10/3/14
to ope...@googlegroups.com
As soon I'm home, 3-4 hours, I can post the script. It works running from USB stick too.

mojalovaa1

unread,
Oct 3, 2014, 5:31:48 PM10/3/14
to ope...@googlegroups.com
Can you give me direct link for download Java JDK7 , I think that is problem in Java

mojalovaa1

unread,
Oct 3, 2014, 5:35:51 PM10/3/14
to ope...@googlegroups.com
elektronika@elektronika-Aspire-SA80:~/Downloads$ tar xvzf jdk...
tar (child): jdk...: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Cri S

unread,
Oct 3, 2014, 6:10:08 PM10/3/14
to ope...@googlegroups.com
It's a typo error. It should be
. tar -xzvf jdk...

mojalovaa1

unread,
Oct 3, 2014, 6:28:16 PM10/3/14
to ope...@googlegroups.com


On Saturday, October 4, 2014 12:10:08 AM UTC+2, Cri S wrote:
It's a typo error. It should be
. tar -xzvf jdk...

Pleas if you can write  all process with download link , I m try all but can run software , I have lubuntu 14.04
Thank you.

mojalovaa1

unread,
Oct 4, 2014, 3:21:18 AM10/4/14
to ope...@googlegroups.com
rxtxComm Java I/O software download and setup:
35. 'sudo apt-get install dpkg-dev' [Enter]
36. 'cd ~/Downloads' [Enter]
37. 'sudo apt-get source rxtxlib-java' [Enter]
38. 'cd rxtx...' [Enter]
39. '.configure' [Enter] and ensure no errors are reported
40. 'make' [Enter]
41. 'sudo make install' [Enter]

I can do this , what is problems?

mojalovaa1

unread,
Oct 4, 2014, 7:58:17 AM10/4/14
to ope...@googlegroups.com
In this moment I m run open pnp  with lubuntu , but , but , almost nothing bob  explain not work , instalation Java JDK 7 not work on lubuntu with that system , rxtx install not work with that system on lubuntu .
I not have mega2560 board end I can not tray  rxtx  , I m tray web cam but not work , I do not know how setup web camera .
Can you give more information  for install an use openpnp ?
Thanks



Cri S

unread,
Oct 4, 2014, 4:35:35 PM10/4/14
to ope...@googlegroups.com
My install script is this, and it works after plain installation of lubuntu.


echo install oracle java 7 /////////////////////////////////////////
sudo add-apt-repository  -y ppa:webupd8team/java
sudo apt-get -qq update
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
sudo apt-get -y -qq  install oracle-java7-installer
sudo apt-get -y -qq install oracle-java7-set-default

# used /usr/lib instead of /usr/java/packages/lib/i386 for platform portability
echo install rxtx lib /////////////////////////////////////////
sudo apt-get -y -qq install librxtx-java
test -f  /usr/lib/jni/librxtxI2C.so && sudo ln -s /usr/lib/jni/librxtxI2C.so /usr/lib
test -f  /usr/lib/jni/librxtxParallel.so && sudo ln -s /usr/lib/jni/librxtxParallel.so /usr/lib
test -f /usr/lib/jni/librxtxRaw.so && sudo ln -s /usr/lib/jni/librxtxRaw.so /usr/lib
test -f /usr/lib/jni/librxtxRS485.so && sudo ln -s /usr/lib/jni/librxtxRS485.so /usr/lib
test -f /usr/lib/jni/librxtxSerial.so && sudo ln -s /usr/lib/jni/librxtxSerial.so /usr/lib

echo install maven  /////////////////////////////////////////
 sudo apt-get -y -qq install maven

echo install opencv 2.4 /////////////////////////////////////////
sudo apt-get -y -qq install libopencv-dev

echo build openpnp /////////////////////////////////////////
wget https://github.com/openpnp/openpnp/archive/develop.zip && mv develop.zip openpnp-src.zip
unzip openpnp-src.zip
cd openpnp-develop/gui
mvn clean
mvn package



Cri S

unread,
Oct 4, 2014, 5:27:46 PM10/4/14
to ope...@googlegroups.com
for webcam, launch guvcview and check if webcam works.
Othwerwise use lsusb to check if the webcam is listed.
Eventually disconnect usb, attach usb and after that launch dmesg .
Post the last lines starting with usb, the lines that are written after plugging in the usb connector.
Maybe you need adding insmod command or driver for you'r particular webcam.
Remember to tell us what type of camera you have.

Cri

mojalovaa1

unread,
Oct 5, 2014, 6:54:22 AM10/5/14
to ope...@googlegroups.com
Camera work correct on my comp. but when start open pnp not work , if I click on camera spec. or some of parameters of the camera than open pnp  shut down , an on the terminal have this :

elektronika@elektronika-Aspire-SA80:~/openpnp-dev/gui$ ./openpnp.sh
The vonnieda.org Java video capture kit is unable to load it's native layer.
Please make sure you have org_vonnieda_vfw_CaptureDevice.dll in your
PATH, Windows directory or current directory.
If you do not have this file, you should be able to find the latest
version at http://www.vonnieda.org/software.html.
Load failed due to:
java.lang.UnsatisfiedLinkError: no org_vonnieda_vfw_CaptureDevice in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at org.vonnieda.vfw.CaptureDevice.<clinit>(CaptureDevice.java:78)
    at org.openpnp.machine.reference.camera.VfwCamera.getDrivers(VfwCamera.java:114)
    at org.openpnp.machine.reference.camera.wizards.VfwCameraConfigurationWizard.<init>(VfwCameraConfigurationWizard.java:82)
    at org.openpnp.machine.reference.camera.VfwCamera.getConfigurationWizard(VfwCamera.java:181)
    at org.openpnp.gui.CamerasPanel$3.valueChanged(CamerasPanel.java:199)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:154)
    at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(DefaultListSelectionModel.java:685)
    at javax.swing.plaf.basic.BasicTableUI$Handler.setValueIsAdjusting(BasicTableUI.java:953)
    at javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(BasicTableUI.java:1166)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
    at java.awt.Component.processMouseEvent(Component.java:6516)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
    at java.awt.Component.processEvent(Component.java:6281)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4872)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4698)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4698)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:708)
    at java.awt.EventQueue$4.run(EventQueue.java:706)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
    at org.openpnp.gui.MainFrame$2.dispatchEvent(MainFrame.java:345)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

My web cam is prestigio PWC413 .


mojalovaa1

unread,
Oct 5, 2014, 7:04:00 AM10/5/14
to ope...@googlegroups.com
elektronika@elektronika-Aspire-SA80:~$ lsusb
Bus 001 Device 004: ID 093a:2700 Pixart Imaging, Inc.
Bus 001 Device 002: ID 03f0:8911 Hewlett-Packard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub



mojalovaa1

unread,
Oct 5, 2014, 7:46:02 AM10/5/14
to ope...@googlegroups.com
Las line is : [ 3732.326863] input: USB2.0_Camera as /devices/pci0000:00/0000:00:03.3/usb1/1-4/1-4:1.0/input/input7

Cri S

unread,
Oct 5, 2014, 8:22:47 AM10/5/14
to ope...@googlegroups.com
The problem is that on machine config XML (probably) you try tu use the configuration for windows dll instead of using the linux so file. Can you post the congig file.

mojalovaa1

unread,
Oct 5, 2014, 8:38:28 AM10/5/14
to ope...@googlegroups.com
Yes , now work ok , I had to unplug the camera and re-connect .

Thanks for help .

Can I find some manual for use openpnp software?

Bob Beattie

unread,
Oct 6, 2014, 10:57:47 AM10/6/14
to ope...@googlegroups.com
Hi Mojo,

I've just caught up with all the posts.

Since you have a working Lubuntu setup, can you create a list of steps to go from a new install to a working OpenPnP ?
Then we will have steps for both Ubuntu & Lubuntu.

Bob.

mojalovaa1

unread,
Oct 6, 2014, 1:03:07 PM10/6/14
to ope...@googlegroups.com
Yes Bob , I can , but first must  make new lubuntu system because something not work correct .
Maybe I will tomorrow  do that .

mojalovaa1

unread,
Oct 6, 2014, 2:26:12 PM10/6/14
to ope...@googlegroups.com
Can you help me , you are write this : # used /usr/lib instead of /usr/java/packages/lib/i386 for platform portability
I not have that folder , I have this : /usr/lib/i386-linux-gnu  , or this : /usr/lib/jvm/java-7-oracle/lib/i386 , can you say me how I need make  that ?

Cri S

unread,
Oct 6, 2014, 6:58:30 PM10/6/14
to ope...@googlegroups.com


On Monday, October 6, 2014 8:26:12 PM UTC+2, mojalovaa1 wrote:
Can you help me , you are write this : # used /usr/lib instead of /usr/java/packages/lib/i386 for platform portability
I not have that folder , I have this : /usr/lib/i386-linux-gnu  , or this : /usr/lib/jvm/java-7-oracle/lib/i386 , can you say me how I need make  that ?


Than you seems to have a different lubuntu.
post the output of this:
uname -a

mine is this:
Linux av-1005HA 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:45 UTC 2014 i686 i686 i686 GNU/Linux

download the attached file and execute
java GetSystemProperty java.library.path

mine output was
/usr/java/packages/lib/i386:/lib:/usr/lib

|This mean that java search native libs inside
/usr/java/packages/lib/i386
or
/lib
or
/usr/lib

Choose one solutuion from the output without using /lib .
Link the 2.2 libs too, i don`t remember if i have omitted it in the list above.
Using ln instead of cp has the advantage that automatic system upgrade works transparently.
The default installation for librxtx-java is /usr/lib/jni

just to be sure, include the output of
java -version
and 
javac -version

in the reply.



 
GetSystemProperty.class

mojalovaa1

unread,
Oct 7, 2014, 3:25:11 AM10/7/14
to ope...@googlegroups.com
Linux elektronika-Aspire-SA80 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 i686 i686 GNU/Linux

/usr/lib/jni

/usr/lib/jvm/java-7-oracle/lib/i386

java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode)

javac 1.7.0_67




Cri S

unread,
Oct 7, 2014, 6:21:49 AM10/7/14
to ope...@googlegroups.com
If executing
java GetSystemProperty java.library.path
If you get the jni lib then no on or cp is to do.
Do you have used the instruction from Bob?

mojalovaa1

unread,
Oct 7, 2014, 7:15:02 AM10/7/14
to ope...@googlegroups.com
No I m use  yours instruction  , when I m come to step 7 than say  script "used" not correct  .
I have this folder :

/usr/lib/jvm/java-7-oracle/lib/i386/jli
/usr/lib/jni
/usr/lib
/lib

Cri S

unread,
Oct 7, 2014, 7:59:20 AM10/7/14
to ope...@googlegroups.com
OK I have realized what you error is.
The # is the comment delimiter.
It is possible that you have omitted it or not using the bash shell because having used sudo sh.
Otherwise substitute the hash with echo.

mojalovaa1

unread,
Oct 7, 2014, 8:53:00 AM10/7/14
to ope...@googlegroups.com

Okay, I'll go once more to see whether they will go

mojalovaa1

unread,
Oct 7, 2014, 12:21:53 PM10/7/14
to ope...@googlegroups.com
what do you suggest as a solution to the problem

mojalovaa1

unread,
Oct 10, 2014, 5:01:59 PM10/10/14
to ope...@googlegroups.com
Bob , can you write how I can install software on arduino 2560 and make setup for run  pnp?

Martin K

unread,
Feb 12, 2015, 9:34:24 AM2/12/15
to ope...@googlegroups.com
Bob,
This was months ago, but for many excuses I was unable to try this out
until recently.
I started at about step 9 because I'm not new to linux. My issue in
taking forever to get back to you was that the Ubuntu installer wouldn't
work with my high resolution monitor. I couldn't read the garbled text
and Ubuntu no longer has a text mode installer. But the latest version
of Ubuntu seems to have fixed this problem.

I'll add some comments inline:


On 9/5/2014 7:04 AM, Bob Beattie wrote:
> Oracle Java download and setup:
> 9. Log back in a bring up the web browser Firefox
> 10. Go to http://www.oracle.com
> 11. Navigate to Downloads -> Java and select Java 1.7 JDK
> 12. Agree to the down licence then select the .tar.gz file. Do not
> download an .rpm variant

It appears that they don't call this the "JDK" anymore.

> 13. Once download is complete, open a terminal (Ctrl-Alt-t) and type:
> 14. 'cd Downloads' [Enter]
> 15. 'tar xvzf jdk...' [Enter]
> 16. 'ls' [Enter] and you should see a directory jdk1.7.0_67
> 17. 'sudo mkdir -p /usr/local/java' [Enter]
> 18. 'sudo mv jdk1.7.0_67 /usr/local/java' [Enter]
> 19. 'sudo update-alternatives --install "/usr/bin/java" "java"
> "/usr/local/java/jdk1.7.0_67/bin/java" 1 [Enter]
> 20. 'sudo update-alternatives --install "/usr/bin/javac" "javac"
> "/usr/local/java/jdk1.7.0_67/bin/javac" 1 [Enter]
> 21. 'sudo update-alternatives --install "/usr/bin/javaws" "javaws"
> "/usr/local/java/jdk1.7.0_67/bin/javaws" 1 [Enter]
> 22. 'sudo update-alternatives --set java
> /usr/local/java/jdk1.7.0_45/bin/java' [Enter]
> 23. 'sudo update-alternatives --set javac
> /usr/local/java/jdk1.7.0_45/bin/javac' [Enter]
> 24. 'sudo update-alternatives --set javaws
> /usr/local/java/jdk1.7.0_45/bin/javaws' [Enter]
> 25. 'gedit ~/.bashrc' and scroll to the bottom of the file
> 26. Press [Enter] if you need to be on a new line and add the following:
> 27. 'JAVA_HOME=/usr/local/jdk1.7.0_67'
> 28. 'export $PATH:$JAVA_HOME/bin'
> 29. 'export $JAVA_HOME'

I think you have a typo in line 28-29
Do you want to do this?
PATH=$PATH:$JAVA_HOME/bin
export PATH
export JAVA_HOME
?


> 30. Close gedit and agree to save the file
> 31. Log out of your Ubuntu session. (Top right corner, log out)
> 32. Log back in and bring up a terminal (Ctrl-Alt-t)
> 33. 'java -version' should report 1.7.0_67
> 34. 'javac -version' should also report 1.7.0_67
I can't find rxtxlib-java for any version of Ubuntu. Do you know where I
can find it?

- this is as far as I got -

Thanks for writing out your instructions.

-
Martin

Cri S

unread,
Feb 12, 2015, 9:54:37 AM2/12/15
to ope...@googlegroups.com
You don't need RxTx for OpenPnP anymore.

For running, the only dependency is opencv and jre .
For developing, more install steps are needed.

just to mention, RXTX is named librxtx-java and it can be installed with regular apt-get, but it needs symlink
to java dir, as already mentioned above.

bob_gmail

unread,
Feb 12, 2015, 10:32:47 AM2/12/15
to ope...@googlegroups.com
Hi Martin,

Thanks for following the instructions and making comments.
May I ask exactly which version of Ubuntu you're using, whether it's 32/64 bit and which
locale you're set to (UK, Germany, US ?).

Cheers,
Bob.

Genie Kobayashi

unread,
Feb 17, 2016, 12:04:22 PM2/17/16
to OpenPnP
Hi guys!

Because the current code requires Java 8, I've tried to install Oracle JDK8 to Ubuntu 15.10 (standard and MATE) according to the following page and got success to run. It's basically similar to the way Cri S introduced on this thread previously. Thanks to Bob Beattie and Cri S!

  http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

For the latest Debian 8 system, you can follow as below.

  http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html

You don't need to install RXTX lib as it's included with JDK8, and now ready to run GUI using OpenPnP bat file.

Btw, if you wish to install maven, please read the article below.

  http://stackoverflow.com/questions/15630055/how-to-install-maven-3-on-ubuntu-15-10-15-04-14-10-14-04-lts-13-10-13-04-12-10-1

Now, I'm really appreciated with tireless Jason's efforts in recent years.

Cheers!

Genie

Cri S

unread,
Feb 17, 2016, 1:30:34 PM2/17/16
to OpenPnP
I have seen, that if updates from oracle java7 to java8 it can happen that environment variable was not updated on someones computer linking to java7 core libs,
and that have create strange positions errors.
after update check ENV if there is any relict from java7 and if it's replace it to java8 adding the export <VAR>=<VALUE> line to .bashrc file

Cri S

unread,
Feb 17, 2016, 1:37:43 PM2/17/16
to OpenPnP
This is for updating from oracle7 to oracle8, not new installation.
Reply all
Reply to author
Forward
0 new messages