starting out with openal

i am trying to lear openal using java, lwjgl actually, cannot seem to get the following to compile which i think is just some introductary basic code:

import net.java.games.joal.;
import net.java.games.joal.util.
;
import java.io.*;
import java.nio.ByteBuffer;

public class Sound {

static AL al = ALFactory.getAL();

// Buffers hold sound data.
static int[] buffer = new int[1];;

// Sources are points emitting sound.
static int[] source = new int[1];
}

i get:

--------------------Configuration: JDK version 1.5.0_01 --------------------
C:\Documents and Settings\Danny\Desktop\Version2.0.13\Version2.0.7\Version2.0.5\Version2.0.5\Sound.java:1: package net.java.games.joal does not exist
import net.java.games.joal.;
^
C:\Documents and Settings\Danny\Desktop\Version2.0.13\Version2.0.7\Version2.0.5\Version2.0.5\Sound.java:2: package net.java.games.joal.util does not exist
import net.java.games.joal.util.
;
^
C:\Documents and Settings\Danny\Desktop\Version2.0.13\Version2.0.7\Version2.0.5\Version2.0.5\Sound.java:8: cannot find symbol
symbol : class AL
location: class Sound
static AL al = ALFactory.getAL();
^
C:\Documents and Settings\Danny\Desktop\Version2.0.13\Version2.0.7\Version2.0.5\Version2.0.5\Sound.java:8: cannot find symbol
symbol : variable ALFactory
location: class Sound
static AL al = ALFactory.getAL();
^
4 errors

Process completed.

any ideas, i’m sorry but i am a total newbie :frowning:

err - are you using OpenAL through the JOAL binding, or using the one in LWJGL?? The one in LWJGL has a totally different syntax, and is in the org.lwjgl.openal package - not net.java.games.joal !

oh i didnt realize there was a difference, is one better than the other? are there tutorials or code snippets out there for using the openal in lwjgl, i don have that installed so should my code have compiled if i have this?
thanks

have sorted this now, thanks for all the help