From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17384 invoked by alias); 15 Jul 2009 08:29:30 -0000 Received: (qmail 17373 invoked by uid 22791); 15 Jul 2009 08:29:30 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f222.google.com (HELO mail-fx0-f222.google.com) (209.85.220.222) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Jul 2009 08:29:24 +0000 Received: by fxm22 with SMTP id 22so3252134fxm.8 for ; Wed, 15 Jul 2009 01:29:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.118.141 with SMTP id v13mr3561381faq.26.1247646561110; Wed, 15 Jul 2009 01:29:21 -0700 (PDT) In-Reply-To: <4A5D925B.1030101@redhat.com> References: <4A5D925B.1030101@redhat.com> From: Mathieu Malaterre Date: Wed, 15 Jul 2009 08:29:00 -0000 Message-ID: Subject: Re: gcj 1.5.x: error: /classname/ cannot be resolved to a type To: Andrew Haley Cc: java@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg00015.txt.bz2 On Wed, Jul 15, 2009 at 10:24 AM, Andrew Haley wrote: > On 07/15/2009 09:08 AM, Mathieu Malaterre wrote: >> >> Hi there, >> >> =A0 I am getting an error using gcj 1.5.x I was not getting in older >> release, and I do not understand what I am doing wrong. >> >> =A0 Compilation line: >> >> cd /home/mathieu/Perso/gdcm/debug-snap/Utilities/VTK/java&& >> /usr/lib/gcc-snapshot/java-1.5.0-gcj-4.5/bin/javac -cp >> /home/mathieu/Kitware/VTK-snap/bin/vtk.jar vtk/*.java >> gcj: warning: already-compiled .class files ignored with -C >> vtk/vtkGDCMImageReader.java:5: warning: The import vtk is never used >> =A0 import vtk.*; >> =A0 =A0 =A0 =A0 =A0^^^ >> vtk/vtkGDCMImageReader.java:7: error: vtkMedicalImageReader2 cannot be >> resolved to a type >> =A0 public class vtkGDCMImageReader extends vtkMedicalImageReader2 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 ^^^^^^^^^^^^^^^^^^^^^^ >> >> >> With: >> >> $ /usr/lib/gcc-snapshot/java-1.5.0-gcj-4.5/bin/jar =A0tvf >> /home/mathieu/Kitware/VTK-snap/bin/vtk.jar | grep >> vtkMedicalImageReader2 >> =A02990 Wed 7 08 10:54:20 CEST 2009 vtk/vtkMedicalImageReader2.java >> =A03023 Wed 7 08 10:54:22 CEST 2009 vtk/vtkMedicalImageReader2.class >> >> >> Copy of the java code: >> >> ... >> $ head ./Utilities/VTK/java/vtk/vtkGDCMImageReader.java >> // java wrapper for vtkGDCMImageReader object >> // >> >> package vtk; >> import vtk.*; >> >> public class vtkGDCMImageReader extends vtkMedicalImageReader2 >> { >> >> =A0 private native String GetClassName_0(); >> ... >> >> >> References version: >> $ /usr/lib/gcc-snapshot/java-1.5.0-gcj-4.5/bin/javac -version >> gcj (Debian 20090620-1) 4.5.0 20090620 (experimental) [trunk revision >> 148747] >> Copyright (C) 2009 Free Software Foundation, Inc. >> This is free software; see the source for copying conditions. =A0There i= s NO >> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >> PURPOSE. >> >> $ /usr/lib/gcc-snapshot/java-1.5.0-gcj-4.5/bin/jar --version >> jar (GNU Classpath) 0.98 >> >> Copyright 2008 Free Software Foundation, Inc. >> This is free software; see the source for copying conditions. =A0There i= s NO >> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >> PURPOSE. > > I really need a test case for this. =A0Something I can build. Everything is open source. Ref build failure on automated debian build system (hppa machine): https://buildd.debian.org/~luk/status/package.php?p=3Dgdcm The problem is that this is quite complex to build on a non-debian system. Does redhat system comes with a system installed 'vtk.jar' file ? To reproduce you need to get VTK package, turn java wrapping on. Then build GDCM against that VTK version. If you need more info, please contact me directly. Thanks, --=20 Mathieu