Tutorial: install Java on the IPhone

Installed packages

This is a tutorial, that shows step by step how to install Java on the IPhone.

What we need is a working unlocked and jailbraked IPhone with Installer. I used latest firmware 1.1.4, unlocked, jailbreaked and customized by winpwn.

First of all I'd like to say we all want to use legal IPhones and operators. So everything written below is for testing purposes only :-) . Hopefully this technology will be avaliable on all IPhones sold worldwide. You also might need to recover your IPhone, so make sure you backed up all your data. I personally did everything without any problems and needs to recover. Everything you do is your responsibility, etc...

So let's start, because it's worth it! It's just one evening and you will be able to create your personal Java application, compile and run it on the IPhone, and amaze all your friends :-) .

There are two steps:

Step 1: Go to Installer and install Mobile Terminal and Cydia Installer.

  1. Go to Settings -> General -> Auto-Lock and set it to Never. This will avoid some troubles during installation.
  2. Run Installer. Repository for Terminal should be already there (BigBoss), because it is in latest Community Sources.
  3. Add repository http://apptapp.saurik.com for Cydia Installer and refresh
  4. Go to Install -> System
  5. Find Term-vt100 - Mibile Terminal App. I used version svn278. Install it.
  6. Go to System again and find Cydia Installer - The Future of the IPhone. I used version 1.0. Install it.
  7. Exit. Restart IPhone. Two icons for Terminal and Cydia should appear.

Here are some screenshots for Step1:

Go to Installer Go to System Find Term-vt100

Install Term-vt100 Find Cydia Installer Install Cydia Installer

Two icons should appear

Step 2: Go to Cydia Installer and install Java.

  1. Run Cydia Installer.
  2. Go to Install - Java section. You will find many programms there.
  3. Select IPhone/Java. It will install most of the needed packages, which includes vm, libraries, etc.
  4. Click confirm and wait a little bit.
  5. Go to Java section again and install Jikes package (itwill be probably the only one left). Jikes is a compiler.
  6. Go to Installed Packages tab. Check that Classpath, IPhone/Java, JamVM, Jikes are installed. Several other packages will be there too (Java SQLite, JocStap, etc).
  7. Exit Cydia and restart IPhone. Congratulations!!! You're done installing Java.

Run Cydia Installer Go to Java section Java section

Select IPhone/Java IPhone/Java dependencies Installation of IPhone/Java

Jikes Jikes Install Jikes

Installed packages Installed packages

That's it. The tutorial about using all this stuff is here :)

Follow us on Twitter:     

| |


Leave a comment, read comments [25]

25 Responses to 'Tutorial: install Java on the IPhone'

