iPhone Root

Everythig about iPhone




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 :)






8 comments

Written by admin

Monday June 9th, 2008 at 12:51 PM



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

Subscribe to comments with RSS or TrackBack to 'Tutorial: install Java on the IPhone'.

  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.
    http://apptapp.saurik.com

    anyone know what to do?

    dach

    Thursday January 8th, 2009 at 01: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
    Riaan

    ollie

    Wednesday May 27th, 2009 at 12:04 AM

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

    admin

    Wednesday May 27th, 2009 at 01: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 :-(

    admin

    Wednesday May 27th, 2009 at 01:17 AM

  5. does this work on ipod touch?

    jampster09

    Wednesday June 3rd, 2009 at 04:49 PM

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

    jampster09

    Wednesday June 3rd, 2009 at 05:48 PM

  7. it should work on iPod Touch

    admin

    Wednesday June 3rd, 2009 at 08: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?
    Thanks

    WithRat

    Thursday June 25th, 2009 at 04:00 AM

Leave a Reply

You must be logged in to post a comment.