On 2011/2/20 Dominique Belhachemi wrote: > > I am CC'ing debian-java to get some additional help. > > > Hi Denis, > > thanks for looking into this issue. > > Unfortunately, the wrapper around gcj-4.4 is filtering out the -source > option. > $ less /usr/bin/gcj-wrapper-4.4 > elsif ($arg eq '-source' or $arg eq '-sourcepath' or $arg eq '-target') > { > # An unsupported option with a following argument. > $ignoreNextArg = 1; > } > > > If I call the compiler directly I am getting > gcj-4.4: unrecognized option '-source' > > > I think cmake is looking for the 'java -version' value. > $ java -version > java version "1.5.0" > gij (GNU libgcj) version 4.4.5 > > That is probably the reason why it reports misleadingly > -- Java version 1.5.0 configured successfully! > > But the compiler seems to be using a different language compliance level > (< 1.5). Otherwise it would know the 'enum' type. > > So, how do I set the language compliance level? Or should I use a > different compiler on kfreebsd and hppa?
Hello Dominique, You do not have to change anything, my patch works as is with default-jdk on all architectures. A similar fix has already been applied months ago, see http://git.debian.org/?p=collab-maint/vtk.git;a=commit;h=db81316 We need this new one in VTK 5.6 because new files have been added into Wrapping/Java/vtk/, and they use Java 5 features. The previous fix dealt with automatically generated Java files. I do not know how to best "emulate" architectures which do not default to openjdk; but you can try # rm /usr/lib/jvm/default-java # ln -s java-1.5.0-gcj /usr/lib/jvm/default-java Do not forget to reset this symlink when you have finished ;) Denis -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/AANLkTikDKE=jqh9t24v5kjru0xwpnxqab_duazj9_...@mail.gmail.com