[vtkusers] Java + VTK + SWT + eclipse integration
rafael possani
gentefinabr at hotmail.com
Fri Aug 31 09:10:41 EDT 2007
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070831/17a863e3/attachment.htm>
More information about the vtkusers
mailing list