Skip to content

Instantly share code, notes, and snippets.

@miura
Created January 23, 2012 13:30
Show Gist options
  • Save miura/1663134 to your computer and use it in GitHub Desktop.
Save miura/1663134 to your computer and use it in GitHub Desktop.
Check the Java3D environment
importClass(Packages.javax.media.j3d.VirtualUniverse);
vu = new VirtualUniverse();
if (vu == null)
System.out.println("failed getting VirtualUniverse");
vuMap = vu.getProperties();
System.out.println("Java3D version: " + vuMap.get("j3d.version"));
System.out.println("Java3D vender: " + vuMap.get("j3d.vender"));
System.out.println("Java3D remderer: " + vuMap.get("j3d.renderer"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment