I'm a student trying to use OCC for my graduate research work. I'm having a problem loading OCC DLL's and property files in my application. I am working in a Windows environment with the latest version of OCC, and Java 1.5.0-6.
I started my work with OCC by taking the sources from the sample OCC Java application and moved them into an empty Netbeans project structure. Many of the Java classes and properties files provided in the OCC samples are in the "default package". If I leave the Java classes as they were provided, I can compile and run the application without any problem. However, if I move the Java classes into a proper package heirarchy, I am no longer able to run the application because Java can not load the OCC DLLs or find the properties files.
For example ... I start with the Java samples as they are provided, then move the subfolder "SamplesTopologyJni" into org.opencascade.SamplesTopologyJni. When I run the application, it is no longer able to find the Native library referenced by SamplesTopologyPackage.java
Exception in thread "main" java.lang.UnsatisfiedLinkError: CreateViewer
at org.opencascade.SamplesTopologyJni.SamplesTopologyPackage.CreateViewer(Native Method)
I've spent a number of days now trying to figure this out but have hit a wall. It doesn't stop me from continuing work with the code structure as it is but, I would like to understand what the source of this problem is. Any insite you may provide would be appreciated.