It looks like you're creating a dynamic library and are trying to link it as if it was static. Try this (note, this is off the top of my head and may not be exactly perfect) ---
gcc -c *.c -framework JavaVM -I/System/Library/Frameworks/JavaVM.framework/Headers
ar cr mylibrary.a *.o...