org.lwjgl.util.applet
Class LWJGLInstaller

java.lang.Object
  extended by org.lwjgl.util.applet.LWJGLInstaller

public class LWJGLInstaller
extends java.lang.Object

Installer class for installing LWJGL temporarily into a temp directory. This class is used for installing LWJGL for use with applets.

Version:
$Revision$ $Id$
Author:
Brian Matzon

Method Summary
static void tempInstall()
          Create a temporary installation of LWJGL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

tempInstall

public static void tempInstall()
                        throws java.lang.Exception
Create a temporary installation of LWJGL. This will extract the relevant native files (for the platform) into the user's temp directory, and instruct the LWJGL subsystem to load its native files from there. The file required by the installer, is gotten from the classloader via its getResource command, and is expected to be named _natives.jar. Note: Due to the nature of native libraries, we cannot actually uninstall the currently loaded files, but rather the "last" installed. This means that the most recent install of LWJGL will always be present in the users temp dir. When invoking the tempInstall method, all old installations will be uninstalled first.

Throws:
java.lang.Exception
See Also:
ClassLoader.getResource(String)


Copyright © 2002-2006 lwjgl.org. All Rights Reserved.