[vtkusers] Any ideas using Eclipse and Simplevtk.java

skslimjim at aol.com skslimjim at aol.com
Tue Aug 9 11:44:14 EDT 2005


 
 For weeks, have been struggling with:


Can't run Simplevtk.java on winXP PC but using Eclipse IDE but works with CodeWarrior.
Can't seem to link native methods (.dll's??) called in vtkpanel---lock(),unlock(),and rendercreate(),
I'm using/pointing to same envi variables as CodeWarrior yet it doesn't link with Eclipse IDE. system load libraries ( called in vtkpanel) execute properly at runtime.
 

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: 
RenderCreate
    at vtkPanel.RenderCreate(Native Method)
    at vtkPanel.Render(vtkPanel.java:139)
    at vtkPanel.paint(vtkPanel.java:159)
    at sun.awt.RepaintArea.paintComponent(Unknown Source)
    at sun.awt.RepaintArea.paint(Unknown Source)
    at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

Tried:
CLASSPATH = .;%JAVA_HOME%\lib\classes.zip;C:\Program Files\vtk42\bin\;C:\Program 
Files\vtk42\bin\vtk.jar;C:\Program Files\vtk42\lib\vtk;C:\Program 
Files\vtk42\lib

Path = ...;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;c:\GLF;C:\Program 
Files\vtk42\bin\;C:\Program Files\vtk42\bin\vtk.jar;C:\Program 
Files\vtk42\lib\vtk;C:\Program Files\vtk42\lib
 
then:

In the Ecllipse Run window Selected the Arguments tab. In the VM Arguments area 
created variable -Djava.library.path set to C:\Program Files\vtk42\bin\
Then tried setting to C:\Program Files\vtk42\bin\;C:\Program 
Files\vtk42\bin\vtk.jar;C:\Program Files\vtk42\lib\vtk;C:\Program 
Files\vtk42\lib;;C:\j2sdk1.4.2_08\lib;C:\j2sdk1.4.2_08\lib\jawt.lib
This causes Java VM Launcher to crash--
Message window--" Can't find Main Class"
Console reports--java.lang.NoClassDefFoundError: C:\Program
Exception in thread "main"

Later, tried adding to CLASSPATH  and Path---- C:\j2sdk1.4.2_08\lib;C:\j2sdk1.4.2_08\lib\jawt.lib



What else can I do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050809/b1d25816/attachment.htm>


More information about the vtkusers mailing list