All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ery.jvrpn.1.0.1.source-code.VRPN Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version


package vrpn;

public class VRPN
{
	
	/**
	 * All VRPN objects must assert this lock before making any calls
	 * into native code.  A corollary of this is that no native methods
	 * may be public; all native methods must be wrapped by other methods
	 * that first synchronize on this lock before calling the native
	 * method.
	 */
	protected final static Object downInVrpnLock = new Object( );
	
	static
	{
		try { System.loadLibrary( "java_vrpn" ); }
		catch( UnsatisfiedLinkError e )
		{
			System.out.println( e.getMessage( ) );
			System.out.println( "Error initializing java_vrpn." );
			System.out.println( " -- Unable to find native library." );
		}
		catch( SecurityException e )
		{
			System.out.println( e.getMessage( ) );
			System.out.println( "Security exception:  you couldn't load the native vrpn dll." );
		}
	} // end static initializer block
	
	
} // end class VRPN




© 2015 - 2024 Weber Informatics LLC | Privacy Policy