Hi Andrea,

Here is the code I use to check if Java3D is installed. I also go on to check
the version number of Java3D is correct for my app

        Package p = Package.getPackage( "javax.media.j3d" );
        String version = p.getImplementationVersion();

        if (version==null) {
            javax.swing.JOptionPane.showMessageDialog( null, "Java 3D can not be
found, please reinstall Java3D 1.3.",
                "Java 3D Not Installed", javax.swing.JOptionPane.ERROR_MESSAGE
);
            System.exit();
        }


Rgds

Paul

----------------------------------------------------------
Paul Byrne                      Email : [EMAIL PROTECTED]
Sun Microsystems                Phone : (650) 786 9926
Visualization Software Group    Fax   : (650) 786 5852
----------------------------------------------------------

>Date: Thu, 14 Mar 2002 08:48:02 -0500
>From: Andrea Boright <[EMAIL PROTECTED]>
>Subject: [JAVA3D] j3D detection
>To: [EMAIL PROTECTED]
>MIME-version: 1.0
>Delivered-to: [EMAIL PROTECTED]
>
>I am writing java applets, with some Java 3D in them.  I am using JRE1.4.
>
>I'd like to be able to detect whether a user has Java 3D installed, and warn
them if they don't.
>
>How can I do this?
>
>Thanks,
>
>Andrea Boright
>
>Andrea Boright
>Applications Developer
>SAS inSchool, Where learning comes to life
>http://www.SasInSchool.com
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to