Java tutorial
//package com.java2s; //License from project: LGPL public class Main { private static boolean loaded = false; static void loadLibrary() { if (loaded) return; try { System.loadLibrary("openal"); loaded = true; } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load."); e.printStackTrace(); System.exit(1); } } }