Bleeding Edge reprap software.

I wanted to try the bleeding edge software that Adrian is working on. First I got the latest source

svn co reprap

There is a script that probably works but it downloads an installs versions of stuff, that i didn’t want cluttering up my system.

Also it seems that the intention is to distribute the files that get downloaded with the reprap source anyway, and indeed I already had them by now since they are in the svn repository.

In short I didn’t see the point of and took it apon myself to “fix it” so that it uses the jar files included in reprap/lib

Firstly I modified the build-user.xml file so that the classpath was as specified in the manifest section as follows:

    <attribute name="Main-Class" value="${main-class}"/>
    <attribute name="Class-Path" value="./lib/j3dcore.jar ./lib/vecmath.jar ./lib/j3dutils.jar ./lib/RXTXcomm.jar ./lib/swing-layout-1.0.3.jar ./lib/j3d-org-java3d-all.jar ./lib/"/>

The next step was to set the CLASSPATH enviroment variable so that I could compile the source

export CLASSPATH="./lib/j3dcore.jar;./lib/vecmath.jar;./lib/j3dutils.jar;./lib/RXTXcomm.jar;./lib/swing-layout-1.0.3.jar;./lib/j3d-org-java3d-all.jar"

Then I compiled it and moved the resulting reprap.jar file into the current dir …

cd reprap
ant jar
mv jar/reprap.jar .

… so that it could be run by using


4 thoughts on “Bleeding Edge reprap software.”

  1. Just catching up on your posts its looking good.. I need to decide on which OS to use next Windas or Ubuntu.. Just download Ubuntu 9.1 Oh and I got 4 of those Thermistors you found at Farnell thank they look good.. nice long leads too

  2. Just remembered that the reason I wanted to post this was because I kept getting runtime errors, it turns out that when you run java with the -jar commandline option it ignores CLASSPATH environment variable aswell as ignoring the -classpath command line argument, so the only way to get it to work was to include the class path in the manifest of reprap.jarThe error I kept getting was:Exception in thread "RepRap" java.lang.NoClassDefFoundError: javax/vecmath/Color3f at org.reprap.Preferences.(Unknown Source) at org.reprap.machines.MachineFactory.create(Unknown Source) at org.reprap.Main.(Unknown Source) at org.reprap.Main$ Source) at java.awt.event.InvocationEvent.dispatch( at java.awt.EventQueue.dispatchEvent( at java.awt.EventDispatchThread.pumpOneEventForFilters( at java.awt.EventDispatchThread.pumpEventsForFilter( at java.awt.EventDispatchThread.pumpEventsForHierarchy( at java.awt.EventDispatchThread.pumpEvents( at java.awt.EventDispatchThread.pumpEvents( at by: java.lang.ClassNotFoundException: javax.vecmath.Color3f at$ at Method) at at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClassInternal( … 12 moreHopefully google will pick this up, and if anyone has the same problem then this post will be of use.

  3. I understand that most people probably use Eclipse IDE to compile this source. I just wanted a neat way of doing it wihtout needing the IDE. As I understand, by adding the attributes to the build-user.xml file the said manifest file is automatically generated by ant. My solution works, but no doubt there are many ways to achieve the same thing.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s