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



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




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

This is a tutorial, that shows step by step how to use installed Java on the IPhone. Just in case you do not have Java installed on your IPhone there is a tutorial how to do it.
What we need is a working jailbraked IPhone with Java Installed. I used latest firmware 1.1.4, unlocked, jailbreaked and customized by winpwn.
Step 1: Create simple Java application, compile and run.
- Create file Java4IPhone.java and put simple Java hello-world code there. I used the following code:
- Upload to IPhone. I used /tmp directory. For uploading I used IPhone Browser.
- Run Terminal.
- Use command java -fullversion or jamvm -fullversion to see if java is avaliable.
- Use command jikes to invoke java compiler.
- Go to /tmp directory, using command cd /tmp
- Compile. We need to specify classpath to basic java packages. If we do not do that, jikes will produce an error (see screenshot). So use the following command: jikes Java4IPhone.java -cp /usr/lib/rt.jar
- After compiling Java4IPhone.class file should appear in the same directory. To run use commandjava Java4IPhone
- Take a look at the screenshots. Hopefully you'll have something similar.



Step 2: Have fun!
相关推荐
graph slam tutorial :从推导到应用3(g2o版程序),包含文档读取,及后端优化
Chapter 17: Introduction to Contexts and Dependency Injection for the Java EE Platform 305 Overview of CDI 306 About Beans 307 About Managed Beans 307 Beans as Injectable Objects 308 Using ...
《Java EE 6 Tutorial: Basic Concepts, Fourth Edition》是一本面向新手及中级Java开发者的指南书籍,旨在帮助他们深入理解Java平台企业版6(Java EE 6)的各项特性与技术。本书由Oracle公司Java EE 6文档团队成员...
The C++ Standard Library: A Tutorial and Reference, Second Edition, describes this library as now incorporated into the new ANSI/ISO C++ language standard (C++11). The book provides comprehensive ...
Tutorial 2: Creating a Framework and Window Tutorial 3: Initializing DirectX 11 Tutorial 4: Buffers, Shaders, and HLSL Tutorial 5: Texturing Tutorial 6: Diffuse Lighting Tutorial 7: 3D...
本书教您如何使用Ruby on Rails开发和部署真正的,具有工业实力的Web应用程序,Ruby on Rails是为诸如Twitter,Hulu,GitHub和Yellow Pages等顶级网站提供支持的开源Web框架。
This book covers the most important topics any Java developer should master: object-oriented programming, Java language syntax, and the Java libraries. Designed as a guidebook for those who want to ...
Java8 教程 引言 这个 java8 教程列表中将分享那些 java8 中最重要的那些功能和链接。原文地址 如果觉得这些内容可以帮助到你,也可以在 上点一个:thumbs_up:支持一下~ 阅读地址 参与翻译 感谢以下译者 @...
《Java EE 7教程:Duke's Bookstore》是一个经典的示例应用,它全面展示了Java企业版7(Java EE 7)的关键技术和开发实践。这个源代码提供了学习和理解Java EE 7平台的一个实用起点。 Java EE 7是Java平台上用于...
The C++ Standard Library: A Tutorial and Reference, Second Edition, describes this library as now incorporated into the new ANSI/ISO C++ language standard (C++11). The book provides comprehensive ...
《C++标准程序库:自修教程与参考手册》是一本深入探讨C++标准程序库的重要书籍,由Nicolai M. Josuttis撰写。这本书是C++开发者学习和掌握C++标准库不可或缺的资源,无论是初学者还是经验丰富的程序员都能从中受益...
Java 8 简明教程 Java 8 Tutorial中文版 “Java并没有没落,人们很快就会发现这一点” 欢迎阅读我编写的Java 8介绍。本教程将带领你一步一步地认识这门语言的新特 性。通过简单明了的代码示例,你将会学习到如何使用...
《Java EE 5 Tutorial》是Java企业版5(Java Platform, Enterprise Edition 5)的一份官方教程,旨在帮助开发者深入理解和掌握Java EE平台的核心技术。这份文档详细介绍了如何使用Java EE 5进行分布式应用程序的开发...
Using Apple's standard tools like Dashcode, Xcode, and Interface Builder, you'll learn how to best use both approaches: iPhone web and SDK programming. This book is intended as an introduction to its...
NIPS 2016 Tutorial: Generative Adversarial Networks(生成对抗网络) , by Ian Goodfellow
You are about to start on a journey to learn how to create web applications with Python and the Flask framework. in English, .mht