summaryrefslogtreecommitdiff
path: root/trunk/users/hoeken/gcode-host-old/reprap-host
blob: be73837a43c158355fa90266be11f4cc8c2ad013 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# reprap-host -- runs Reprap Java host code with an appropriate classpath

RAM_SIZE=384M				# Amount of RAM to allow Java VM to use
REPRAP_DIR="/usr/lib/reprap"		# reprap.jar file and stl file
JAVA_LIBRARY_DIR="/usr/share/java"	# Java3D and j3d.org libraries

# cd so we can find the reprap-wv.stl file.  Can we avoid this??
[ ! -f ./reprap-wv.stl ] && cd "$REPRAP_DIR"	
java -cp ".:./reprap.jar:$REPRAP_DIR:$REPRAP_DIR/reprap.jar:$JAVA_LIBRARY_DIR/*" \
  -Xmx$RAM_SIZE org/reprap/Main