Compile errors in TestTranslucentParentingAWT when using OpenJDK 1.6

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile errors in TestTranslucentParentingAWT when using OpenJDK 1.6

gouessej
Administrator
This post was updated on .
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
Reply | Threaded
Open this post in threaded view
|

Re: Compile errors in TestTranslucentParentingAWT when using OpenJDK 1.6

Sven Gothel
Administrator
On Thursday, December 01, 2011 11:28:23 AM gouessej [via jogamp] wrote:

>
> Hi
>
> I have just tried to compile JOGL and I get the following error messages:
> test.compile:
>     [javac] Compiling 178 source files to
> /users/TA/gouesse/git/jogl/build/test/build/classes
>     [javac]
> /users/TA/gouesse/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]
> /users/TA/gouesse/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
> /users/TA/gouesse/git/jogl/make/build.xml:20: The following error occurred
> while executing this line:
> /users/TA/gouesse/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.

Yup .. thx for letting us know, will remove (uncomment it) then.

~Sven

>
> -----
> Julien Gouesse
Reply | Threaded
Open this post in threaded view
|

Re: Compile errors in TestTranslucentParentingAWT when using OpenJDK 1.6

gouessej
Administrator
There is the same problem is TestTranslucencyAWT.

I have succeeded in launching the tests by installing Ant separately as the binary version contains antRun but it is not obvious for Eclipse users. Maybe I missed something. The automatic test froze my machine after a few minutes, I had to reboot (on Cent OS 5.3).

I'm going to try to write JUnit tests for some bugs.
Julien Gouesse | Personal blog | Website