tags:

views:

52

answers:

1

I'm a newbie to VTK and am starting to write a medical viewer. I've seen that VTK wraps into either Java or QT and was wondering if anyone has an opinion about which one works better. I'm much better at Java, and would be learning QT from scratch. However, I've read and noticed that getting VTK and Java to play nice can be problematic. For example my first hello world Java VTK program took a long time to write because I had to modify the system path to get Java with VTK to run. This alone might be problematic down the road because the computers I'm deploying on have very strict security regulations. But on the other hand, I'd be learning QT from scratch.

Any ideas or opinions would be much appreciated.

Thanks!

+2  A: 

This alone might be problematic down the road because the computers I'm deploying on have very strict security regulations.

It sounds like you need to identify the security regulations and determine whether it's going to be possible to use Java. If it's not, then there is no point in proceeding further and trying to determine how to best overcome the problems that you encountered.

Since you'll likely be far more proficient with Java, I'd recommend you stick with that unless there is an overwhelming reason not to -- like security regulations. The more you can keep the number of variables of change small, the more likely you'll be to succeed... and succeed quickly.

On a side note, I did some tests with VTK on Qt and didn't have any problems getting it to work, but I also know Qt very well. I haven't tried VTK under Java.

Kaleb Pederson
Thanks for your comment. Do you know if you have to modify the system path for Java to work with VTK, or is there another way around that issue?
Jon
The VTK jar uses JNI which means you're going to be operating system specific (although a good installer can handle this). So, it's possible that you needed to change the system path so the VTK DLLs were accessible through Java. Everything may work successfully if you were to move the DLLs from their install location to the same directory as your application is running from.
Kaleb Pederson
I was able to get Java to work by moving around the .dll files. Thanks for the help
Jon