Real-time Java - java.lang.NoClassDefFoundError in netbeans

412 Views Asked by At

I am importing an external jar file to run java real-time system. The package I need to import is the javax.realtime

I was able to get this package in a jar file,when i add this jar file to my project, i didn't get any compilation error, but when run the file, i get error

 Exception in thread "main" java.lang.NoClassDefFoundError: javax/realtime/LateStartException

Any idea what is causing this error?? Is there any additional configuration needed in order for runtime to "find" the jar file?

Thanks...

2

There are 2 best solutions below

2
On

Try including jta.jar. It can be found in the lib/j2ee directory.

0
On

Realtime behavior is not something you can add to a VM by just adding a Jar file. The way priorities and synchronization are handled is completely different in a realtime JVM. Try JamaicaVM / RTSJ.