hind lwahhabi wrote:
> Is there any way i can make jdk1.2 and java3d works under visual café by
> copying classes or something like that?
Symantec Visual Cafe Professional 3.0a can debug Java 3D applications.
This note describes what I did to get it working.
1. Installation Locations
The steps below assume that Java is installed in the following
directories.
d:/JavaSoft/JRE/1.2/bin/...
d:/JavaSoft/JRE/1.2/lib/...
d:/JavaSoft/jdk1.2.1/bin/...
d:/JavaSoft/jdk1.2.1/jre/...
d:/JavaSoft/jdk1.2.1/lib/...
Note that the JRE hierarchy contains both JRE 2 and the J3D runtime.
Similarly, the JDK hierarchy contains both JDK 1.2.1 and the J3D SDK.
2a. PATH Environment Variable
My PATH is as follows. It is important that the JDK bin directory
appear before the NT system32 directory, which probably contains
some (half crippled) java.exe file.
d:/JavaSoft/jdk1.2.1/bin
c:/WINNT/system32
c:/WINNT
c:/VisualCafe/bin
c:/VisualCafe/Java/bin
2b. CLASSPATH Environment Variable
My CLASSPATH is pretty minimal. Everything that properly belongs
in the JRE lib/ext folder will be found there automatically by
the JVM. (Cafe will need to be told explicitly where to locate
those other jars, but not through CLASSPATH.)
My CLASSPATH therefore only contains directories specific to
my application; for this example, assume it to be unset.
This is probably a good point to try J3D HelloUniverse.
3a. Configuring Cafe Project Options
Under Project Options, Directories tab, the directory list for
"Input class files" needs to contain the following directories:
d:\JavaSoft\jdk1.2.1\jre\lib
d:\JavaSoft\jdk1.2.1\jre\lib\ext
3b. Configuring Cafe Environment Options
This is the important part. You must define a new VM to plug into Cafe.
First, look at the Cafe readme (e.g. c:/VisualCafe/ReadMe.html),
under the topic "Enhanced Pluggable VM Debugging Support for 3.0a".
I've defined a VM called JDK 1.2.1, as follows:
Compiler classpath {see below}
Use VM executable D:/JavaSoft/jdk1.2.1/bin/java.exe
Classpath specifier -classpath
Classpath {see below}
Other command options {empty}
VM path D:/JavaSoft/jdk1.2.1/bin/
Use debugger executable {empty}
Javadoc executable {empty}
The entries for "Compiler classpath" and "Classpath" are identical.
Jar files to include in searchpaths for the compiler, VM and debugger:
d:/JavaSoft/jdk1.2.1/lib/dt.jar
d:/JavaSoft/jdk1.2.1/lib/tools.jar
d:/JavaSoft/jdk1.2.1/jre/lib/i18n.jar
d:/JavaSoft/jdk1.2.1/jre/lib/jaws.jar
d:/JavaSoft/jdk1.2.1/jre/lib/rt.jar
d:/JavaSoft/jdk1.2.1/jre/lib/ext/iiimp.jar
d:/JavaSoft/jdk1.2.1/jre/lib/ext/j3daudio.jar
d:/JavaSoft/jdk1.2.1/jre/lib/ext/j3dcore.jar
d:/JavaSoft/jdk1.2.1/jre/lib/ext/j3dutils.jar
d:/JavaSoft/jdk1.2.1/jre/lib/ext/vecmath.jar
plus the Visual Cafe jars. The total Cafe JDK 1.2.1 classpath is this:
.;d:\JavaSoft\jdk1.2.1\lib\dt.jar;d:\JavaSoft\jdk1.2.1\lib\tools.jar;d:\JavaSoft\jdk1.2.1\jre\lib\i18n.jar;d:\JavaSoft\jdk1.2.1\jre\lib\jaws.jar;d:\JavaSoft\jdk1.2.1\jre\lib\rt.jar;d:\JavaSoft\jdk1.2.1\jre\lib\ext\iiimp.jar;d:\JavaSoft\jdk1.2.1\jre\lib\ext\j3daudio.jar;d:\JavaSoft\jdk1.2.1\jre\lib\ext\j3dcore.jar;d:\JavaSoft\jdk1.2.1\jre\lib\ext\j3dutils.jar;d:\JavaSoft\jdk1.2.1\jre\lib\ext\vecmath.jar;C:\VisualCafe\JAVA\LIB;C:\VisualCafe\JAVA\LIB\SYMCLASS.ZIP;C:\VisualCafe\JFC\SWINGALL.JAR;C:\VisualCafe\Bin\COMPONENTS\SFC.JAR;C:\VisualCafe\Bin\COMPONENTS\SYMBEANS.JAR;C:\VisualCafe\JAVA\LIB\Collections.zip;C:\VisualCafe\JAVA\LIB\icebrowserbean.jar;C:\VisualCafe\JAVA\LIB\jsdk.jar;C:\VisualCafe\JAVA\LIB\SYMTOOLS.JAR
If you shutdown Cafe and restart it, it may parse everything in the
classpath and place a .vep file in your JDK bin directory.
This is normal and expected.
That's it. Good luck.
Regards,
--
Scott D. Eberline | Project Manager-Developer | Animation Science Corp.
+1 (408) 543-1644
[EMAIL PROTECTED]
˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/