3 Replies Latest reply: Oct 20, 2009 12:05 PM by David Bourne
David Bourne Level 2 Level 2 (345 points)
I went back to rework some Java applets I have written and discovered they don't compile anymore in Xcode (at least as before)

Hmm. I had Java templates, downloaded the latest XCode and the templates are gone. My 'old' applets won't compile complaining 'Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation.'

I found a separate Java SDK download? From
http://developer.apple.com/java/download/
has 10.5 version listed only

Clicking on the link goes to the (old) log-in page for the Developer program and the download/Java link goes to a page with 10.6 Java downloads - Developer previews.

Still no Java templates (in Xcode). Maybe I should read the documentation (if I can find where it was installed). I was able to 'compile' the Hello World applets in the organizer window but no 'Hello World' in Safari.

What's happened to the 'old' system for Java development?

Mac Pro, Mac OS X (10.6)
  • K T Level 7 Level 7 (23,700 points)
    Don't come on here begging and saying you should maybe read the docs in the same breath - at least search xcode help...next thing you'll be asking which template and then does anyone have sample code. Please don't be that guy...

    Ceate Java projects in Xcode 3.2 using Xcode's Organizer. Choose Window > Organizer to open the Organizer. Click the + button at the bottom of the Organizer. Choose New From Template > Java Templates.
  • David Bourne Level 2 Level 2 (345 points)
    After installing XCode 3.2.1 there were no Java docs or Java templates. I installed the Java files and docs for 10.6 from the developer site. Searching XCode for Java gives a lot of Javascript items but no easy answers for Java. Using the Organizer window instead of the Xcode project window is a big change. I must have missed it but searching this forum, Xcode and now the java-dev mailing list archive hasn't given me good answers. One answer seems to be to put Mac OS X10.5 on a separate volume, install the older XCode (or current??) and develop Java one OS version back.

    The Hello World applet didn't run for me when I tried it. Blank browser window. Java Preferences seem to default for 10.6

    "Create Java projects in Xcode 3.2 using Xcode's Organizer. Choose Window > Organizer to open the Organizer. Click the + button at the bottom of the Organizer. Choose New From Template > Java Templates." > Java Applets. Build

    ...
    BUILD SUCCESSFUL
    Total time: 1 second

    The Debugger has exited with status 0.
    ...
    gives a new window in Safari but it is empty.
  • David Bourne Level 2 Level 2 (345 points)
    Hmm. Some progress. My applet and sample applets are blank in Safari but shows up OK in Firefox.

    Firefox v3.5.3 with Java Embedding Plugin 0.9.7.2...

    Safari v4.0.3 with Java Plug-in for Cocoa versions 1.1 ... 1.6

    Java Preferences set to Jave SE 6 64- and 32-bit.

    ...

    OK, I restarted Safari and the applet now works in Safari... (this was similar to before, either restarting or new window was required to view the new applet, a bit of a nuisance).

    Also, I wonder what this will do to backward compatible browser/plug-in...

    It's a little different using the organizer window and build.xml but maybe I'll get used to it.;-)