1

I get the following exception when calling Unsafe.putInt:

A needed class was not found. This could be due to an error in your runpath. Missing class: java/lang/InvalidClassException
java.lang.NoClassDefFoundError: java/lang/InvalidClassException

Unsafe lives in rt.jar, but I am unable to find java/lang/InvalidClassException, only java.io.InvalidClassException.

How do I resolve this exception? (if it matters, I'm using jdk 1.7u55)

Thank you for any help.

Update: this is caused by a call to the native method unsafe.arrayBaseOffset. I can work around it by using the static variables: ARRAY_?_BASE_OFFSET, but I don't know why.

kcwill2
  • 71
  • 5

0 Answers0