Difference between revisions of "OpenJUMP on Fedora"

From OpenJUMP Wiki
Jump to navigation Jump to search
(Created page with 'The following hints have been posted by Pedro (March 2007 ): == Errors on Fedora Core 6 resolved == Back to report the solution to all the errors that occurred using OJ under …')
 
 
Line 12: Line 12:
 
Here's the solution (with Sun's JDK 1.6 installed)
 
Here's the solution (with Sun's JDK 1.6 installed)
  
#!/bin/sh
+
# To make this script executable, use chmod a+x JUMPWorkbench-unix.sh
#To make this script executable, use chmod a+x JUMPWorkbench-unix.sh
 
  
 
# You may need to uncomment the next three lines on some linux systems
 
# You may need to uncomment the next three lines on some linux systems
Line 25: Line 24:
  
 
# The next lines are required in any case
 
# The next lines are required in any case
LIB=./lib (%{color:red}replace by the single dot two dots - on this web site we cant show them%)
+
LIB=../lib  
 
CLASSPATH=$LIB/bsh-2.0b4.jar:$LIB/Buoy.jar:$LIB/Jama-1.0.1.jar:
 
CLASSPATH=$LIB/bsh-2.0b4.jar:$LIB/Buoy.jar:$LIB/Jama-1.0.1.jar:
 
$LIB/jdom.jar:$LIB/jts-1.7.2.jar:$LIB/jump-workbench-20070317-0015.jar:
 
$LIB/jdom.jar:$LIB/jts-1.7.2.jar:$LIB/jump-workbench-20070317-0015.jar:

Latest revision as of 00:45, 5 October 2009

The following hints have been posted by Pedro (March 2007 ):


Errors on Fedora Core 6 resolved

Back to report the solution to all the errors that occurred using OJ under Fedora Core 6

Fedora comes with a pre-installed OS JAVA. So the original openjump-unix.sh calls OS Java.

Here's the solution (with Sun's JDK 1.6 installed)

  1. To make this script executable, use chmod a+x JUMPWorkbench-unix.sh
  1. You may need to uncomment the next three lines on some linux systems

(Fedora?)

  1. replace the next line with the correct location for your OJ's install

folder... JUMPHOME=/home/doria/openjump-20070317-0015/bin JAVA_HOME=/usr/java/latest/jre/bin cd $JUMPHOME

  1. The next lines are required in any case

LIB=../lib CLASSPATH=$LIB/bsh-2.0b4.jar:$LIB/Buoy.jar:$LIB/Jama-1.0.1.jar: $LIB/jdom.jar:$LIB/jts-1.7.2.jar:$LIB/jump-workbench-20070317-0015.jar: $LIB/jump-api-20070317-0015.jar:$LIB/xercesImpl.jar:$LIB/xml-apis.jar: $LIB/xml-apis-ext.jar:$LIB/log4j-1.2.8.jar:$LIB/batik/batik-all.jar: $LIB/jmat_5.0.jar:$LIB/ermapper.jar:$LIB/jai_core.jar: $LIB/jai_codec.jar:$LIB/ext

  1. look at how java is called here... it calls Sun's JAVA ;-)

$JAVA_HOME/java -Dlog4j.configuration=file:./log4j.xml -Xms256M -Xmx512M -cp $CLASSPATH com.vividsolutions.jump.workbench.JUMPWorkbench -properties workbench-properties.xml -plug-in-directory $LIB/ext


Regards, Pedro Doria Meunier