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 
Switch to threaded view of this topic Create a new topic Submit Reply
Java Bridge Question [message #50109] Wed, 13 September 2006 10:14
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

I am trying to learn how to use the JAVA BRIDGE in IDL 6.2.

I have built a Java class called TryGeometry, which contains
two classes: Point and Line. The program compiles, builds,
and runs properly in the JavaBeans IDE. The IDE creates a
file named TryGeometry.jar. I have copied this file to
the same directory containing the jbexamples.jar file:

C:\RSI\IDL62\external\objbridge\java\

As I understand things, TryGeometry.jar is a package that
contains three classes: Main, Point, and Line. (I have
three *.class files in the TryGeometry folder.)

I have modified the idljavabrc configuration file in IDL
in the following way:

JVM Classpath =
$CLASSPATH;C:\RSI\IDL62\external\objbridge\java\jbexamples.j ar
JVM Classpath =
$CLASSPATH;C:\RSI\IDL62\external\objbridge\java\TryGeometry. jar

And I have set my JVM LibLocation as this:

JVM LibLocation = C:\Program Files\Java\jre1.6.0\bin\client

Nevertheless, when I try to create a Point object, it fails
like this:

IDL> obj = obj_new("IDLJAVAOBJECT$POINT", "Point", 0.25, 0.25)
Class Point not found
Execution halted at: $MAIN$

I have no difficulty whatsoever running the example programs.

Any ideas?

Thanks,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Undefining a variable a pointer points to
Next Topic: quickly reassign numbers in large array?

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

Current Time: Wed Oct 08 19:23:24 PDT 2025

Total time taken to generate the page: 0.00597 seconds