I followed the below directions in order to use Java3D with
Symantec Visual Cafe proessional 3.0. However whenever I set a break
point in the simplest of Java3D programs. I get this response (in the
message window when trying to Debug :
...
Build Successful
loading HelloJava3Da.class for debugging...
HelloJava3D.class successfully loaded
java.lang.UnsatisfiedLinkError: doPrivilaged
at
at
at
at HelloJava3Da.<init>(HellolJava3Da.java:46)
at HelloJava3Da.main(HelloJava3Da.java:74)
at Symantec.tools.debug.MainThread.run(Agent.java:48)
...
It appears that I've run into an unhandled exception caused
by trying to run it in the debugger.... Any Ideas?
Thanks,
Harley Blumenfeld
>From: [EMAIL PROTECTED] (Scott Eberline)
>To: hind lwahhabi <[EMAIL PROTECTED]>
>CC: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>Subject: Re: [java3d] visual caf�.
>Date: Thu, 15 Apr 1999 10:48:21 -0700
>
>hind lwahhabi wrote:
>> Is there any way i can make jdk1.2 and java3d works under visual
caf=E9=
> 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:\J=
>avaSoft\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\j=
>re\lib\ext\j3dcore.jar;d:\JavaSoft\jdk1.2.1
\jre\lib\ext\j3dutils.jar;d:\J=
>avaSoft\jdk1.2.1
\jre\lib\ext\vecmath.jar;C:\VisualCafe\JAVA\LIB;C:\Visual=
>Cafe\JAVA\LIB\SYMCLASS.ZIP;C:\VisualCafe\JFC\SWINGALL.JAR;C:\VisualCa
fe\B=
>in\COMPONENTS\SFC.JAR;C:\VisualCafe\Bin\COMPONENTS\SYMBEANS.JAR;C:\Vi
sual=
>Cafe\JAVA\LIB\Collections.zip;C:\VisualCafe\JAVA\LIB\icebrowserbean.j
ar;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,
>--=20
>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/
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
/*
* @(#)HelloJava3Da.java 1.0 98/11/09 15:07:04
*
* Copyright (c) 1996-1998 Sun Microsystems, Inc. All Rights Reserved.
*
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
*
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
*/
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.event.*;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.universe.*;
import com.sun.j3d.utils.geometry.ColorCube;
import javax.media.j3d.*;
import javax.vecmath.*;
// HelloJava3Da renders a single, rotating cube.
public class HelloJava3Da extends Applet {
public HelloJava3Da() {
setLayout(new BorderLayout());
Canvas3D canvas3D = new Canvas3D(null);
add("Center", canvas3D);
BranchGroup scene = createSceneGraph();
// SimpleUniverse is a Convenience Utility class
SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
// This will move the ViewPlatform back a bit so the
// objects in the scene can be viewed.
simpleU.getViewingPlatform().setNominalViewingTransform();
simpleU.addBranchGraph(scene);
} // end of HelloJava3Da (constructor)
public BranchGroup createSceneGraph() {
// Create the root of the branch graph
BranchGroup objRoot = new BranchGroup();
objRoot.addChild(new ColorCube(0.4));
return objRoot;
} // end of CreateSceneGraph method of HelloJava3Da
// The following allows this to be run as an application
// as well as an applet
public static void main(String[] args) {
Frame frame = new MainFrame(new HelloJava3Da(), 256, 256);
} // end of main (method of HelloJava3Da)
} // end of class HelloJava3Da