[vtkusers] URGENT: Cannot create JAVA wrappers from CVS code.

shrinivas kulkarni kshrinivas at operamail.com
Tue Jun 1 07:54:15 EDT 2004


Hi All,

After trying hard for last 2 days, I finally decided to post this question to mailing list.

I wanted to write few programs in JAVA which would in turn uses vtk java wrapping. This is what I did in order to achieve it...

1. From VTK CD installed vtk. Included vtk.jar in classpath. When I tried to run my JAVA app, it failed to get some functions from DLL. When I browsed through mailing list, I came to know that there might be version conflict between JAR file I am using and vtk DLLs. ( Make note that, this is true, though I installed VTK from CD and made sure that it referes to right DLLs.) 

2. In order to resolve this issue, I got the latest from CVS on 02-JUN-2004 and ran CMake to create VS 6.0 project files. I had turned on the following options:

    VTK_JAVA_WRAPPER
    BUILD_SHARED_LIB
    VTK_USE_ANSI_STDLIB
    VTK_HYBRID

and also made sure that all the parameters refering to JVM etc are correct. When I tried to build I got following error from VS 6.0

--------------------Configuration: VTKBuildAll - Win32 Debug--------------------
Building Custom Rule D:\Project-VTK\java\vtk\vtkBuildAllDriver.class.rule
D:\Project-VTK\java\vtk\..\vtk\vtkVTKJavaCommonDriver.java:11: cannot resolve symbol
symbol  : class vtkAbstractMapper 
location: class vtk.vtkVTKJavaCommonDriver
    dummy = new vtkAbstractMapper();
                ^
D:\Project-VTK\java\vtk\..\vtk\vtkVTKJavaCommonDriver.java:12: cannot resolve symbol
symbol  : class vtkAbstractTransform 
location: class vtk.vtkVTKJavaCommonDriver
    dummy = new vtkAbstractTransform();
                ^
D:\Project-VTK\java\vtk\..\vtk\vtkVTKJavaCommonDriver.java:13: cannot resolve symbol
symbol  : class vtkActor2D 
location: class vtk.vtkVTKJavaCommonDriver
    dummy = new vtkActor2D();
                ^
D:\Project-VTK\java\vtk\..\vtk\vtkVTKJavaCommonDriver.java:14: cannot resolve symbol
symbol  : class vtkActor2DCollection 
location: class vtk.vtkVTKJavaCommonDriver
    dummy = new vtkActor2DCollection();
                ^
D:\Project-VTK\java\vtk\..\vtk\vtkVTKJavaCommonDriver.java:15: cannot resolve symbol
symbol  : class vtkAlgorithm 
location: class vtk.vtkVTKJavaCommonDriver
    dummy = new vtkAlgorithm();

.....

And so on ( in all 101 errors ).

Can anybody tell me what is wrong here? 
why I am getting these errors? 
Where would be java classes would be created after successful compilation?
AND
Will vtk.jar will be automatically generated as a result of build process OR we need to follow some procedure to create one.

Note that, I am using Vs 6.0, windows XP and JSDK 1.4.0_02

Any help appreciated.

Thanks and regards,
Shrinivas

-- 
_____________________________________________________________
Web-based SMS services available at http://www.operamail.com.
>From your mailbox to local or overseas cell phones.

Powered by Outblaze



More information about the vtkusers mailing list