Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenProj JAVA_EXE error on Linux

Tags:

linux

openjdk

I have installed openproj_1.4-2.deb on my ubuntu. and I'm getting the following err while openinig the same.

Your Java vendor is "Oracle Corporation". To run OpenProj, you need the Sun Java implementation.
The auto-detected Java Runtime used is..

I have tried to fix by editing $HOME/.openproj/run.conf file by updating JAVA_EXE variable. But it is not working. How can I run openproj on my Linux? Please help, Thanks in advance.

(sorry for unable to create a new tag, openproj)

like image 706
Venkat Papana Avatar asked Feb 04 '13 06:02

Venkat Papana


2 Answers

Open $HOME/.openproj/run.conf and Change

JAVA_OPTS="-Xms128m -Xmx768m"

To

JAVA_OPTS="-Djava.vendor=Sun -Xms128m -Xmx768m"

then run it, It will work fine.

like image 171
Aalkhodiry Avatar answered Nov 20 '22 05:11

Aalkhodiry


I'm able to fix this by adding -Djava.vendor="Sun Microsystems Inc." for java command in run_openproj() of /usr/bin/openproj script.

here is the updated function after my change:

run_openproj() {

if [ "$LOG_LEVEL" ] && [ "x$LOG_LEVEL" = "xDEBUG" ]; then
    "$JAVA_EXE" $JAVA_OPTS -Djava.vendor="Sun Microsystems Inc."  -jar "$OPENPROJ_HOME/openproj.jar" $ARGS > "$LOG_FILE"
else
    "$JAVA_EXE" $JAVA_OPTS -Djava.vendor="Sun Microsystems Inc."  -jar "$OPENPROJ_HOME/openproj.jar" $ARGS > /dev/null 2>&1
fi
}
like image 1
Venkat Papana Avatar answered Nov 20 '22 06:11

Venkat Papana