Java newbie...

436 views
Skip to first unread message

you...@ciciora.com

unread,
Mar 24, 2013, 1:03:45 PM3/24/13
to ope...@googlegroups.com
Hello!
  Having never programmed in Java before, I got a few  simple questions... First off, in windows does it matter if I use jdk-6u41-windows-x64.exe or jdk-6u41-windows-i586.exe?  Second, when I download openpno-master.zip from github, do I simply unzip that file to any directory, or is there a particular directory needed, or something different to install the software?

Thanks,

- Steve

Jason von Nieda

unread,
Mar 24, 2013, 3:48:00 PM3/24/13
to ope...@googlegroups.com
x64 is for 64bit Windows, i586 is for x86 Windows. Use the one appropriate to your system.

When you download the dump from Github you can just put it anywhere. Checkout the README.md under gui/ to get started.

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/msg/openpnp/-/vvg45L50vw8J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

you...@ciciora.com

unread,
Mar 24, 2013, 4:17:48 PM3/24/13
to ope...@googlegroups.com
Thanks!  I just wanted to make sure that OpenPNP or OpenCV didn't care if I used the 64 bit or 32 bit version on my 64 bit Windows 7 machine.  Not everything does as I'm finding out...

- Steve

Jason von Nieda

unread,
Mar 24, 2013, 4:30:44 PM3/24/13
to ope...@googlegroups.com
I don't do a lot of testing on Windows, so you will likely need to fiddle with things a bit if you go 64 bit. One thing for sure is that the openpnp.bat script references the 32 bit libraries, just change the path in that file. Another is that I don't have a built of the Video for Windows library for 64 bit, but it likely wouldn't work anyway. It's more likely you'll want to use the OpenCV camera driver anyway.

Feel free to ask if you run into any issues.

Out of curiosity, what's your interest? Are you looking to help develop, run a machine, play around, etc?

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/msg/openpnp/-/ZTJfSFmLNbEJ.

you...@ciciora.com

unread,
Mar 25, 2013, 10:47:19 AM3/25/13
to OpenPnP
<snip>
>
> Out of curiosity, what's your interest? Are you looking to help develop,
> run a machine, play around, etc?
>

About over a year ago I stopped going down the path I was headed to
follow SCSCI as his first beta tester for his software. While the
vision was awesome, the rest was hard to understand, and he eventually
fell off the face of the earth. I don't want to be in that position
again. Also, like others, I don't want to have to make my hardware
conform to the software, I want to make sure I have the ability to
modify the software into what I need without having to rely on a
committee to approve what I need. I've been doing home brew pick and
place for quite a while now... at least 6 years. It's about time I
finished up all the ideas I've been thinking of all this time.

Thanks again,

- Steve









Karl Lew

unread,
Mar 25, 2013, 11:04:44 AM3/25/13
to ope...@googlegroups.com
Hi Steve,

Any chance you might show us pictures of your six-year old?
I would like to add your machine to the Hall of Machines so we can learn from your home brew.

you...@ciciora.com

unread,
Mar 25, 2013, 12:48:46 PM3/25/13
to ope...@googlegroups.com
Various incarnations.... here is a link to my first attempt using a Taig mill: http://youtu.be/__dEMKzkLYc

