The Source for Java Technology Collaboration
User: Password:



Bruno Ghisi

Bruno Ghisi's Blog

First steps with iPhone and Java...

Posted by brunogh on May 25, 2008 at 09:49 PM | Comments (9)

When I was at JavaOne, I sold my soul to devil: I bought an iPhone. Here in Brazil, there is no iPhone being officially selled yet.

Let's start having fun and playing with Java on it:

  1. Unlock your iPhone. Babies can do that before they say mama. More information at Zibri's Blog.
  2. Make it useful: Install Cydia (front-end for Debian APT) to substitute default Installer application. In Installer, go to the Source option, click Edit, Add http://apptapp.saurik.com, Done and then Refresh. Then go to Install option, search for Cydia Installer and install it.
  3. After that, open Cydia and search for the word Java, there are a few stuff part of the iPhone/Java package available in Development menu. You are able to make graphical applications using the UI Framework, which is possible due to JocStrap, a Java/Objective-C bridge. Install iPhone/Java that will bring the necessary stuff (JamVM, etc) for this simple demo. Also, later try to install Jikes, a compiler for version 1.4 and fastjar, an alternative for running jars, because I could not test them yet.

PS: Install OpenSSH in your iPhone and then connect your laptop on its server. Also, install Boss Prefs to be able turn SSH on/off. Finally, do not forget to change you root password using passwd, default password is alpine.

I have created a simple Hello World app into NetBeans. Then I have compiled it, tranfered to iPhone and runned (via SSH).

Code:


public class Main {
public static void main(String[] args) {
System.out.println("Hello World... in Java");
}
}

Screenshot:
java_iphone.png

Community will bring ME world into iPhone as well. The answer for this is phoneME Advanced. Keep and eye and join the mailing lists! As you can see, there are some very nice projects going on!

Have a nice and funny week!

Bruno Ghisi


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • The fourth wow power leveling latest game in wow power leveling Warcraft series is ‘wow power leveling’. Also known as wow power leveling, it represents a wow power leveling multiplayer online wow power leveling game, the best of wow power leveling kind. Initially, it was wow gold it be released in 2001, but wow powerleveling was delayed wow powerleveling 2004, thus wow powerleveling the 10 years ofwow powerleveling franchise of thiswow gold series. The world of warcraft power leveling was not world of warcraft power levelingfulfilling, because wow power levelproblems with wow power level server’s stability power leveling wow performance occurred, but power leveling wow game still power leveling wow a financial success powerleveling wow the most powerleveling wow game of its kind. The number cheap wow power leveling users that play Maple Story mesos, exceeds 8.5 MapleStory mesos, worldwide.As a form ms mesos,recognition for mesos,outstanding popularity, the game SilkRoad Gold, received aSRO Gold, of awards. Now the question eq2 plat, why is eq2 gold, game eq2 Platinum, popular? For anyoneEverQuest 2 Platinum, played the previous EverQuest 2 gold, and EverQuest 2 plat, already initiated lotro gold, the mysterious world lotr gold, the breathtaking Lord of the Rings online Gold, this Rolex Replica nothing but an Replica Rolex adventure that continues the story of ‘Warcraft III: Frozen Throne’, four years after conclusion, in the world of Azeroth. The game is online role-playing, the previous versions being online and offline strategy games. The major thrills and unique features are present as in every Blizzard game.

    Posted by: liwan on May 27, 2008 at 02:28 AM

  • brunosm -> Actually I do not see future in something that uses a very restrictive business model, like iPhone. I do not like the idea about a company trying to control everything they do. But let's see what happens, they have already gave the SDK, let's wait the next movements... :) Thanks, Bruno

    Posted by: brunogh on May 26, 2008 at 01:59 PM

  • I am not a lawyer, but probably it is not. I think I will have to sell my shoes or my iPhone if I got in trouble! But, actually, who cares about a poor programmer trying to have fun?! :)

    Posted by: brunogh on May 26, 2008 at 01:46 PM

  • "Unlock your iPhone" !? Is this even legal?

    Regards,
    Horia

    Posted by: sevenm on May 26, 2008 at 01:34 PM

  • I hope i am wrong...

    Posted by: brunosm on May 26, 2008 at 11:18 AM

  • Well...Since There is not much "passion" between Apple and Java...I would spend my time -i do- learning the Objetive-C language or makin web applications for java than just playing with a JAvaME on the display...I dont see much future for the Java on the iphone. You cannot play "against" the hardware and software provider...Except if you play the "hacker" game

    Posted by: brunosm on May 26, 2008 at 11:17 AM

  • Hello José, off course I remember you! I did not have time to go deeper with iPhone and Java yet, but I will try more things as soon as I can. I took a look in a simple Java application for managing contacts that uses the UI Framework available, but no Swing. Cheers, Bruno

    Posted by: brunogh on May 26, 2008 at 10:15 AM

  • Hello Bruno,

    We meet at JavaUniversity JavaFX course; You guys did a really cool demo of Bluetooth controling the Tetris application on JavaFX.

    I want to buy an Iphone but haven't bothered yet because the lack of official Java support Did you guys tried to compile and run a basic Swing app on the Iphone?

    Looks like a lot of hacking is needed bu on the other hand sounds fun too!

    Regards,

    José

    Posted by: josevnz on May 26, 2008 at 10:08 AM

  • Cool!

    I was thinking selling my soul too and this post definitely gave me more reasons.

    Piracucada!

    Posted by: guilherme_lopes on May 26, 2008 at 05:23 AM



Only logged in users may post comments. Login Here.


Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds