Incompatible JDK versions with HydraAgent 3.0

Article ID: 1197
Last updated: 15 Sep, 2009
Article ID: 1197
Last updated: 15 Sep, 2009
Revision: 1
Views: 1770
Posted: 01 Jan, 2000
by --
Updated: 15 Sep, 2009
by

Problem


When Hydra 3.0 (GA) is used with j2sdk1.4.2_11 or j2sdk1.4.2_12 (Java 2 SDK Standard Edition versions) and the project xflow is opened in Eclipse, any mouse movements over the xflow will cause Eclipse to shutdown (disappear) and an error message to be produced. 

Testing with j2sdk1.4.2_06, j2sdk1.4.2_07, j2sdk1.4.2_09, j2sdk1.4.2_10 and j2sdk1.5.x does not show this problem.


Cause


The problem has been identified as a crash inside the AWT's eventLoop function. More information is available on Sun's Developer Site:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5076963

A standard error message is:

FATAL ERROR in native method: Bad global or local ref passed to JNI at sun.awt.windows.WToolkit.eventLoop(Native Method) at sun.awt.windows.WToolkit.run(WToolkit.java:269) at java.lang.Thread.run(Thread.java:595)


Action


Download a different version of j2sdk from Sun's website: http://developers.sun.com/resources/downloads.html

and configure Eclipse and Hydra to use the new version.

In Eclipse:

Select Window -> Preferences -> Java -> Installed JREs

If you don't see the downloaded version in the list, select the Add... button and navigate to the new version. Ensure that it is selected.

Under Java -> Build Path -> Classpath variables, make sure that JRE_LIB and JRE_SRC both point to the new jdk.

In Hydra:

See Chapter 3 of the Hydra Getting Started Guide for direction on configuring Java to work with Hydra.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 1197
Last updated: 15 Sep, 2009
Revision: 1
Views: 1770
Posted: 01 Jan, 2000 by --
Updated: 15 Sep, 2009 by

Others in this category