I’m trying to retrieve the version info with the code below for an application that will be run via java webstart.
try
{
Package p = Class.forName(“javax.media.opengl.GL”).getPackage();
if (p == null)
{
System.out.println(“WARNING: Package.getPackage()is null”);
}
else
{
System.out.println(“SPEC=”+p.getSpecificationTitle());
System.out.println(“VER=”+p.getImplementationVersion());
System.out.println(“VENDOR=”+p.getImplementationVendor());
}
}
catch(Exception ex)
{
ex.printStackTrace();
}
However I get null for the SPEC, VER and VENDOR of the returned package. Now my jnlp file includes a jogl.jnlp file which has all the jogl stuff and mean I don’t have to sign the jogl classes. It used to work when I would reference the jnlp file as a file://…, Once I placed everything on a web server and used http://// as codebase etc, this part fails. Any ideas what I could be doing wrong.