File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Difference Sun JDK / IBM JDK Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Difference Sun JDK / IBM JDK" Watch "Difference Sun JDK / IBM JDK" New topic

Difference Sun JDK / IBM JDK

Mike Himstead
Ranch Hand

Joined: Apr 12, 2006
Posts: 178

I'm new to developing a web application using IBM's JVM implementation (1.4 in specific). I did know before that IBM has an own implementation, but why is that? What are the differences? I guess it has it's own API documentation, what do I have to expect, something like String's split method not existing...?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15080

The Java API in IBM's implementation should be exactly the same as in Sun's implementation. If it isn't, then that's a bug in IBM's implementation. The Java API is a standard, and if someone wants to implement it, they must implement the standard exactly.

There might be differences in the way things are implemented "under the hood" but any Java program that compiles and runs on Sun's Java 1.4 should compile and run exactly the same on IBM's Java 1.4.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Sunil Vasudevan
Ranch Hand

Joined: Mar 05, 2007
Posts: 107
JDK/JRE implements from various vendors should adhere to Sun's Java specifications and most of them do.

There are few corner cases wherein a code compiled and running fine on Sun's JDK will not run well on IBM.

Areas that are a bit pain are:
1. Security and Java Cryptography Extension (JCE). IBM have their own implementation and you need to use IBM specific JCE. Of course you can use Sun's JCE, but then you need to make changes to file.

2. XML parsing is also an issue. But here we cannot blame JDK.

If you have a java code doing normal stuff then the probability it will work well with SUN and IBM is very high.

If you plan to use Sun JDK for development and IBM JRE for deployment, it is better to test your application during intermediate milestones.

Sunil.V<br />SCJP2, SCWCD1.4, SCBCD1.3
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

Just as a note of confidence for IBM's JDK, I've spent pretty much all my life developing and pre-testing on Sun's JDK, and testing and deploying on an IBM JDK, and have never run into any problems where the implementation of the JDK was to blame.


-Cameron McKenzie
I agree. Here's the link:
subject: Difference Sun JDK / IBM JDK
It's not a secret anymore!