There is no pool of abstracts with JOGL

I tried to add JOGL to my project, and after a long search on the Internet, I found a solution. I added jars to my build path, and Eclipse recognizes them.
I wanted to test it, so I took the code here: https://sites.google.com/site/justinscsstuff/jogl-tutorial-2 and compiled.
The AWT path gives me this result:

2012-06-03 18:20:44.623 java[1481:903] [Java CocoaComponent compatibility mode]: Enabled 2012-06-03 18:20:44.626 java[1481:903] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000 2012-06-03 18:20:46.253 java[1481:903] *** __NSAutoreleaseNoPool(): Object 0x102034900 of class NSConcreteMapTableValueEnumerator autoreleased with no pool in place - just leaking 2012-06-03 18:20:46.259 java[1481:903] *** __NSAutoreleaseNoPool(): Object 0x10209e3f0 of class __NSCFDate autoreleased with no pool in place - just leaking 2012-06-03 18:20:46.259 java[1481:903] *** __NSAutoreleaseNoPool(): Object 0x10209cbd0 of class NSCFTimer autoreleased with no pool in place - just leaking 2012-06-03 18:20:46.301 java[1481:d703] *** __NSAutoreleaseNoPool(): Object 0x10015e990 of class NSCFNumber autoreleased with no pool in place - just leaking 2012-06-03 18:20:46.301 java[1481:d703] *** __NSAutoreleaseNoPool(): Object 0x100121720 of class NSConcreteValue autoreleased with no pool in place - just leaking 2012-06-03 18:20:46.302 java[1481:d703] *** __NSAutoreleaseNoPool(): Object 0x10011c2f0 of class NSCFNumber autoreleased with no pool in place - just leaking 2012-06-03 18:20:46.302 java[1481:d703] *** __NSAutoreleaseNoPool(): Object 0x1001ba750 of class NSConcreteValue autoreleased with no pool in place - just leaking 2012-06-03 18:20:46.302 java[1481:d703] *** __NSAutoreleaseNoPool(): Object 0x100157e70 of class NSCFDictionary autoreleased with no pool in place - just leaking 

I can not find others with the same problem. I found others with the same error, but not for the same reason.
The NEWT-way gives me a white square that is โ€œnot respondingโ€ and I need to force stop it (Apple-key + alt + esc).
My cursor turns into a wait cursor. Although it is well designed, I would rather get rid of it.
How do i solve this? I am using Eclipse on Mac. OS 10.6.8

EDIT:

Thanks to Clint, the first two lines have disappeared, but are still leaking ...

EDIT 2:

I decided!

+6
source share
2 answers

I got rid of mistakes, in the end, it was pretty stupid. I found a solution a few days ago: setting -Djava.awt.headless=true using the java terminal command. But I did not know how to do this in Eclipse, so I tried to include it in the "Program Arguments", which, I understand, is pretty stupid. Inclusion in the JVM Arguments helped and solved the problem, now I come across the following. Hope this helps other people having the same problem.

+1
source

If you have swt.jar in your classpath and you are not using it, you should remove it.

+4
source

Source: https://habr.com/ru/post/917302/


All Articles