[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

problem with Java and Ganttproject on F9



Greetings,

I have java installed on an F9 x86_64 machine:

java-1.5.0-gcj-1.5.0.0-21.fc9.x86_64
java_cup-0.10-0.k.6jpp.2.x86_64

and just downloaded version 2.0.8 of GanttProject
(http://ganttproject.biz). When I launch the script wrapper included
in the distribution (pasted at the bottom) I get nothing at all at the
console and this in ~/.ganttproject.log:

[marco polaris ganttproject-2.0.8]$ more ~/.ganttproject.log
27-Nov-08 5:24:45 PM org.bardsoftware.impl.eclipsito.BootImpl run
INFO: Eclipsito platform is running.
27-Nov-08 5:24:45 PM org.bardsoftware.eclipsito.Boot main
SEVERE:
java.lang.NullPointerException
   at java.lang.StringBuffer.<init>(libgcj.so.9)
   at java.net.URI.resolve(libgcj.so.9)
   at java.net.URI.resolve(libgcj.so.9)
   at org.bardsoftware.impl.eclipsito.BootImpl.getPlugins(BootImpl.java:40)
   at org.bardsoftware.impl.eclipsito.BootImpl.run(BootImpl.java:31)
   at org.bardsoftware.eclipsito.Boot.main(Boot.java:49)
27-Nov-08 5:24:45 PM org.bardsoftware.impl.eclipsito.BootImpl shutdown
INFO: Eclipsito platform is shut down.

how should I proceed to fix this? I have found a few pages mentioning
the same problems, but in German or other languages I can't read :-(

TIA,
	Marco

The script which causes the error message above:

#!/bin/bash

GP_HOME=.
COMMAND_PATH=`echo ${0} | sed -e "s/\(.*\)\/.*$/\1/g"`
cd ${COMMAND_PATH}

LOCAL_CLASSPATH=$GP_HOME/eclipsito.jar

CONFIGURATION_FILE=ganttproject-eclipsito-config.xml
BOOT_CLASS=org.bardsoftware.eclipsito.Boot
LOG_FILE=$HOME/.ganttproject.log

if [ -z $JAVA_HOME ]; then
  JAVA_COMMAND=`which java`
  if [ "$?" = "1" ]; then
    echo "No executable java found. Please set JAVA_HOME variable";
    exit;
  fi
else
  JAVA_COMMAND=$JAVA_HOME/bin/java
fi
if [ ! -x $JAVA_COMMAND ]; then
  echo "$JAVA_COMMAND is not executable. Please check the permissions."
  exit
fi

if [ -e $LOG_FILE ] && [ ! -w $LOG_FILE ]; then
  echo "Log file $LOG_FILE is not writable"
  exit
fi

$JAVA_COMMAND -Xmx256m -classpath $CLASSPATH:$LOCAL_CLASSPATH $BOOT_CLASS $CONFIGURATION_FILE "$@" >$LOG_FILE 2>&1


-- 
Your own civil rights and the quality of your life heavily depend on how
software is used *around* you:            http://digifreedom.net/node/84


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]