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

Home » Public Forums » archive » java bridge question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Java Bridge Question [message #50093 is a reply to message #46522] Thu, 14 September 2006 05:38 Go to previous messageGo to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
pskellicker@ameritech.net wrote:

> I would suggest verifying what is in the .jar file:
>
>> jar tf TryGeometry.jar
> .. should dump out the class names in the jar file. Verify you have
> a class called Point and not ("fanning.com.Point" or "point" or
> "TryGeometry$Point")
>
> Then verify that there is a public constructor for Point that takes 2
> floats as parameters.
>
>> javap -classpath TryGeometry.jar Point
> Should dump out the public methods of Point.
>

If the constructor was invalid/missing the error would be:

% Constructor Point::Point(float,float) not found

I would agree that you need to look at the structure of the jar. Did you include
any paths in the jar? i.e. did you create the jar from the directory containing
the class files and specify them as *.class, so that there is no preceding
path? Java is very fussy about paths and packages, and the path must match the
package declaration exactly.

jar tf TryGeometry.jar

should list at least:

META-INF/
META-INF/MANIFEST.MF
Point.class


--
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image stabilization filter
Next Topic: Array matching?

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

Current Time: Fri Oct 10 12:57:36 PDT 2025

Total time taken to generate the page: 0.48412 seconds