Login  Register

[SOLVED] Re: Migration from 2.0 to 2.3.1, Exception in thread "main" java.lang.NoSuchFieldError: DEBUG_STATS_FORNAME

Posted by Djak on Sep 19, 2015; 6:20pm
URL: https://forum.jogamp.org/SOLVED-Migration-from-2-0-to-2-3-1-Exception-in-thread-main-java-lang-NoSuchFieldError-DEBUG-STATS-FE-tp4035330p4035334.html

Thanks for the tip :) I was looking for something like that too because I saw that ReflectionUtil.DEBUG_STATS_FORNAME field doesn't exist in JOGL 2.0.
Actually I launch the code from Eclipse using a User Library I named JOGL2.3.1.
My old user library was named JOGL2.0.
For unknown reason it seems that when I link the user library JOGL2.3.1 to a project, when launching it, the JOGL2.3.1\jogl-all.jar is used but the JOGL2.0\gluegen-rt.jar is used.I even tested to run "eclipse -clean", etc.
The solution I found is to rename the real directory of JOGL2.0 user library so that Eclipse doesn't find it.
It looks like a bug of Eclipse but I do not understand it. Another workaround may be to delete the old user library.
All work fine now!
Thank you for reading and help.

[EDIT] more precisions :)
My test Eclipse project used some other required projects that used user library JOGL2.0 leading to the behavior explained above.