Login  Register

Re: Unable to Resolve UnsafeAccess

Posted by drakoskai on Jan 30, 2014; 3:24am
URL: https://forum.jogamp.org/Unable-to-Resolve-UnsafeAccess-tp4030892p4031411.html

I was able to resolve it. It turns out that UnsafeAccess is a Private class in Unsafe so I just added some code to the factory class to get at it using reflection.  probably not the best solution but it compiles.  Currently I'm working on configuring the native maven plugin to properly build the natives but I'm a java developer and I haven't look at C code since my Junior year in college. Needless to say I don't have much C/C++ build pattern knowledge so I'm working on that.


Anyway, thanks for the help :)

I decided to build this in a personal project outside of work and upload it to git.

https://github.com/Drakoskai/massive-ninja/blob/master/WorldWind_1.5.1/gluegen/gluegen-rt/src/main/java/com/sun/gluegen/runtime/BufferFactoryInternal.java

https://github.com/Drakoskai/massive-ninja/tree/master/WorldWind_1.5.1/gluegen