Is it possible...

Discussion in 'iOS Programming' started by RedSky3256, Oct 5, 2008.

  1. RedSky3256 macrumors newbie

    Oct 5, 2008
    to create something in Java and run it on an iphone/touch? I am a student who recently learned to program in java and would like to have a portable computer to try stuff out. I was thinking if i were to download the java virtual machine and all the necessary stuff to my ipod touch, couldn't I run a program with out problem?

    Before I go and restore and jailbreak my ipod touch I was wondering has anyone already tried this out?
  2. mathcolo macrumors 6502a

    Sep 14, 2008
    The iPhone platform is strictly Objective-C. Until Apple puts Java into Safari or anything else... you're out of luck.
  3. jsw Moderator emeritus


    Mar 16, 2004
    Andover, MA
    See here for some tips. :)

    The biggest issue is that the SDK license prohibits one from legally using Java on the iPhone.

    Stupid Apple closed systems.... :mad:
  4. firewood macrumors 604

    Jul 29, 2003
    Silicon Valley
    Mixed Obj-C, C++ and C in the SDK (many of the SDK API calls are in plain C). Not sure if the SDK provided XCode supports Fortran.

    You can even run Javascript as well, by calling into a UIWebview, since it's an Apple provided interpreter.

    There is no Java JVM (AFAIK) available on a non-jailbroken device, although there may be some Jazelle support in the ARM11 CPU.

  5. RedSky3256 thread starter macrumors newbie

    Oct 5, 2008
    I have not had any experiences with J2ME but know that it's for mobile devices. Could that work?

    edit: ok just looked at your tip...

    if i'm using it for personal use... not stuff that's gonna be sold does it matter if i install it or not?

Share This Page