[vtkusers] Java + VTK + SWT + eclipse integration
amoreno
amorenoher at gmail.com
Fri Aug 31 07:12:39 EDT 2007
I'm successfully integrated VTK in a Eclipse Java project using and SWT
Shell.
http://www.nabble.com/file/p12424503/vtk04.png
But when I try to do the same integration in a Eclipse editor:
Source:
public class VTKEditor extends EditorPart {
public void createPartControl(Composite parent) {
Composite composite = new Composite(parent, SWT.EMBEDDED);
parent.setLayout (new FillLayout ());
Frame frame = SWT_AWT.new_Frame(composite);
frame.add(new vtk.vtkPanel()); // commenting this line, All runs
perfect but without VTK:-P
frame.setBackground(Color.BLUE);
}
...............................
...............................
...............................
...............................
All runs perfect until I load the VTKEditor (using exactly the same project
configuration and dependencies)
I get this error:
java.lang.NoClassDefFoundError: vtk/vtkPanel
...............................
...............................
...............................
...............................
http://www.nabble.com/file/p12424503/vtk02.png
And deleting the line where vtlPanel is created...
http://www.nabble.com/file/p12424503/vtk03.png
Could anyone help me???
thank you in advance
Alejandro
--
View this message in context: http://www.nabble.com/Java-%2B-VTK-%2B-SWT-%2B-eclipse-integration-tf4359535.html#a12424503
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list