alminium / angelfalls

OpenProj fork
8 stars 3 forks source link

Hardcoded Sun Java Vendor for linux platform #1

Open ruppertus opened 12 years ago

ruppertus commented 12 years ago

Hi, When I try to run Angelfalls on my linux platform, I have the following error message:

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

The same communicate I got with OpenProj. Can you please remove the vendor checking since Oracle already bought Sun.

Regards R.

ruppertus commented 12 years ago

Just replace 88 line from: ui/src/main/java/com/projity/pm/graphic/gantt/Main.java with the following one: if (javaVendor==null || !(javaVendor.startsWith("Sun")||javaVendor.startsWith("IBM")||javaVendor.startsWith("Oracle"))){

cyclingzealot commented 11 years ago

If other versions of java are installed on your desktop, you can try

sudo update-alternatives --config java

and then pick /usr/lib/jvm/java-6-openjdk/jre/bin/java

or try installing openjdk.

Julien

r-martins commented 11 years ago

same problem here. cant fix with the solution above.

sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1051      auto mode
  1            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1051      manual mode
  2            /usr/lib/jvm/java-7-oracle/jre/bin/java          3         manual mode

I've selected the first one as default.