{"id":83,"date":"2010-09-24T09:59:12","date_gmt":"2010-09-24T07:59:12","guid":{"rendered":"http:\/\/blog.syshalt.net\/index.php\/2010\/09\/24\/java-on-ios-4-iphone\/"},"modified":"2012-01-26T00:05:31","modified_gmt":"2012-01-25T22:05:31","slug":"java-on-ios-4-iphone","status":"publish","type":"post","link":"https:\/\/blog.syshalt.net\/index.php\/2010\/09\/24\/java-on-ios-4-iphone\/","title":{"rendered":"Java on iOS 4 (iPhone)"},"content":{"rendered":"<p>Recently I had done some research about Java VM running on iPhone devises. At the moment Apple does not support java application and from what Steve Jobs said, there is not plan in the future to do so. Lucky we can have Java VM on our iPhones.<\/p>\n<p>In order to do this you will need of course to jailbreak you iPhone and install OpenSSH and APT-Strict application from Cydia, then SSH to your iPhone IP with username: root and password: alpine and trype to install java this commands:<\/p>\n<p>1. apt-get update<br \/>\n2. apt-get upgrade<br \/>\n3. apt-get install jamvm jikes classpath iphone-java<\/p>\n<p>Here is an example of HelloJava application:<\/p>\n<p>Create a new file with command nano HelloJava.java and write the code from bellow.<\/p>\n<blockquote><p>public class HelloJava {<br \/>\npublic static void main(String args[]) {<br \/>\nSystem.out.println(\u201cHello, Java\u201d);<br \/>\n}<br \/>\n}<\/p><\/blockquote>\n<p>Now ctrl+x to save and exit then compile the source file:<br \/>\njikes \u2013cp \/usr\/lib\/rt.jar HelloJava.java<br \/>\nNow you can run the application using:<br \/>\njava HelloJava<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blog.syshalt.net\/wp-content\/uploads\/2010\/09\/java.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"java\" src=\"http:\/\/blog.syshalt.net\/wp-content\/uploads\/2010\/09\/java_thumb.jpg\" alt=\"java\" width=\"542\" height=\"342\" border=\"0\" \/><\/a><\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:faa11463-7c91-441b-9c64-3bc05a4c34ec\" class=\"wlWriterEditableSmartContent\" style=\"margin: 0px; display: inline; float: none; padding: 0px;\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/java+on+ios+4\" rel=\"tag\">java on ios 4<\/a>,<a href=\"http:\/\/technorati.com\/tags\/java+ios+4\" rel=\"tag\">java ios 4<\/a>,<a href=\"http:\/\/technorati.com\/tags\/iphone\" rel=\"tag\">iphone<\/a>,<a href=\"http:\/\/technorati.com\/tags\/apple\" rel=\"tag\">apple<\/a>,<a href=\"http:\/\/technorati.com\/tags\/programming\" rel=\"tag\">programming<\/a>,<a href=\"http:\/\/technorati.com\/tags\/ios4\" rel=\"tag\">ios4<\/a>,<a href=\"http:\/\/technorati.com\/tags\/technology\" rel=\"tag\">technology<\/a>,<a href=\"http:\/\/technorati.com\/tags\/jailbreak\" rel=\"tag\">jailbreak<\/a>,<a href=\"http:\/\/technorati.com\/tags\/cydia\" rel=\"tag\">cydia<\/a>,<a href=\"http:\/\/technorati.com\/tags\/apt-get\" rel=\"tag\">apt-get<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Recently I had done some research about Java VM running on iPhone devises. At the moment Apple does not support java application and from what Steve Jobs said, there.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,20],"tags":[133,31,348,351,349,352,170,200,21,356,350,360,355,357,121,344,359,346,364,209,345,147,203,130,353,32,96,363,362,358,361,34,365,347,222,123,366],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-apple","category-iphone","tag-alpine","tag-apple-2","tag-apt-strict","tag-course","tag-ctrl","tag-hellojava","tag-ios","tag-ip","tag-iphone-2","tag-iphones","tag-java","tag-java-application","tag-java-vm","tag-jikes","tag-lib","tag-lucky","tag-main-string","tag-moment","tag-nano","tag-nbsp","tag-need","tag-openssh","tag-order","tag-password","tag-println","tag-programming","tag-root","tag-source-file","tag-steve-jobs","tag-strict-application","tag-string-args","tag-technology","tag-technorati","tag-trype","tag-update","tag-username","tag-using-java"],"_links":{"self":[{"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":4,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/posts\/83\/revisions\/182"}],"wp:attachment":[{"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.syshalt.net\/index.php\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}