Menu

Setup the development environment - Debian

Jonas Hörnstein

Setup

Install JDK:

sudo apt-get install default-jdk

Install subversion

sudo apt-get install subversion

Get BoardCAD source code

svn checkout https://svn.code.sf.net/p/boardcad/code boardcad

Build

Compile trunk:

javac -encoding ISO-8859-1 -classpath ".:j3dcore.jar:j3dutils.jar:vecmath.jar:jogl-all.jar:gluegen-rt.jar" cadcore/*.java board/*.java board/readers/*.java board/writers/*.java boardcad/*.java boardcad/i18n/*.java boardcad/export/*.java boardcad/gui/jdk/plugin/*.java boardcad/gui/jdk/*.java boardcad/print/*.java boardcad/settings/*.java boardcam/*.java boardcam/cutters/*.java boardcam/holdingsystems/*.java boardcam/toolpathgenerators/*.java boardcam/readers/*.java boardcam/writers/*.java

Execute:

java -classpath ".:gluegen-rt.jar:j3dcore.jar:j3dutils.jar:jogl-all.jar:vecmath.jar:jython.jar:Lib.jar:jythonconsole.jar" boardcad.gui.jdk.BoardCAD

Deploy

Create jar file:

jar cvmf mymanifest BoardCAD.jar cadcore/*.class board/*.class board/readers/*.class board/writers/*.class boardcad/*.class boardcad/i18n/* boardcad/icons/* boardcad/export/*.class boardcad/gui/jdk/plugin/*.class boardcad/gui/jdk/*.class boardcad/print/*.class boardcad/settings/*.class boardcam/*.class boardcam/cutters/*.class boardcam/holdingsystems/*.class boardcam/toolpathgenerators/*.class boardcam/readers/*.class boardcam/writers/*.class

Execute jar file:

java -jar BoardCAD.jar