Subscribe to comments with RSS

  1. got problem with the repository

    when i try add it in cydia its say is not a right address.

    the adresse in this guides says.

    anyone know what to do?


    fg Reply:


    I can't find any install section or java anywhere tho..



    8 Jan 09 at 1:34 pm

  2. Hello

    I am new to the iPhone community and just wanted to check if I jailbreak my iPhone and install java will I be able to run .jar mobile applications. I would like to use a text application from fishtext.

    Cheers for your help



    27 May 09 at 12:04 am

  3. 2dach: For firmware 2.x you do not have to add repository, just go to section Java and install.



    27 May 09 at 1:15 am

  4. 2ollie: no you will not be able to run regular jar monile app. There is support only for command line and user interface through special libs (jocstrap). The application has to be written on Java specially for iPhone :-(



    27 May 09 at 1:17 am

  5. does this work on ipod touch?



    3 Jun 09 at 4:49 pm

  6. aw it works! but i can only compile simple program :(



    3 Jun 09 at 5:48 pm

  7. it should work on iPod Touch



    3 Jun 09 at 8:50 pm

  8. I found a program in the Package IPhone/Java ,and unpacked it,in the data.tar.gz file ,i found HelloJava.app,so i copied it to my iPod,and ran it .
    It did run,but i couldn't see any windows on the screen. Using the ps command ,it was sure in the processes.
    Does anybody know why?



    25 Jun 09 at 4:00 am

  9. Unfortunately, there is no support of awt or swing.



    20 Dec 09 at 2:19 am

  10. I have 3.1 OS on my iPhone and have gone to Icy (Think it's same as installer). I went to the "Java" directory and installed EVERYTHING in that directory. It wouldn't let me install Jikes. It told me JVM repository wasn't there. I went to Cydia and installed Jikes from there. Restarted my iPhone. Have two new icons "HelloScript" and "HelloJava", but don't know what either of them do. I'm trying to play poker online. The website http://pokercompatibility.com/poker-blog/39-news/74-3-steps-how-to-play-java-real-money-poker-on-iphone-3g.html brought me to your page. I go to the "Instant Play" optoin on "AbsolutePokercom" and it says that safari cannot download file. It's supposed to be a java based website that allows me to play poker on iPhone for real money. Can you tell me what I'm doing wrong? Thanks a million!



    18 Jan 10 at 10:36 pm

  11. There is no support fo Java applets, only command line java and gui via jocstrap libraries.



    18 Jan 10 at 11:05 pm

  12. Ok, I do apologize, but that is greek to me. What do you mean? The site I went to to find your site says what I am doing can be done. Can you expain it in lamens terms?



    19 Jan 10 at 4:58 am

  13. Sorry about that. I'll try to explain in detail.
    There is no Java for iPhone as it is on a desktop or many other phones. Apple doesn't want Java to be on the iPhone.
    Saurik made a project to port Java to the iPhone. For now you can use Java with many many limitations. You cannot just run regular java application, you cannot use java in Safari.
    The site you mention uses my marerial to make users sign up on a poker site through banner links. Users click on links (banners), sign up and that site gets a lot of money. The bad thing about all this is that you cannot play java poker on the iPhone.



    19 Jan 10 at 1:08 pm

  14. Question for Admin: What about the new iTablet? Will
    it have Java on it like I have for my PC and my
    MacBookPro? or is it part of "Apple doesn't want
    Java to be on the iPhone. I suspect that they still
    don't want it because in your iTablet demo at time
    stamp 10:15, Steven Jobs (using Safari) goes to some
    website and gets the same little Box icon that I get
    on my iPod Touch when I try to use Safari to go to
    websites that use Runtime/Flash? Java. I sure wish
    someone could create a workaround for this b/c then
    I might be tempted to buy an iTablet and jailbreak
    it so as to be able to use Java through Safari.
    Without this I feel the iTablet (just like my
    current iPod Touch) is crippled from doing many
    things it should be able to do. I am sure it is
    not as cool and as small, but until they bring Java
    into the picture I guess I will have to continue
    using a Hackintosh of Snow Leopard on my Dell
    Mini Netbook (poor man's iTablet) which even has a
    (Dell Version) of iSight, which I guess won't appear on the iTablet until we get to the next generation.



    28 Jan 10 at 2:55 am

  15. Hi, rudvalis.
    So far iPad (iTablet) is just a big iPod/iPhone. It runs iPhone OS 3.2. So unfortunately no Java. Even if you jailbreak you will just get unofficial Java without Safari support.



    28 Jan 10 at 2:47 pm

  16. Hi what about data base connection ?
    and could I run jar files ?



    1 Feb 10 at 11:18 am

  17. how come i followed all the steps and still programs say i dont have java?



    10 Oct 10 at 9:00 pm

  18. good info !. thanks for sharing.


    Boss Jo

    26 Jan 11 at 9:46 am

  19. please i have iphone 3gs 4.2.1 and when i try to add the repository http://apptapp.saurik.com something goes wrong and tells me that the repository is not found.. please may you help me with this? i need the java on my iphone


    admin Reply:

    This tutorial is a bit outdated. Here is a link for tutorial to install MobileTerminal: http://iphoneroot.com/install-mobileterminal-iphone-ios4/



    13 Feb 11 at 5:40 pm

  20. Can someone update this guide? There is no INSTALL section anymore at Cydia!!!



    7 Mar 11 at 2:14 am

  21. This is 2011 - this tutorial is 2 years old and still no one has found a solution yet to make java work fully on iSO - what is happening - We need java - we need java - we need java


    admin Reply:

    Unfortunately this is true. Not much has been changed since 2008.


    S Briggs

    27 Aug 11 at 2:00 pm

  22. Проделал все с шага 2, тк на моем 4м фоне есть сидия и от инсталлятора давно разработчики отказались. Все установилось прекрасно.



    20 Dec 12 at 2:09 am

Leave a Reply

You can login with iPhoneRoot account here.