It all started with reading on the DIYCNC Yahoo list the long debates on the "best" way to make a PNP machine, and getting tired of hearing people (who don't seem to actually do things) explain how someone's idea couldn't possibly work.  So the video of the Taig machine shows what can be done with minimal machining and cluging together some G-Code in Mach3.  Yes it's slow, but it's faster then (my) hand placing... I placed thousands of parts on that setup....

I'll dig around some more.  I know I've got some more pics and video somewhere.... I'm not always the best at documenting things.

- Steve

Ami

unread,
Mar 25, 2013, 1:18:48 PM3/25/13
to ope...@googlegroups.com
Yay! another one like me (who doesn't like documentations)

Hi Steve, I ran down similar path as yours, but probably much more recently (last year).
I started up with CNC + Mach3 + VB, and then learned what I needed to learn: ie. can't rely on it for production, and so I ditched it.
I've been a happy customer with OpenPnP.

Welcome aboard.

Karl Lew

unread,
Mar 26, 2013, 12:50:23 AM3/26/13
to ope...@googlegroups.com
Thank you, Steve!

I added Taig Homebrew to the Hall of Machines. That is one solid machine. And a fellow moving table machine yay!

Lindsay Ross

unread,
Mar 30, 2013, 5:40:31 PM3/30/13
to ope...@googlegroups.com
Hi Steve, so we are both forced to make similar decisions re a software package moving forward with our machines

Are you expecting to still use the KFLOP board?

Cheers

Wayne C. Gramlich

unread,
May 25, 2013, 1:09:17 AM5/25/13
to ope...@googlegroups.com, Wayne C. Gramlich
All:

I must be missing something. When I clone openpnp on Ubuntu 12.10,
cd into the gui directory and type:

./openpnp.sh

I get:

Error: Unable to access jarfile
/home/wayne/download/openpnp/gui/target/openpnp-gui-0.0.1-alpha-SNAPSHOT.jar

I'm probably doing something totally stupid. Could somebody
gently whack me on the side of the head and let me know what
I am doing wrong.

Regards,

-Wayne


On 03/24/2013 12:48 PM, Jason von Nieda wrote:
> x64 is for 64bit Windows, i586 is for x86 Windows. Use the one
> appropriate to your system.
>
> When you download the dump from Github you can just put it anywhere.
> Checkout the README.md under gui/ to get started.
>
> Jason
>
>
>
> On Sun, Mar 24, 2013 at 10:03 AM, you...@ciciora.com
> <mailto:you...@ciciora.com> <you...@ciciora.com
> <mailto:you...@ciciora.com>> wrote:
>
> Hello!
> Having never programmed in Java before, I got a few simple
> questions... First off, in windows does it matter if I use
> jdk-6u41-windows-x64.exe or jdk-6u41-windows-i586.exe? Second, when
> I download openpno-master.zip from github, do I simply unzip that
> file to any directory, or is there a particular directory needed, or
> something different to install the software?
>
> Thanks,
>
> - Steve
>
> --
> 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
> <mailto:openpnp%2Bunsu...@googlegroups.com>.
> To post to this group, send email to ope...@googlegroups.com
> <mailto:ope...@googlegroups.com>.

Jason von Nieda

unread,
May 25, 2013, 1:17:29 AM5/25/13
to ope...@googlegroups.com
Hi Wayne,

If you are cloning from the Git repo you have to build OpenPnP before it will run. If you are a Java developer, this is easy. Just run mvn package. If you aren't, you might want to just download a snapshot instead. 


Jason





    To post to this group, send email to ope...@googlegroups.com
    <mailto:openpnp@googlegroups.com>.

    To view this discussion on the web visit
    https://groups.google.com/d/msg/openpnp/-/vvg45L50vw8J.
    For more options, visit https://groups.google.com/groups/opt_out.



--
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

To post to this group, send email to ope...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--
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+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

Wayne C. Gramlich

unread,
May 25, 2013, 3:40:27 AM5/25/13
to ope...@googlegroups.com, Wayne C. Gramlich
Jason:

The latest snapshot looks 9 months old to me:


http://openpnp.org/downloads/snapshots/OpenPnP-Snapshot-2012-08-08-09-55-01.zip

I should probably build from source.

I downloaded mvn using the Ubuntu packages. Set up JAVA_HOME to
point to /usr/lib/jvm/default-java. I fired up "mvn package" and
got this far:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
(default-compile) on project openpnp-gui: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] /usr/lib/jvm/java-7-openjdk-i386/jre/../lib/tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

-------------

I smell that there are some issues between Java 6 and 7. I downloaded
some version of Java 6 from Oracle, I just got a directory of stuff
with no real instructions on what to do with the stuff.

I'll continue the quest tomorrow...

Regards,

-Wayne


On 05/24/2013 10:17 PM, Jason von Nieda wrote:
> Hi Wayne,
>
> If you are cloning from the Git repo you have to build OpenPnP before it
> will run. If you are a Java developer, this is easy. Just run mvn
> package. If you aren't, you might want to just download a snapshot instead.
>
> If you want to build from source, see:
> https://github.com/openpnp/openpnp/wiki/Developers-Guide#building-openpnp
> If you want a snapshot, see: http://openpnp.org/downloads/snapshots/?C=M;O=D
>
> Jason
>
>
>
>
> On Fri, May 24, 2013 at 10:09 PM, Wayne C. Gramlich
> <wayne.gra...@gmail.com <mailto:wayne.gra...@gmail.com>>
> wrote:
>
> All:
>
> I must be missing something. When I clone openpnp on Ubuntu 12.10,
> cd into the gui directory and type:
>
> ./openpnp.sh
>
> I get:
>
> Error: Unable to access jarfile
> /home/wayne/download/openpnp/__gui/target/openpnp-gui-0.0.1-__alpha-SNAPSHOT.jar
>
> I'm probably doing something totally stupid. Could somebody
> gently whack me on the side of the head and let me know what
> I am doing wrong.

[snippage]

Karl Lew

unread,
May 25, 2013, 9:21:11 AM5/25/13
to ope...@googlegroups.com, Wayne C. Gramlich
Wayne, the java compiler is javac,  For example, here is the relevant part of my Windows path to java and javac:
   \somewhere\jdk1.7.0_07\bin

My JAVA_HOME points to:
   \somewhere\jdk1.7.0_07

You should be able to type "java -version" and get something like this:
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

I am using JDK 1.7 to build openpnp with Apache Maven 3.0.5. 

Also be sure to type "mvn clean install"  or "mvn clean package". The "clean" is important because it tosses your old target binaries. Skipping clean leads to unpredictable results.

Jason von Nieda

unread,
May 25, 2013, 7:26:10 PM5/25/13
to ope...@googlegroups.com
Wayne,

You need the JDK, not the JRE. The JDK contains the compiler and associated tools and the JRE just contains the runtime. Download the JDK (6 or 7 is fine) from Oracle and place it anywhere you like. I usually put it somewhere like /usr/share/java and then add /usr/share/java/bin to your path. You should be able to run `javac` from your command line without getting a not found error. Once you can do that you should be able to try again.

The 9 month old snapshot is the latest "stable" snapshot. I am trying to finally produce a new snapshot this weekend from the develop branch but I am not sure if I'll get it all done or not.

Jason




wrote:

    All:

    I must be missing something.  When I clone openpnp on Ubuntu 12.10,
    cd into the gui directory and type:

       ./openpnp.sh

    I get:

       Error: Unable to access jarfile
    /home/wayne/download/openpnp/__gui/target/openpnp-gui-0.0.1-__alpha-SNAPSHOT.jar


    I'm probably doing something totally stupid.  Could somebody
    gently whack me on the side of the head and let me know what
    I am doing wrong.

[snippage]


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

Wayne C. Gramlich

unread,
May 25, 2013, 7:33:32 PM5/25/13
to ope...@googlegroups.com, Wayne C. Gramlich
Karl:

I didn't have javac installed. When I typed javac, I got:

The program 'javac' can be found in the following packages:
* default-jdk
* ecj
* gcj-4.6-jdk
* gcj-4.7-jdk
* openjdk-7-jdk
* openjdk-6-jdk
Try: sudo apt-get install <selected package>

I just installed default-jdk, and that fixed the problem.

Thanks,

-Wayne
> --
> 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/d1123d8d-4dce-4b05-9ed0-4c8f6cd2ed59%40googlegroups.com?hl=en-US.

Wayne C. Gramlich

unread,
May 25, 2013, 9:11:20 PM5/25/13
to ope...@googlegroups.com, Wayne C. Gramlich
Jason:

Thanks! It has been a long time and I forgot about that distinction.
I thought I had the JDK installed when, in fact, I only had the JRE
installed.

I've compiled from source and it came up on the screen.

I'm sure there will be other questions, but I want to carefully
read the wiki before I start asking additional questions.

Regards,

-Wayne

Jason von Nieda

unread,
May 25, 2013, 9:16:30 PM5/25/13
to ope...@googlegroups.com
One quick note: make sure you are in the develop branch. Master is ancient

Sent from my BeOS enabled toaster.
> --
> 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/51A16138.7040509%40Gramlich.Net?hl=en-US.

Wayne C. Gramlich

unread,
May 26, 2013, 2:48:35 AM5/26/13
to ope...@googlegroups.com, Wayne C. Gramlich
On 05/25/2013 06:16 PM, Jason von Nieda wrote:
> One quick note: make sure you are in the develop branch. Master is ancient

I pulled the development branch down and compiled it. Alas,
when I run it, I get:

Cannot instantiate interface org.openpnp.spi.Head for interface
org.openpnp.spi.Head

It is late. I'll look into this some more tomorrow.

Regards,

-Wayne

Jason von Nieda

unread,
May 26, 2013, 3:04:50 AM5/26/13
to ope...@googlegroups.com, ope...@googlegroups.com, Wayne C. Gramlich
Make sure you did a mvn clean and delete your home/.openpnp config directory

Sent from my BeOS enabled toaster.

> --
> 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/51A1B043.1040001%40Gramlich.Net?hl=en-US.

Wayne C. Gramlich

unread,
May 26, 2013, 1:18:15 PM5/26/13
to ope...@googlegroups.com, Wayne C. Gramlich
Jason:

That fixed the problem. So I am now successfully building OpenPNP
from source from the "develop" branch. Excellent!

I'll recompile the code on my mill (which runs LinuxCNC) and
start the configuration process to see if I can get the machine
to do "air" moves.

Regards,

-Wayne

Ami

unread,
May 26, 2013, 5:49:06 PM5/26/13
to ope...@googlegroups.com, Wayne C. Gramlich
Hi Wayne,

I'm currently running linuxcnc as well, if you face any problem on getting it running let me know, I'll try to help as much as I can.


Ami.

Wayne C. Gramlich

unread,
May 27, 2013, 12:34:54 AM5/27/13
to Ami, ope...@googlegroups.com, Wayne C. Gramlich
Ami:

I'll probably need some help. I've set the <driver ...> in machine.xml
to "...driver.LinuxCNC" and set feed-rate_per-minute to something
appropriate for the machine. What I can not figure out is how the
connection to the LinuxCNC server occurs. Also, I probably need to
make sure I'm running the right version of LinuxCNC. I'm pretty
sure I'm running LinuxCNC 2.4, running on Ubuntu 10.04.

Regards,

-Wayne


On 05/26/2013 02:49 PM, Ami wrote:
> Hi Wayne,
>
> I'm currently running linuxcnc as well, if you face any problem on
> getting it running let me know, I'll try to help as much as I can.
>
>
> Ami.
>
> On Sunday, May 26, 2013 7:18:15 PM UTC+2, wayne gramlich wrote:
>
> Jason:
>
> That fixed the problem. So I am now successfully building OpenPNP
> from source from the "develop" branch. Excellent!
>
> I'll recompile the code on my mill (which runs LinuxCNC) and
> start the configuration process to see if I can get the machine
> to do "air" moves.
>
> Regards,
>
> -Wayne
>
> On 05/26/2013 12:04 AM, Jason von Nieda wrote:
> > Make sure you did a mvn clean and delete your home/.openpnp
> config directory
> >
> > Sent from my BeOS enabled toaster.
> >
> > On May 25, 2013, at 11:48 PM, "Wayne C. Gramlich"
> <wayne.gra...@gmail.com <javascript:>> wrote:
> >
> >> On 05/25/2013 06:16 PM, Jason von Nieda wrote:
> >>> One quick note: make sure you are in the develop branch. Master
> is ancient
> >>
> >> I pulled the development branch down and compiled it. Alas,
> >> when I run it, I get:
> >>
> >> Cannot instantiate interface org.openpnp.spi.Head for
> interface org.openpnp.spi.Head
> >>
> >> It is late. I'll look into this some more tomorrow.
> >>
> >> Regards,
> >>
> >> -Wayne
> >>
> >>>
> >>> Sent from my BeOS enabled toaster.
> >>>
> >>> On May 25, 2013, at 6:11 PM, "Wayne C. Gramlich"
> <wayne.gra...@gmail.com <javascript:>> wrote:
> >>>
> >>>> Jason:
> >>>>
> >>>> Thanks! It has been a long time and I forgot about that
> distinction.
> >>>> I thought I had the JDK installed when, in fact, I only had
> the JRE
> >>>> installed.
> >>>>
> >>>> I've compiled from source and it came up on the screen.
> >>>>
> >>>> I'm sure there will be other questions, but I want to carefully
> >>>> read the wiki before I start asking additional questions.
> >>
> >> --
> >> 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 <javascript:>.
> >> To post to this group, send email to ope...@googlegroups.com
> <javascript:>.
> <https://groups.google.com/d/msgid/openpnp/51A1B043.1040001%40Gramlich.Net?hl=en-US>.
>
> >> For more options, visit https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
> >>
> >>
> >
>

Ami

unread,
May 27, 2013, 5:15:03 AM5/27/13
to ope...@googlegroups.com, Ami, Wayne C. Gramlich
Hi Wayne,


Step1: Run emc2 until it's configured well.
Step2. Put emc2 in MDI mode (F5) (it won't respond to external gcode if in jog mode)
Step3: Run the remote shell (emcrsh)
You're using ubuntu 10.04, so I guess it's the older version called emc2. The newer version is called linuxcnc.

Open a terminal window,
You must go to the folder where you have the config of your cnc, for example: /emc2/configs/mycnc/
There must be a file named emc.nml overthere.

Then on the terminal window, type : emcrsh.

This is the program that opens the port so we can control emc2 from a distance.
(There is a way to do this automatically, in mycnc.ini file but for starting up it's better to do it manually)


Step4: in openpnp:
on machine.xml you must have something like this:
<driver class="org.openpnp.machine.reference.driver.LinuxCNC" server-ip="192.168.1.6" port="5007"/>
     
Port 5007 is the default used by linuxcnc.
server-ip is the address of the machine where emc2 is running. It doesn't have to be on the same machine where openpnp runs.

Run openpnp, it should connect to the emc2,
in emcrsh window it sould show : "Connected to x"

If not working, please post the error message given by openpnp.
Have fun,


Ami

Wayne C. Gramlich

unread,
May 28, 2013, 2:51:18 PM5/28/13
to ope...@googlegroups.com, Wayne C. Gramlich
Ami:

Your instructions below worked just fine. Thank! I was able to
configure and bring up the OpenPNP GUI using the LinuxCNC drive.
I was able to get the spindle to move.

Are you running LinuxCNC on Ubuntu 12.04LTS? I keep checking
in on the LinuxCNC.Org web site, and they seem to still be pushing
Ubuntu 10.04LTS from their main web site.

Regards,

-Wayne

Ami

unread,
May 28, 2013, 5:25:45 PM5/28/13
to ope...@googlegroups.com, Wayne C. Gramlich
Hi Wayne, you're welcome.

I'm not sure which version is the latest of linuxcnc, I'm using my last old PC having parallel port on it.
So that's why I'm not developing a lot on this linuxcnc driver; just enough to make it run.
It's pretty reliable, I'm using it for production runs without hickups.

(So btw right now I am looking for it's replacement, before my PC dies on me.)

Ami

Wayne C. Gramlich

unread,
May 31, 2013, 3:43:38 PM5/31/13
to ope...@googlegroups.com, Wayne C. Gramlich
Ami:

I have a units question for the LinuxCNC driver. Does it assume
inches or millimeters. I see that the TinyGDriver sends a "G21"
to force metric mode, but I do not see the same code in LinuxCNC.
My machine is configured in inches, but I suspect that OpenPNP is
metric.

Regards,

-Wayne

On 05/28/2013 02:25 PM, Ami wrote:
> Hi Wayne, you're welcome.
>
> I'm not sure which version is the latest of linuxcnc, I'm using my last
> old PC having parallel port on it.
> So that's why I'm not developing a lot on this linuxcnc driver; just
> enough to make it run.
> It's pretty reliable, I'm using it for production runs without hickups.

My LinuxCNC (actually EMC, since it is 2.4) has been rock solid.
I make parts on it all the time.

> (So btw right now I am looking for it's replacement, before my PC dies
> on me.)

I have a few old PC's just lying around in case my current PC just ups
and dies.

Regards,

-Wayne

Jason von Nieda

unread,
May 31, 2013, 3:45:36 PM5/31/13
to ope...@googlegroups.com
Wayne,

OpenPnP is units agnostic. You can change the systems units from the View menu but even that just changes the units that are used for display. Internally all units are converted as needed.

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+unsubscribe@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/51A8FD6A.6030102%40Gramlich.Net?hl=en-US.

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



Reply all
Reply to author
Forward
0 new messages