You need to make sure that at least one of the classes has been loaded
from the package before you call getPackage.  Check out the PackageInfo
example program (in <jdk>/demo/java3d/PackageInfo).

Btw, in version 1.3, we are adding explicit version info.  See
VirtualUniverse.getProperties().

--
Kevin Rushforth
Java 3D Team
Sun Microsystems

[EMAIL PROTECTED]


>Date: Wed, 2 May 2001 10:44:28 -0500
>From: John Wright <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Java3D Version at runtime
>To: [EMAIL PROTECTED]
>
>I'm trying to get the version of Java 3D at runtime using:
>
>Package p = Package.getPackage( "javax.media.j3d" );
>if ( p == null) {
>  System.out.println("no package");
>}
>String version = p.getImplementationVersion();
>
>But "p" the package is always returning null.
>
>Any ideas?
>
>- John Wright
>Starfire Research
>
>===========================================================================
>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