Table of Contents

Upgrade Java to JDK 1.8 under Mac OS X

F. de Coligny, 26.7.2016 (Java 1.8) F. de Coligny, S. Griffon, 29.8.2014

On Mac OS X, upgrading Java to version 1.7 caused problems with the JOGL (Java OpenGL) library version 2.0, used y the sketch AMAP library we use for 3D rendering in Capsis and AMAPstudio. This is a memo about the changes we had to do to make it work correctly on all target systems (Win 32/64, Lin 32/64 and Mac OS X).

JOGL Upgrade from version 2.0 to 2.2

1. We first uninstalled JOGL 2.0 from Capsis and AMAPstudio ext/ directory:

Note: under Windows, the lib names are something.dll, under linux and mac, they are libsomething.so

2. We then installed JOGL 2.2 in Capsis and AMAPstudio:

We had to fix few bugs in the source codes but the overall JOGL structure is the same and we could recompile our apps with 'ant clean compile'.

3. We finally rebuilt and copied 'jeeb-util.jar' and 'jeeb-sketch.jar' to the Capsis ext/ directory.

Jdk 1.8 install on Mac OS X

[EDIT fc-21.12.2022 see the Java 8 installation page on the Capsis web site]

Note: we changed ext/ant/bin/ant to prevent a change of JAVA_HOME (may find java 1.6), commented 3 lines near line 86, see below:

       #  if [ -z "$JAVA_HOME" ] ; then
       #    JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
       #  fi