Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: iPhone apps with java

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default iPhone apps with java

    Hi guys,

    I am new to this site but I hope someone can help me with the problem I have.

    I know that now you can write apps for iphone on java using xmlvm, but don't really know HOW to write them. i looked at an example, where the main class extends a package called org.xmlvm.iphone , but i could not find this package anywhere. can anyone tell me how to build the apps that will run on iphone?

    Any help is much appreciated!


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: iPhone apps with java

    Please don't post the same question in multiple forums. Looking at the website, it looks like you write your code in Java, then use the Javac compiler (or another Java compiler) to compile the code down to Java byte code (.class files).

    You then run these class files through the XMLVM cross compiler to generate the compiled objective C code that can run on iPhones. See the XMLVM documentation for how to do this (I've never used this tool before, so unfortunately I won't be of much help here). Here's the manual for XMLVM: XMLVM manual

  3. #3
    Member
    Join Date
    Jul 2010
    Location
    Washington, USA
    Posts
    307
    Thanks
    16
    Thanked 43 Times in 39 Posts

    Default Re: iPhone apps with java

    I thought cross compiling one language to another creates code that barely ever works.

  4. #4
    Junior Member
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: iPhone apps with java

    Quote Originally Posted by helloworld922 View Post
    Please don't post the same question in multiple forums. Looking at the website, it looks like you write your code in Java, then use the Javac compiler (or another Java compiler) to compile the code down to Java byte code (.class files).

    You then run these class files through the XMLVM cross compiler to generate the compiled objective C code that can run on iPhones. See the XMLVM documentation for how to do this (I've never used this tool before, so unfortunately I won't be of much help here). Here's the manual for XMLVM: XMLVM manual
    thanks for your help, but I am not really an expert in java, could you please help with one more question? where do you usually get already built packages for java? I use JBuilder and when I try to include the package org.xmlvm it says it doesn't recognise it, where do you think I can get this package? it certainly is not on the xmlvm website and neither on the website of sourceforge linked from the xmlvm website.

    thanks

  5. #5
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: iPhone apps with java

    You should be able to download this package from the internet and import it into your project. I suggest you use Eclipse instead of JBuilder. Especially for applications like the one you are attempting to write. It looks like this package has to be downloaded via Subversion.. Google Eclipse Subversion my friend

    xmlvm
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  6. #6
    Junior Member
    Join Date
    Jan 2011
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: iPhone apps with java

    Java is a wonderful tool for developing iPhone applications like objective C. There are so many applications have been developed in java. The How to Install, Compile, Run Java Apps on iPhone is an easy resource of installing and compiling java apps on iPhone.

Similar Threads

  1. How to start writing Java Apps for Cell Phones?
    By Jchang504 in forum Java ME (Mobile Edition)
    Replies: 7
    Last Post: January 10th, 2011, 05:11 AM
  2. help with java apps.
    By Brt93yoda in forum Java Theory & Questions
    Replies: 5
    Last Post: August 30th, 2010, 11:36 AM
  3. Bluetooth for commercial java apps
    By alex100 in forum Java Networking
    Replies: 0
    Last Post: March 6th, 2010, 06:28 PM