JUnit on Mac OS X

Hi,
I have the same error as a previous poster, but I cannot reply to him. I can get a bit further in compiling with JUnit, as I have put the .jar file in the jre/lib/ext directory, but ant build still crashes half way through:

-do-test-run:
[junit] Testsuite: org.jdesktop.beans.AbstractBeanTest
[junit] Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/soylatte16-i386-1.0.2/jre/lib/i386/libnet.dylib: dlopen(/usr/local/soylatte16-i386-1.0.2/jre/lib/i386/libnet.dylib, 1): Symbol not found: __ZNK8TQObject19NumberOfConnectionsEv
[junit] Referenced from: /Users/tobydavies/root/lib/libnet.dylib
[junit] Expected in: dynamic lookup
[junit]
[junit] at java.lang.ClassLoader$NativeLibrary.load(Native Method)
[junit] at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1770)
[junit] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1669)
[junit] at java.lang.Runtime.loadLibrary0(Runtime.java:823)
[junit] at java.lang.System.loadLibrary(System.java:1030)
[junit] at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at java.net.InetAddress.(InetAddress.java:215)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.getHostname(XMLJUnitResultFormatter.java:149)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.startTestSuite(XMLJUnitResultFormatter.java:125)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireStartTestSuite(JUnitTestRunner.java:612)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:408)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)

I'm using soylatte, a version of java 1.6 for macs, as java 1.6 isn't officially available for macs. Have I set this up incorrectly? why is this error present? Thanks in advance for your help!

Java 6 / Leopard

Java 6 is officially available on Mac OS 10.5