Login  Register

Compile errors in TestTranslucentParentingAWT when using OpenJDK 1.6

Posted by gouessej on Dec 01, 2011; 10:28am
URL: https://forum.jogamp.org/Compile-errors-in-TestTranslucentParentingAWT-when-using-OpenJDK-1-6-tp3551136.html

Hi

I have just tried to compile JOGL and I get the following error messages:
test.compile:
    [javac] Compiling 178 source files to /home/gouessej/gouesse/git/jogl/build/test/build/classes
    [javac] /home/gouessej/git/jogl/src/test/com/jogamp/opengl/test/junit/jogl/caps/TestTranslucencyAWT.java:83: package com.sun.awt does not exist
    [javac]                     capable2 = com.sun.awt.AWTUtilities.isTranslucencyCapable(config);
    [javac]                                           ^
    [javac] /home/gouessej/git/jogl/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestTranslucentParentingAWT.java:92: package com.sun.awt does not exist
    [javac]                     capable2 = com.sun.awt.AWTUtilities.isTranslucencyCapable(config);
    [javac]                                           ^
    [javac] 2 errors

BUILD FAILED
/home/gouessej/git/jogl/make/build.xml:20: The following error occurred while executing this line:
/home/gouessej/git/jogl/make/build-test.xml:87: Compile failed; see the compiler error output for details.

I assume com.sun.awt.AWTUtilities does not exist in OpenJDK.

P.S: I cannot launch the manual tests and the automatic tests because bin/antRun does not exist in the Ant version provided by Eclipse. I use Eclipse 3.7 Indigo.
Julien Gouesse | Personal blog | Website