Java, which Steve Jobs announced impossible to be integrated, can finally be integrated into iPhone.
According to Pwnagetool.com, the latest Java app for the 5.0.1 untethered jailbroken device is released.
To integrate Java, all you need to do is jailbreak your iPhone/iPod Touch and install Cydia.
Note, without Cydia installed in your iPhone/iPod, you cannot install the Java app. Cydia is an application store for the jailbroken iPhone and gives you more customization options and apps than Apple AppStore.
Follow the below given steps to install Java from Cydia...
Step 1 - Turn on your jailbroken iPhone or iPod Touch.
Step 2 - Go to Settings and choose the Wi-Fi to find your closest network. You can also operate within your 3G network connection.
Step 3 - Go to the Cydia application on your home screen. Let Cydia load and download all of its latest packages.
Step 4 - Press the Search button present at the lower right side of the display page and type in Java. The top result will be iPhone/Java. Select that app.
Step 5 - Once you select iPhone/Java app, press Install on the top right corner of the next screen, and the app will be downloaded and installed.
Click here to Install Java.
(Information from Pwnage Tool)