How can I develop iPhone apps in Java?

In my computer science class, I completed all my projects; So my teacher thought it would be nice to develop applications for the iPhone. The only problems are that the class is taught in Java and the iPhone applications are written in Objective-C.

I was wondering if someone had developed Java applications with XMLVM.

This compiler (presumably) converts java byte code to Objective-C (without the need for an apple computer or knowledge of Objective-C). Is it correct?

http://www.xmlvm.org/overview/

Here is an example of the Java code used on the iPhone:

http://www.xmlvm.org/iphone/#

+48
java objective-c iphone
Jan 12 '10 at 17:29
source share
19 answers

If you have completed your other projects, why not spend time learning Objective-C? There are tons of materials on the Internet to help you get started. Honestly, it will not be so difficult, and learning how to do some memory management will be a great exercise. Have you programmed in C before?

Most cross-compilers will not do an excellent job of converting your code, and debugging your project can become a lot more difficult if you design them that way.

+33
Jan 12 '10 at 17:36
source share

Not really your answer, but why not try some Android developments? No need for an open source Mac, no Java-based investments.

+72
Jan 12 '10 at
source share

I think we will have to wait a couple more years to see more progress. However, more frameworks and tools are now available:

Here is a list of 5 options:

+33
Apr 22 '14 at 23:16
source share

I think your teacher sent you the wrong way.

This is a classic example of trying to put a square peg in a round hole. The best development method for the iPhone is to use the iPhone SDK and goal C. The best development method for Andriod is the Java and Android SDK. The best development method for WinMobile is the C # / VB and .Net Framework.

As you can see, everyone has their own “best” SDK. Since you are only learning Java, I would support the suggestion of playing around with Java and Android.

+26
Jan 12 '10 at 17:36
source share

There is a new tool called Codename one : one JAVA-based SDK for code in WP8, Android, iOS with all advanced features

Features:

  • Complete Android environment with super fast Android simulator.
  • Simulator iPhone / iPad with easy transfer of iPhone applications to iPad with a large screen in minutes.
  • Full support for standard Java debugging, profiling applications on any platform.
  • Easy theme / style - just one click.

Read more in Developing Android, iOS iPhone, WP8 Applications Using Java

+10
Feb 22 '13 at 10:12
source share

take a look at codenameone.com project, it is a platform for cross-platform mobile communications, where the ui part is the LWUIT plug. This project uses xmlvm to translate Java byte code into Objective-C

+6
Mar 27 '12 at 9:48
source share

You can also take a look at RoboVM .

It translates Java bytecode into native ARM code or x86 code, which can be run directly on the processor without the need for a VM or interpreter. Most Obj-C user interface elements are already connected to Java and follow the usual Java design patterns.

Edit Robo VM recently announced that this will disable the service - Source

+5
Sep 21 '13 at 18:43
source share

You need to know at least the basics of Objective-C for iPhone development. However, you can use C ++ classes.

As far as I know, Adobe is working on creating Flex / Flash applications for the iPhone. Read more here: http://theflashblog.com/?p=1513

+2
Jan 12 '10 at
source share

You can not.

Note that Monotouch allows you to develop in C # instead of Objective-C. http://monotouch.net/

+2
Jan 12
source share

If you plan to integrate application functionality with a website, I highly recommend the GWT + PhoneGap model:

http://blog.daniel-kurka.de/2012/02/mgwt-and-phonegap-talk-at-webmontag-in.html http://turbomanage.wordpress.com/2010/09/24/gwt-phonegap -native-mobile-apps-quickly /

Here are my two cents from my own experience: we use the same Java POJOs for our Hibernate database, our REST API, our website and our iPhone application. The workflow is simple and beautiful:

Database --- 1 ---> REST API --- 2 ---> iPhone Application / Website

  • 1: hibernate
  • 2: Serialization of GSON and GWT JSON Deserialization

There is another advantage of this approach: any Java code that can be compiled using GWT, and any JavaScript library will be available for use in your iPhone application.

