0

i am currently developing an application on my Windows laptop however I also need it to run on a Mac. Is there a way to either convert my project to .dmg or .app or create a mac build striaght from Windows Eclipse?

I would very much rather not have to install Eclipse on the Mac machine just for this as it is a one time thing. Any Suggestions?

DaRoGa
  • 2,196
  • 8
  • 34
  • 62

3 Answers3

1

In my experiences you need a Mac to create anything for the Mac/iOS platform. So I guess you need a mac to create a dmg file.

Here is a post that says how this can be accomplished.

Of course you can just run the jar from the command line.

Community
  • 1
  • 1
mvieghofer
  • 2,846
  • 4
  • 22
  • 51
  • I did think of the jar from the command line however it will be used by a very computer illiterate person so would like to keep it as simple as possible to run! I will have a look at that link. Thanks – DaRoGa Nov 26 '13 at 15:11
  • 1
    When you want to run the jar you can create a shell script that executes the command. (http://stackoverflow.com/questions/5125907/how-to-run-a-shell-script-in-os-x-by-double-clicking) – mvieghofer Nov 26 '13 at 15:13
  • Accepted you answer as will probably go for the scripting method. Thanks – DaRoGa Nov 26 '13 at 15:24
1

run on any Java virtual machine. It does not matter if you run it on a mac or pc, that's the whole idea with java

Johan Nordli
  • 1,220
  • 3
  • 13
  • 26
1

Any simple way of creating a dmg file will probably require a Mac, however you don't need to do that; after all, you don't create an exe when you run a Java program on Windows either. Instead export it as a jar file and it should work on both systems (provided a Java Runtime Environment is installed and is set to run jar filed).

If you insist on creating a dmg, check this question which discusses creating them on Windows.

Community
  • 1
  • 1
blalasaadri
  • 5,990
  • 5
  • 38
  • 58