Me too and I did try using Visual J++ on Windows (Microsoft's interpretation of Java), it was a hot mess and led to the only time I submitted an official bug report to Microsoft...I don't think they ever supported Java in Xcode directly. At the risk of severely aging myself, I've been using Java since it came out ~1995 and would have moved to a Mac much earlier had Apple offered a decent "native" IDE for Java. The first IDE I used was VisualCafe - only available on Windows, which was somewhat ironic since Sun was competing with Microsoft back then and then Netbeans (which I've used ever since, with a detour to Eclipse and IntelliJ). Anyway, if OSX did support Java at the time, I think I would have known as I was an avid Windows hater then. My first chance at full-time Java development didn't come until around 2007 and I used Netbeans IDE. I think at the time Apple did bundle the JDK or JRE but, again, I don't remember Xcode letting you build Java apps.
I wrote a simple graphics demo that drew lines across the screen like the classic "Mystify" Windows screensaver. It used an x and y increment variable to increment/decrement the variable.
Basically
xinc = 1;
do
x+=xinc;
if x >= width; xinc=-1;
if x <= 0; xinc=1;
...same for y
draw
while true
(It is too long since I've done any Java, so just a bit of pseudocode, so you get the idea)
The bug? x += xinc always added +1 to x, even if xinc was negative. Changing it to x = x + xinc didn't help, J++, or rather the MS Java runtime couldn't do basic math! The code ran fine when converted to VisualBasic or VC++ or under Sun Java, just not in J++.
I had to do a workaround with if xinc > 0; x += xinc; x -= Math.abs(xinc);
That was 1.0, it wasn't fixed in 1.1 or 2.0, I never saw any updates after that...