+2
Mar 26 2018-12-12T00:
source share

I answer this question after 2 years, and I must stress that I had the same problem as you. However, I am so happy that Android has turned into what it is today.

Having said that , I regret that I did not study C / C ++ while I could, and I do not want to blame my teachers for this cos, where was my brain when the time came?

Today I am immersed in Java, and I am glad that I was not mistaken in learning too many languages ​​and less productive ... However, I studied HTML5 , which really simplified the work, maybe someday, I could get motivation to learn C / C ++. Or, if I get an Apple Mac at a real drop price, I might recognize Objective-C :)

+2
May 21 '12 at 14:50
source share

I think Google Open Sources Java To Objective-C Translator will make it possible to develop in Java for iOS https://code.google.com/p/j2objc/

+2
Sep 25
source share

try using TotalCross . This is the Java Framework to help developers create applications for iOS and Android with only one source code. Unlike other platforms, it does not require any knowledge in iOS (Objective-C or Swift), nor Android (SDK or NDK)

there is maven integration https://gitlab.com/totalcross/TotalCross/wikis/building-with-maven

+2
May 03 '17 at 13:15
source share

http://www.xmlvm.org/android/

In particular, we are talking about Java-based applications that are ported to the iPhone using hardware other than Apple.

You can also check MonoTouch (C #, not Java ... but the two are very similar).

+1
Jan 12 '10 at 17:35
source share

You can try iSpectrum (get it at http://www.flexycore.com ). You can develop and debug your Java applications in Eclipse. You still need a Mac and Xcode to run it on a simulator or install it on a real device. But you will not need to use the Xcode editor. In addition, you can use it for free if you plan to work on an open source project.

+1
Feb 23 '10 at 8:52
source share

Perhaps you should consider Android apps instead of iPhone apps if you really want to develop Java for smartphones. Android originally uses Java for its applications; maybe this might be the best option?

As for the iPhone, I would recommend that you learn Obj-C or C / C ++ depending on the type of applications you want to create. It must be fun to pamper yourself with a new language! :)

+1
Feb 23 '10 at 9:00
source share

To add to this: http://www.oracle.com/technetwork/developer-tools/adf-mobile/overview/index.html

Based on Java and HTML5, the Oracle ADF Mobile development platform allows developers to create and expand enterprise iOS and Android applications from a single code base. Based on a hybrid mobile architecture, ADF Mobile supports access to device services, enables stand-alone applications, and protects enterprise investments from future technological shifts.

+1
Aug 14 '13 at 22:11
source share

Even if the question says Java, most of the answers are backtracking. So I thought I would do the same :)

We have been using Adobe AIR for the past 5 years, and it is truly a cross-platform interface and provides performance similar to the same code base (at least 99% of our code is the same). Adobe AIR received poor printing at the beginning of the beta period (slow, no GPU, Flash dead, etc.). But now it’s amazing what you can do with it. Not to mention the wealth of open source libraries.

With the same code base, you can click your application on:

  • IOS
  • Android (x86 and ARM)
  • Flash (still VERY helpful)
  • Chromebook
  • PC (as native with the installer)
  • Mac (as native with the installer)

Why bother with Java or Objective-C?

The only common platform that is not covered is Window Phone. But that too soon.

0
May 28 '15 at 18:04
source share

Create a hybrid app. In any case, Java is not enough for a software engineer, you need to learn JS, HTML5, CSS, and also become a full-featured mobile application developer. Create a complete backend using Java and an interface using Cordova / Phonegap.

I assume that you do not need the last drop of juice from the hardware, even the hybind application should satisfy your needs.

Create a responsive webapp using Bootstrap 4 + React JS. Use https://github.com/ipselon/structor to quickly create an interface. Now the web application becomes the application in the browser.

You can also use the same application and create it using a cord to publish the application on the ios / android platform.

-one
Aug 19 '17 at 14:45
source share



All Articles