Hello everyone

I'm trying to serialize an object to AMF3 using adobe blazeDS found here:
http:/ /opensource.adobe.com/wiki/display/blazeds/Downloads

My code fails at the very first line of the serialization when I try to do this:
Amf3Output amfo=new Amf3Output(new SerializationContext());
I need to pass in a SerializationContext in the parameter, but I have no idea what to send in...
Here's the Javadoc for SerializationContext:
http:/ /livedocs.adobe.com/blazeds/1/javadoc/


And this is the error I'm getting:
Java Code:
Exception in thread "main" java.lang.NoClassDefFoundError: flex/messaging/LocalizedException
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at testapp.Main.main(Main.java:20)
Caused by: java.lang.ClassNotFoundException: flex.messaging.LocalizedException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 13 more
Java Result: 1
That doesn't give me a clue at all as to what is wrong though...
Is there some way of getting out more info about what caused the error?
I'm using netbeans btw

Any help on the subject would be *really* appreciated.
Thanks in advance

ps, since my post-count is below 20 I can't post links, hence the spaces between the two first slashes in the urls.