Menu

#36 Exception when trying to access Geometry-popup menu

closed
nobody
None
5
2014-08-15
2006-02-27
Anonymous
No

I (hopefully) installed everything like desribed in the
limited documentation: OpenCascade is available,
occjava was added to the application and i put the --
with-occ parameter into the .BAT file But within my new
project i can't do anything with the geometry. Whenever
i right-click on Project->Gemoetries->Geometry1 i get
the following exception:

java.lang.UnsatisfiedLinkError: E:\jcae-0.
11\jcae\modules\ext\OccJava.dll: Diese Anwendung konnte
nicht gestartet werden, weil die Anwenungskonfiguration
nicht korrekt ist. Zur Problembehebung sollten Sie die
Anwendung neu installieren
at java.lang.ClassLoader$NativeLibrary.
load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown
Source)
at java.lang.ClassLoader.loadLibrary(Unknown
Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.jcae.opencascade.jni.OccJavaJNI.
<clinit>(OccJavaJNI.java:15)
at org.jcae.opencascade.jni.BRep_Builder.
<init>(BRep_Builder.java:37)
at org.jcae.netbeans.cad.BrepDataObject.
open(BrepDataObject.java:115)
at org.jcae.netbeans.cad.BrepDataObject.
getShape(BrepDataObject.java:61)
at org.jcae.netbeans.cad.GeomUtils.
getShape(GeomUtils.java:48)
at org.jcae.netbeans.cad.BrepNode.
getActions(BrepNode.java:90)
at org.openide.nodes.FilterNode.
getActions(FilterNode.java:682)
at org.openide.nodes.NodeOp.findActions(NodeOp.
java:107)
at org.openide.explorer.view.TreeView.
createPopup(TreeView.java:865)
at org.openide.explorer.view.
TreeView$PopupAdapter.showPopup(TreeView.java:1295)
at org.openide.awt.MouseUtils$PopupMouseAdapter.
maybePopup(MouseUtils.java:152)
at org.openide.awt.MouseUtils$PopupMouseAdapter.
mouseReleased(MouseUtils.java:147)
at java.awt.AWTEventMulticaster.
mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.
mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.
mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown
Source)
at javax.swing.JComponent.
processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown
Source)
at java.awt.Container.processEvent(Unknown
Source)
at java.awt.Component.dispatchEventImpl(Unknown
Source)
at java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.awt.Component.dispatchEvent(Unknown
Source)
at java.awt.LightweightDispatcher.
retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.
processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.
dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.awt.Window.dispatchEventImpl(Unknown
Source)

Discussion

  • Jerome Robert

    Jerome Robert - 2006-02-27

    Logged In: YES
    user_id=656405

    Sorry about the lack of documentation. Any help would be
    appreciate. At least growing the forum and the tracker with
    such question is a start of documentation.

    Opencascade-5.2 is included in the zip archive and jcae.bat
    set the correct environment at this line:
    set
    PATH=%jcaeHome%OpenCASCADE5.2/ros/win32/bin;%jcaeHome%jcae/modules/ext/;%PATH%

    There are no needs to edit the jcae.bat file. The with-occ
    argument is only for COMPILATION on LINUX.

    Did you unzipped the archive with cygwin ? I wonder if there
    is a problem with execution rights on DLL. Ensure that all
    DLL (OccJava.dll and Opencascade libraries) are executables.
    If not do a "chmod -R +x".

    Does it help ?

     
  • Jerome Robert

    Jerome Robert - 2006-03-01

    Logged In: YES
    user_id=656405

    I am compiling with visual studio C++ Express 2005 and it
    had a dependency on msvcr80.dll to occjava.dll. I will try
    to remove this dependency.

    As a workaround google msvcr80.dll, download it and set it
    in the same directory as occjava.dll.

     
  • Jerome Robert

    Jerome Robert - 2006-03-16
    • status: open --> closed
     
  • Jerome Robert

    Jerome Robert - 2006-03-16

    Logged In: YES
    user_id=656405

    Fixed in 0.12