Java Bridge Question [message #50109] |
Wed, 13 September 2006 10:14 |
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.")
|
|
|