Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phackwer/0c24a2be8721ddc69602 to your computer and use it in GitHub Desktop.
Save phackwer/0c24a2be8721ddc69602 to your computer and use it in GitHub Desktop.
Those of you who use OpenProj for project management on Linux may receive an erroneous error from the software application complaining that your Java vendor is "Oracle" rather than "Sun".
Obviously, they are one in the same , but the OpenProj software isn't smart enough to know this (as of the authoring date of this article, version 1.4).
Here's an easy fix to get around this and trick the application into working with the Oracle java installation.
The error:
[eriks@eclipse: ~/.openproj]$ openproj
Java auto-detection...
Checking java
Java version: 1.7.0_25 OK
Java implementation: OpenJDK NOK, OpenProj requires Sun, IBM or IcedTea implementation
The fix:
After running it for the first time, it will create a directory called .openproj in the home directory of the user you executed openproj as (you can typically access this with ~/.openproj in any version of Linux).
Once you've located the .openproj directory, edit the "run.conf" file and change the line:
JAVA_OPTS="-Xms128m -Xmx768m"
to:
JAVA_OPTS="-Xms128m -Xmx768m -Djava.vendor=Sun"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment