Getting started under Java

I just downloaded the OpenCASCADE for Linux and I am having some trouble getting to run the Java sample. I have set the LD_LIBRARY_PATH and all the other settings to what the documentation says, but I still get the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/OpenCASCADE5.1/samples/standard/java/Linux/lib/ /opt/OpenCASCADE5.1/ros/Linux/lib/ undefined symbol: __start_cp_handler
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(
at java.lang.ClassLoader.loadLibrary(
at java.lang.Runtime.loadLibrary0(
at java.lang.System.loadLibrary(
at SampleGeometryJni.SampleGeometryPackage.(
at SampleGeometryPanel.createViewPanel(
at SamplePanel.jbInit(
at SamplePanel.(
at SamplePanel.(
at SampleGeometryPanel.(
at SamplesStarter.(
at SamplesStarter.main(

Could anyone please suggest what I should try to fix this?


Joan's picture

To answer my own question, the problem was that the first time I made the symlink to the wrong library (even though the version numbers seem to match better) This is the correct way, but it might depend on your system

[from /usr/lib]
ln -s

daima's picture

any solution for this case? I'm having the same problem and wish someone can help me.