comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL java bridge
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL java bridge [message #36375] Mon, 15 September 2003 06:57
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
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
Re: IDL java bridge [message #36381 is a reply to message #36375] Fri, 12 September 2003 13:18 Go to previous message
Melissa A. Jackson is currently offline  Melissa A. Jackson
Messages: 2
Registered: September 2003
Junior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: controlling itools (low level)
Next Topic: Re: PropertySheet Widget Question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:44:09 PDT 2025

Total time taken to generate the page: 0.00605 seconds