wood burning stoves 2.0*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Difference Sun JDK / IBM JDK" Watch "Difference Sun JDK / IBM JDK" New topic
Author

Difference Sun JDK / IBM JDK

Mike Himstead
Ranch Hand

Joined: Apr 12, 2006
Posts: 178
Hi,

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: 14114
    
  16

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 7 API documentation
Scala Notes - My blog about Scala
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 java.security 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
    
    1

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.

Cheers!

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference Sun JDK / IBM JDK