java on ipod touch?

Discussion in 'iPod touch' started by seamustry, Sep 22, 2008.

  1. seamustry macrumors member

    Joined:
    Aug 12, 2008
    #1
    i know that java/flash is not available on ipod touch/iphone so why does safari have a java option in the settings?

    i tried using a java website but it didn't work even with the java option enabled in safari settings.
     
  2. jsw Moderator emeritus

    jsw

    Joined:
    Mar 16, 2004
    Location:
    Andover, MA
    #2
    There's a JavaScript setting, but not a Java setting. JavaScript and Java share the first four letters of their names, but little else.

    As far as I know, there's no JVM on the iPhone/Touch.
     
  3. seamustry thread starter macrumors member

    Joined:
    Aug 12, 2008
    #3
    can you give an example that differentiates between javascript and java? like a website? thanks!
     
  4. quick5pnt0 macrumors regular

    Joined:
    Sep 14, 2008
    #4
    Javascript is used for tons of background stuff that you usually don't see or notice, Java on the other hand is used much like Flash, to build online games and that sort of thing.

    Just do a google search for java vs javascript
     
  5. partatoes macrumors newbie

    Joined:
    Jun 15, 2010
    #5
    working java on iphone

    *****edit*****
    there is a way!!!

    1.jailbreak your device.
    2.in cydia, change your permissions to developer.
    3.go to the java tab in categories
    4.download iedit, Classpath, jamvm, terminal, and jikes
    5.go into the NOTES app on your ipod, turn it horizontally and type this:
    public class test
    {
    public static void main(String[] args)
    {
    System.out.println("test");
    }
    }

    6.copy this by selecting all of the text.
    7.open up iedit and make a new file called test.java
    8.paste the code into the window and click save in the bottom left.
    9.launch terminal and type the following commands:
    cd Documents
    jikes test.java
    java test OR
    jamvm test

    10.voila!
    11.for any questions regarding this or python programming on the ipod touch or iphone, email me at jacobp1226@aol.com
     
  6. goosnarrggh macrumors 68000

    Joined:
    May 16, 2006
    #6
    All ARM cores starting with ARM9 and newer include a Java bytecode module (called Jazelle) inside the CPU, that introduces an alternate mode of operation which can execute something like >90% of compiled Java op-codes directly without any software help. However, special operating system support is required in order to provide the class libraries, support the remainder of Java op-codes which cannot be executed directly, and activate the Jazelle module to make use of it in software. Apple has not provided such support in iOS.
     

Share This Page