[vtkusers] Java / compilation of VTK4.2.2

Jarek Sacha galicjan at yahoo.com
Fri May 30 17:16:10 EDT 2003


--- straw dog <straw_dog at hohotmailom> wrote:
> Hi,
> 
> I'm a VTVTKewbie, just building VTVTKor the first time.  a quick
> question:
> 
> - i can't get the Java stuff working.  The build seems okokbut when i
> try 
> the Tutorial Step1 example i get this.  I'm using JDJDK4.1 from
> BlBlackdown
> under RH8.0.
> 
> rbrbrookodoggettava}jajavaone
> Exception in thread "main" jajavaalangnUnsatisfiedLinkErrorno
> vtvtkCommonJava
> in jajavaibrary.path
>         at jajavaalanglClassLoaderoloadLibrarylClassLoaderajava403)
>         at jajavaalanguntime.loloadLibraryRuntime.jajava88)
>         at jajavaalangystem.loloadLibraryystem.jajava32)
>         at Cone.<clclinitCone.jajava7)

In this case, Java cannot find VTVTKhared (dynamic) libraries. Those are
actually not Java but C++ libraries. Look where you have
lilibvtkCommonJavao and sisimilaribraries. This could be 'bin'
subdirectory of you VTVTKuild directory. Add that directory to you
LDLDIBRARY_PATH variable. AlAlternativelyou can specify it as
'jajavaibrary.path' parameter when running JVJVM 
jajavaDjDjavaibrary.path=some_didirectoryone
You can spspecifyore then one directory if you separate them by a colon
(same convention as used by LDLDIBRARY_PATH).

> 
> I'm not so good with Java.  whats the jajavaibrary.path.  CLCLASSPATH
This is a directory there Java looks for shared libraries (on PC those
will be DLDLLs
 
> but 
> this class - vtvtkCommonJavais not in any jar file i can find.
See above, this is just a core of a library name, in this case
lilibvtkCommonJavao.

> 
> The vtvtkuild is otherwise good.  Python, TcTclnd C++ are happy.
> 
> thanks
> Rupert Brooks
> McGill CeCentreor Intelligent Machines



More information about the vtkusers mailing list