[vtkusers] RE: Java + VTK + SWT + eclipse integration

amoreno amorenoher at gmail.com
Mon Sep 3 06:04:38 EDT 2007


My problem y using eclipse and trying to integral vtkPanel in a eclipse
EditorPart.

I have created an SWT simple application an it runs ok.

thank you. I will continue searching the bug.
Alejandro


rafael possani wrote:
> 
> 
>   I received this same problem, but I compile using the DOS prompt, I
> think that is a Path problem, this my Path and Classpath links, try to
> chance , man.
> 
> 
> 
> To execute: 
> 
> java  -classpath .;c:\vtk\vtkbin\bin\vtk.jar myclass
> 
> to compile:  javac  -classpath c:\vtk\vtkbin\bin\vtk.jar myclass.java
> 
> 
> 
>  
> Path:
> 
> C:\Arquivos
> de programas\Java\jdk1.6.0_01\bin;C:\Arquivos de
> programas\Java\jre1.6.0_01\bin;C:\Arquivos de programas\VTK
> 5.0\bin;C:\VTK\VTKBin\bin\debug\;
> 
>  
> 
> CLASPATH:
> 
> c:\vtk\vtkbin\bin\debug;   
> 
> My errors was in execution time, when I put the path to
> ...\jre1.6.0_01\bin  the problems stopped.   
> I wish a good luck for you.
> bye bye. 
>    
> 
>> Date: Fri, 31 Aug 2007 04:12:39 -0700
>> From: amorenoher at gmail.com
>> To: vtkusers at vtk.org
>> Subject: [vtkusers] Java + VTK + SWT + eclipse integration
>> 
>> 
>> 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.
>> 
>> _______________________________________________
>> This is the private VTK discussion list. 
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> _________________________________________________________________
> Encontre o que procura com mais eficiência! Instale já a Barra de
> Ferramentas com Windows Desktop Search GRÁTIS!
> http://desktop.msn.com.br/
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 

-- 
View this message in context: http://www.nabble.com/Java-%2B-VTK-%2B-SWT-%2B-eclipse-integration-tf4359535.html#a12459210
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list