comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: IDL java bridge

Re: IDL java bridge
type: item
description: It appears on linux there is a problem with the IDL-Java bridge using jar files created with ZIP compression. The IDL-Java bridge works fine with ZIP compressed Jar files on Mac OS X, Solaris Sparc 8, and Windows 2000. I have logged an issue here at RSI for development to look into the problem. For now the workaround is: Unjar the file or Build the jar file without ZIP compression(use the 0 flag). The jbexamples.jar file provided in the distribution that works on linux was built with the following command: jar cf0 -Melissa Jackson Research Systems, Inc. "Nigel Wade" <nmw@ion.le.ac.uk> wrote in message news:bjq126$ibt$1@south.jnrs.ja.net... > Has anyone used the IDL java bridge on Linux to access classes in a jar > file? > > I'm trying to access a class in one of my jar files, but I keep getting an > error message in the /tmp/jb_whatever file which says the jar file doesn't > exist. > > The CLASSPATH I have set which points to the jar works fine for a pure Java > application so CLASSPATH is correct as far as Java is concerned. Does > anyone know how IDL locates jar files? > > > This is my CLASSPATH: > .:/home/nigel/Spear/Java/fitData.jar > > this is the attempt to create the Java object: > > IDL> fitReader = OBJ_NEW( 'IDLJavaObject$FITDATA_FITFILEREADER', > 'fitData.FitFileReader', '2003022616f.fit.gz') > % Class fitData.FitFileReader not found > % Execution halted at: $MAIN$ > > and this is the resulting error message: > /home/nigel/Spear/Java/fitData.jar: No such file or directory > > and checking the file really exists: > > $ls -l /home/nigel/Spear/Java/fitData.jar > -rw-rw-r-- 1 nigel nigel 14979 Aug 5 17:41 > /home/nigel/Spear/Java/fitData.jar > > -- > Nigel Wade, System Administrator, Space Plasma Physics Group, > University of Leicester, Leicester, LE1 7RH, UK > E-mail : nmw@ion.le.ac.uk > Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
creator: Melissa A. Jackson
date: 2003-09-12T20:18:21-00:00

Re: IDL java bridge
type: item
description: Melissa A. Jackson wrote: > It appears on linux there is a problem with the IDL-Java bridge using jar > files created with ZIP compression. The IDL-Java bridge works fine with > ZIP compressed Jar files on Mac OS X, Solaris Sparc 8, and Windows 2000. > > I have logged an issue here at RSI for development to look into the > problem. > > For now the workaround is: > Unjar the file > or > Build the jar file without ZIP compression(use the 0 flag). The > jbexamples.jar file provided in the distribution that works on linux was > built with the following command: > jar cf0 > > -Melissa Jackson > Research Systems, Inc. > Ok, thanks. Now I can access the jar file. It was the error message that threw me as it doesn't in any way indicate what the error might be. Do you think this is related to why I can't create a Java object of type GZIPInputStream? When I try to do this an exception is thown and the log file contains: EXCEPTION cJBExceptJavaException : NewObjectA ERR <IDL_JBCreateJavaObject return=(nil) 0x821c618 IDL_JBDeleteCharBuffer Del -- Nigel Wade, System Administrator, Space Plasma Physics Group, University of Leicester, Leicester, LE1 7RH, UK E-mail : nmw@ion.le.ac.uk Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
creator: Nigel Wade
date: 2003-09-15T13:57:07-00:00