Slashdot Mirror


Apple Updates to Java 1.4.1

A user writes, "Apple has caught up with the times and updated their Java to 1.4.1, bringing it completely up to date with the newest release from Sun. It now takes advantage of Aqua and Quartz Extreme, is usable via Universal Access, and can be controlled through AppleScript." It provides 1149 new classes over 1.3.1, a new native I/O API, updated XML tools (SAX 1.0/2.0, DOM 1.0/2.0, XSLT), I18N and L10N enhancements for Unicode 3.0, regexes, IPv6, faster loading of applets, improved caching, storing of certs in the Keychain, faster UI, more Aqua-like UI ... and native Java applet support for Safari.

21 of 148 comments (clear)

  1. Great by sconest · · Score: 4, Informative

    Time to try IDEA

    --
    Guvf vf abg n EBG zrffntr
  2. Yay for me! by Dark+Paladin · · Score: 5, Interesting

    I do development work (well, or did, but that's another isue), and the Lnux systems use Tomcat with Java 1.4 - mainly because it has the Regular Expressions stuff built in.

    I usually develop things on my Mac laptop, then transfer thing over to the official test system. But since I only had Java 1.3, it was harder to develop my stuff for them - I had to have a separate Linux box just for me to use as a mini-server.

    Well, I no longer work there and am about to take another job, but at least I an update my system and work on my new web publishing system.

    My only fear? That Java 1.5 will be released in a few weeks....

  3. Documentation/Changelog/New futures by jeneag · · Score: 5, Informative

    Full release notes from Sun Microsystems on release 1.4.1, includes overview of changes and detailed description on many updated packages, etc.

    1. Re:Documentation/Changelog/New futures by jdb8167 · · Score: 5, Interesting

      Ignorance is bliss.

      If you think switching from old apple MRJ (carbon) to Cocoa and a very standard JVM is trivial you are sadly mistaken.

      This release is a huge win for OS X users. It puts the Mac in parity with Sun JVMs for the first time in many years. The UI is greatly enhanced by the use of Aqua and hardware graphics acceleration.

      I suspect that finally OS X can stay nearly in parity with Sun's releases.

    2. Re:Documentation/Changelog/New futures by Jeremiah+Cornelius · · Score: 3, Insightful
      I don't see how this is newsworthy.

      Read the announcement carefully.

      If you were a user of MacOS X, you would understand what a second-class citizen this has been in terms of Java. Native GUI support (Cocoa, Quartz) was non-existant. Java ran great - with CLI! This was a REAL shortcoming for users, untill now.

      With a fully accelerated GUI and enterprise security features, OS X cannot be summarily dismissed as a client OS by business, at least not on the JVM features.

      --
      "Flyin' in just a sweet place,
      Never been known to fail..."
  4. Re:Best Java Apps? by Pyrometer · · Score: 3, Informative
    This has to be one of the best tools I have seen written in JAVA ... Poseidon UML from Gentleware.

    It is a little rough around the edges and really needs some fine tunning but runs like a dream on my PowerBook running on JAVA 1.3 no less. With any luck they will upgrade it to use the 1.4 code base they are already using for Windows and Linux clients. It is quite resource intensive, however on the Powerbook I don't notice that at all (just on the Windows development machine at work ~sigh~).

  5. Browser bug is fixed by matthew · · Score: 4, Informative

    Just installed it and now I can finally scroll a web page with an embedded Java applet without leaving behind artifacts in the broswer window from the applet. The difference is obvious in a page like news.bbc.co.uk were the news ticker no longer corrupts the whole page view when scrolling.

  6. You obviously don't know what you're talking about by lordpixel · · Score: 4, Informative

    Apple's 1.3 VM was DEFINATELY NOT CLI ONLY.
    It had a perfectly reasonable AWT/Swing implementation which was derived from the old Mac OS 9 implementation and ran ontop of Carbon, which means it did have the Aqua look and feel and it did run ontop of Quartz.

    You can just about make that out in this diagram: http://developer.apple.com/macosx/images/sysarch_s m.gif

    Now, we can talk about reimplementing AWT/Swing ontop of Cocoa rather than the crufty 20 year old foundation that is Carbon - and probably we can agree its a great thing, but it sure did take a long time. Its definately not the case that this is the first release with an Aqua GUI though!

    --

    Lord Pixel - The cat who walks through walls
    A little bigger on the inside than out

  7. Re:Best Java Apps? by WatertonMan · · Score: 5, Interesting
    I guess that's my point. All the good Java applications are Java development programs. JEdit, JBuilder, Poseidon and a half dozen other UML/workflow programs. There are many others I didn't mention.

    My point is that Java seems primarily used for client/server applications or XML based messaging. (Thus the large number of UML programs) The end user applications end up tied into that via support. Other than a few so-so chat or P2P clients, I just don't see many end user applications writen for Java.

    Don't get me wrong. I'm not knocking Java. Some folks who work here swear by it. We're even going to start coming out with some nice Java libraries and toolkits ourselves. But it seems oriented towards custom programs and perhaps largely the enterprise. Sort of one step up above scripting languages like Perl or Python but not quite in the C++ territory.

    Yet I just never see applications outside of that market. Not a slam. Just curious. It just seems odd that there are more Basic programs for OSX than Java. (At least judging by what gets downloaded at VersionTracker)

  8. Java 1.4.1 Dev Tools Update is out also by foyle · · Score: 4, Informative

    The "Java 1.4.1 Developer Tools Update" available via https://connect.apple.com/ -- after you log in, it's under "Java" under "Download Software". There used to be "Recent Updates" section where they put stuff like this, but it seems to have gone missing.

    What I really want to know is why it's 48.6mb for the dev tools on top of the 26mb (I didn't write it down, so I could be wrong) for Java 1.4.1 itself.

    1. Re:Java 1.4.1 Dev Tools Update is out also by littlematt · · Score: 4, Informative

      It mostly all the documentation that gets added to Project Builder that takes up the extra space, plus extra things like new versions of jikes to take advantage of 1.41, etc.

  9. Gently, gently by melquiades · · Score: 4, Informative

    I don't think the parent post meant that Java for OS X run only from the command line (obviously it didn't), or that it didn't support Swing (well, duh, of course it did), but that support for these things was weak -- which was certainly true.

    Mr. Cornelius is right that Java has been something of a second-class citizen on OS X. Java is privileged to be a real citizen of an OS at all -- on Linux it is a sort of visiting dignitary, and on Windows it is a sort of persecuted immigrant. But OS X Java wasn't perfect: Swing apps, while they looked great, definitely didn't run as smoothly as Carbon and Cocoa apps. Applet support was mostly good, but still spotty. Apps were slow, especially UIs and graphics in general. And, of course, Java was waaaay out of date.

    The new version of Java is a huge leap forward in all these problems. With this newest release, it looks much more like a "first-class" citizen than it ever did before.

  10. Refreshing . . . by bedouin · · Score: 5, Insightful

    It's nice to have OS X remind me of updates that actually IMPROVE performance. This is real nice coming from a Windows world where every week there's a new "Windows update," fixing some bug that was discovered 2 weeks before.

    The difference? In Windows land an update meant, "Fuck, what 'security patch' is ready to be downloaded now? This is so annoying." In OS X, when software update pops up I'm generally wondering what new improvements there are to things overall, and happy about it.

  11. Possible New WWDC Slogan by webdev · · Score: 3, Interesting

    "Come for the Java and stay for the Cocoa and the Java." Last year it was just "Come for the Java stay for the Cocoa".

  12. Re:Best Java Apps? by dhovis · · Score: 4, Interesting
    Yeah, I kind of wonder why there aren't more Java apps myself. I took it upon myself to write a program for statistical design of experiments about a year ago. I wasn't happy with any of the software I had used, so I picked up a matrix library that NIST and Mathworks made available for Java.

    Now, I didn't know Java when I started. I learned Pascal in college and I've made a few attempts to learn C++, but I've never really succeded.

    I picked Java for this project because I intended it for educational purposes and I'm not delusional enough to think that anyone would adopt my program if it was MacOS X only.

    Anyway, long story short, I've written a beta quality piece of software for statistical design of experiments using the Java/Swing API. I thought it was pretty easy to work with, and the speed is more than adequate, even on my iBook/500.

    I think the reason you don't see more Java Apps is just that not many people have inscentive to write their programs for cross platform use. If I had been a Windows user, I probably wouldn't have cared about the people who don't use windows and just learned C++ and the Win32 api. There wouldn't be the inscentive to capture the other 5-10% that doesn't run Windows. Even most Mac or Linux programmers don't care. Even though Java really is "fast enough" for most things.

    BTW: if anybody would like to beta test some Java software for Statistical DOE, email me. Let's see... Take my slashdot username and email me with that at mac.com.

    --

    --
    The internet is the greatest source of biased information in the history of mankind.

  13. Re:Best Java Apps? by Twirlip+of+the+Mists · · Score: 4, Funny

    Without a doubt, ReaderWare , a book, DVD & CD cataloging suite that has absolutely saved my life...

    Ladies and gentlemen, I give you the scourge of the 20th century: hyperbole.

    Unless you'd care to post some kind of fascinating tale of adventure and suspense in which your book database saved you from certain doom, curb your enthusiasm a little, okay?

    --

    I write in my journal
  14. Re:Best Java Apps? by cei · · Score: 4, Funny

    "Give me the book, or you're a dead man," sneered the thug behind the revolver.

    "I can't," whimpered TedTodorov, "I lent it to my cousin Bruno."

    Cocking the gun the thug replied, "Prove it!"

    At which point TedTodorov slowly slid his laptop across the blotter on the desk, turning it to shine into the beady eyes of his foe.

    "See? It says I checked it out to him last week..."

    --
    This sig intentionally left justified.
  15. Apple made improvements on Java? by Paladeen · · Score: 4, Interesting

    From the Apple website:


    "On other platforms, each Java application consumes some system memory. So you might end up using more memory than you need to when running multiple Java applications. Other languages, such as C or C++, solve this problem using what?s called shared libraries. Apple developed an innovative new technology that allows Java code to be shared across multiple applications. This reduces the amount of memory that Java applications normally use. And it fits right into Sun?s Hot Spot VM, allowing Mac OS X to remain compatible with standard Java. In addition, Apple has given this implementation to Sun so the company can deploy it on other platforms. Just one example of how Apple supports standards and shares ideas to benefit all"


    That's very nice of them.

  16. Re:Arrrg ( ... the price we pay) by Pyrometer · · Score: 5, Insightful
    Enough with the fricken restarts... this isn't part of the OS.

    I first thought of this but realised the following:

    1. When upgrading from JAVA 1.1.x to 1.2 on a Solaris platform I had to install a mirrad of software updates for the OS for JAVA to run. This has probably been the case for going to 1.3 and 1.4 although I havn't had to "administrate" a Solaris system to do this in the last couple of years.
    2. Apple seems to have integrated JAVA quite a bit in to the overall OSX structure (look at those pretty bubble diagrams showing all the OS layers). This probably explains why JAVA applications run so damn fast compared to Windows machines running the same application.
    3. As noted in point 2, your comment "this isn't part of the OS" is probably not correct. From what I see at the layer point of view ... it seems JAVA is a 'part' of the OS.

    I don't think it is a bad price to pay considering the performance of JAVA applications on OSX ... but your right it was annoying, I hate losing my uptime on the powerbook :)

  17. Re:1.3 and 1.4.1? by IvanXQZ · · Score: 5, Informative
    While it is (mostly) true that Java 1.4.1 is backwards compatbile with 1.3.1, it is not true that Apple Java 1.4.1 is backwards compatible with Apple Java 1.3.1, which is why both remain present for end users as well as developers. To wit, QTJava is different, JDirect no longer exists, the com.apple.mrj.* API's have all been deprecated or outright removed, a number of the environment properties have changed, etc. (this stuff is all documented in the Release Notes, which is required reading IMO). In addition, there are a very small number of incompatibilities between 1.3.1 and 1.4.1 in Sun Java itself, at least during compile time.

    So if your 1.3.1 app uses any Mac-specific functions, you may need to rewrite them for 1.4.1 compatibility. However, if it is bundled as a Mac OS X app, it will (as stated above) get 1.3.1 by default, so end-users will have no problems with any existing applications (that's the Apple Way).

    The rules for whether you get 1.3.1 or 1.4.1 are:

    command line:
    You get 1.4.1 by default. If you want 1.3, you need to execute:
    /System/Library/Frameworks/JavaVM.framework/Versio ns/1.3.1/Commands/java
    (javac is in the same directory if you need the compiler or other tools)
    btw I have no idea why there is a space in "Versions" above: if you see it, it shouldn't be there

    double-clicked jar files:
    You always get 1.4.1.

    Mac OS X bundles:
    You get 1.3.1 by default. How to specify 1.4.1 depends on whether the app was made with MRJAppBuilder (from the 1.3.1 Dev Tools) or Jar Bundler (from 1.4.1 Dev Tools). For MRJAppBuilder apps, add this line to YourApp.app/Contents/Resources/MRJApp.properties:
    com.apple.mrj.application.JVMVersion=1.4*
    For Jar Builder apps, in the YourApp.app/Contents/Info.plist file, in the Java section add a key called JVMVersion with a value of 1.4* (you can use the Property List Editor or a text editor).

    All this and more is documented in the Release Notes.

    Ivan.
  18. Major Performance Increase by HotButteredHampster · · Score: 4, Informative

    I installed and ran a perfunctory test of the new Java Runtime last night. I then fired up Robocode. I have a Powerbook G4 550, and in the past, I would see around 12 fps during the battles. With the new Java, I was seeing 24 fps consistently!

    This is a great leap forward, IMHO.

    --
    "Smart is sexy." -- D. Scully ("War of the Coprophages")