Results 1 to 5 of 5
  1. #1
    computer is offline Member
    Join Date
    May 2008
    Posts
    1
    Rep Power
    0

    Question How to Create MAC application using Java on Windows platform..

    I have created a java swing application and its working fine on
    windows . Now I want to create this for MAC. I got we can
    create .app for MAC, but I don't know too much about MAC, so want to
    create .app on windows, Is there are any ant task for that or any
    steps for creating .appcication..

    please suggest me ASAP ...

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,516
    Rep Power
    25

    Default

    AFAIK jar files will execute on a Mac. So put your app in a jar file.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    jar file can run on any OS. But all of all features are not working/available on any OS. As an example think about tray icon.

  4. #4
    racerxadam is offline Member
    Join Date
    Jul 2008
    Posts
    68
    Rep Power
    0

    Default

    One of the benefits of Java is that it can be write once, run anywhere. As long as you don't hard code anything OS specific i.e.

    Java Code:
    FileReader fileReader= new FileReader("C:/temp/myFile.txt");

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by racerxadam View Post
    One of the benefits of Java is that it can be write once, run anywhere. As long as you don't hard code anything OS specific i.e.

    Java Code:
    FileReader fileReader= new FileReader("C:/temp/myFile.txt");
    True, but you have to select the most correct way to work on any OS. As I said in my previous post there are some limitation to use standard API for any OS in Java.

Similar Threads

  1. Java Application Interface similar with Windows Themes
    By Heracles Choe in forum AWT / Swing
    Replies: 9
    Last Post: 05-02-2008, 03:47 AM
  2. JAVA application residing on the windows tool bar!
    By rameshraj in forum Advanced Java
    Replies: 19
    Last Post: 04-30-2008, 03:30 AM
  3. Create Windows, Applet & Swing
    By Eric in forum AWT / Swing
    Replies: 1
    Last Post: 07-05-2007, 06:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •