aspose file tools*
The moose likes Java Micro Edition and the fly likes Java plateform independent? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Java plateform independent?" Watch "Java plateform independent?" New topic
Author

Java plateform independent?

Muhammad Naveed Ul Haq
Greenhorn

Joined: Aug 06, 2011
Posts: 3

If we need to do diffrent coding and diffrent jdk's e.g. JDK SE, j2ME, jsr etc. For differnt hardware architectures and operating systems then how we can say java plate form indipendent languag?
I think we can say it plate form indipendent if and only if we writ a program with out considration of hardware/os and jvm converts it for riquired hardware/os automaticaly.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
JME is a very different platform than JSE, and nowhere is it stated that the two are interoperable - so I'm not sure why you think they should be. JME platforms are -assuming they have the same version- interoperable to a very large extent, as are JSE platforms of the same version, so I'm not quite sure what your exact criticism is.

JSRs are a way of specifying Java APIs, and are used for JME, JSE and JEE. Per se, they have no impact on cross platform interoperability.


Ping & DNS - my free Android networking tools app
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
Well, the Java ME branch split off from Desktop Java early (Java SE 1.2), and cell phones are very different platforms, more limited in many ways than desktop computers, but Java ME applications should run on any cell phones that support the Java ME platform.

There are some code-grammar writing differences such as angle bracket type safety that didn't make it into Java ME, like "<String>," but overall Java platforms aren't so much different languages, the code syntax is mostly the same, but they have different APIs -- the prepackaged Object libraries.

If you're having trouble moving a concept from the Java SE api into Java ME api, please post your question. That is what this area of the coderanch is for.
Muhammad Naveed Ul Haq
Greenhorn

Joined: Aug 06, 2011
Posts: 3

Ulf Dittmer wrote:JME is a very different platform than JSE, and nowhere is it stated that the two are interoperable - so I'm not sure why you think they should be. JME platforms are -assuming they have the same version- interoperable to a very large extent, as are JSE platforms of the same version, so I'm not quite sure what your exact criticism is.

JSRs are a way of specifying Java APIs, and are used for JME, JSE and JEE. Per se, they have no impact on cross platform interoperability.

Its not criticism but it was my confusion, from wording someone may think it as critisem as english is not my native langaug so there may be a mistak in chosing words. I just want to clear the concepts involved in Java before starting learnig of syntax and practical programing.
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
First, You should learn the basic Java SE concepts before learning about Java ME.

Learning about Java SE will give you more information than you need to know, and tell you about things not in Java ME. But, most Java ME guides on the internet don't cover the basics of Java. They assume you already know the concepts of Java.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java plateform independent?