Developing for Mac users

Hi,

I am evaluating a couple of java ide's with a view to using one to develop an applicaton that will run on windows, mac and linux.

I have created a simple application using IDEA that runs on windows but no on a mac. I would like to know if there is somthing I need to set to create an application that will run on all platforms. Or do I need to deploy other files as well?

Sample Java apps created from other ide's seem to run. Just not ones I create from scratch.

Many thanks in advance of any help I can be given on this subject.

Message was edited by:
John Messingham

7 comments

Hello John,

I am evaluating a couple of java ide's with a view to using one to
develop an applicaton that will run on windows, mac and linux.

I have created a simple application using IDEA that runs on windows
but no on a mac. I would like to know if there is somthing I need to
set to create an application that will run on all platforms. Or do I
need to deploy other files as well?


How exactly does your application fail to run on a Mac? Did you use the IntelliJ
IDEA UI Designer when building your application?

In general, applications built with IntelliJ IDEA do not have any specific
OS requirements.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Hi,

Many thanks for your reply Dmitry.

When I try and run the app on the mac I get the following message:

"The jar file "untitled.jar" couldn't be launched. check to console for possible error messages."

Please excuse the fact that I do not even know how to get the console to display. I have literaly just decided to look into using java after spending many years developing on a pure windows platform.

I have attached the project directory in case you have a spare monent to look at it.



Attachment(s):
untitled.zip
0

I'd bet that the IDEA redistributable jars for the GUI designer are compiled using java 1.6, which, unless I'm mistaken, is not available (yet) on Mac OS X.

Does this seem possible to you ?

0

Hello Thibaut,

I'd bet that the IDEA redistributable jars for the GUI designer are
compiled using java 1.6, which, unless I'm mistaken, is not available
(yet) on Mac OS X.

Does this seem possible to you ?


No, this is not the case. In fact the UI designer redistributable jars are
built with JDK 1.3.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Hello John,

Many thanks for your reply Dmitry.

When I try and run the app on the mac I get the following message:

"The jar file "untitled.jar" couldn't be launched. check to console
for possible error messages."

Please excuse the fact that I do not even know how to get the console
to display. I have literaly just decided to look into using java after
spending many years developing on a pure windows platform.

I have attached the project directory in case you have a spare monent
to look at it.


You have compiled your project with JDK 1.6, which is not currently supported
on Mac. You'll need to download JDK 1.5 from the "Previous Releases" page
on java.sun.com, add it in IntelliJ IDEA and specify it as the JDK used by
your project. Then the .jar files will be able to run on Mac.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Many thanks to you both. That has solved the problem.

I have only got one other question at this point. The samples that come with Netbeans seem to be able to pick up the button styles of Vista and XP as well as the Mac. I would like to know if this is possible with IDEA. The reason I ask is that the level of support with IDEA is obviously greater than that of Netbeans so as a fulltime developer I am really moving towards IDEA already.

John

0

I found an article about using system themes so I am ok on this one now.

Again many thanks for the replies.

0

Please sign in to leave a comment.