Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

seamustry

macrumors member
Original poster
Aug 12, 2008
84
0
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.
 
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.
 
can you give an example that differentiates between javascript and java? like a website? thanks!
 
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
 
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
 
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.

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.