Mac OS X Application Bundle
I am programming in Eclipse and used the File > Export > Mac OS X Application Bundle option to try to create an application bundle of my program. I specified a main class and classpath and can go through all of the export steps without any errors, but when the application icon was created on my desktop, double-clicking on it did not launch my program. Am I misunderstanding what this export option is intended to do or is there a common error in creating an application bundle that I am falling into?
I also tried to export my program as an executable JAR using Eclipse, and received an error message in creating stating that, although it was specified, my main class could not be found or used.
Thanks.
[724 byte] By [
PrAna] at [2007-11-27 11:36:11]

This all sounds vaguely familiar. Anyway...
> I also tried to export my program as an executable JAR using Eclipse, and received an error message in creating stating that, although it was specified, my main class could not be found or used.
Can you post the exact, complete error message?
~
Does this help at all?
http://lists.apple.com/archives/Java-dev/2006/Nov/msg00339.html
tsitha at 2007-7-29 17:07:12 >

Thanks so much for your help. The error is "JAR Creation failed," and under details, it says "class file(s) on classpath not found or not accessible" (and then the name of the file, which is definitely in the directory it states).
PrAna at 2007-7-29 17:07:12 >

Note that "in the directory" does not necessarily mean "in the classpath", especially with respect to JAR files.
The link was incredibly helpful and I managed to resolve the problem and create the application bundle. Thanks so much!!
PrAna at 2007-7-29 17:07:12 >

> The link was incredibly helpful and I managed to
> resolve the problem and create the application
> bundle. Thanks so much!!
Not to speak for tsith, but I'm glad you got it working. Cheers!
~
> I am programming in Eclipse and used the File >
> Export > Mac OS X Application Bundle option to try to
> create an application bundle of my program. I
> specified a main class and classpath and can go
> through all of the export steps without any errors,
> but when the application icon was created on my
> desktop, double-clicking on it did not launch my
> program. Am I misunderstanding what this export
> option is intended to do or is there a common error
> in creating an application bundle that I am falling
> into?
>
First off, to make an Application Bundle on a Mac, don't use Esclipe to make the bundle. Instead use JarBundler or MRJAppBuilder. Why? They give you extra options to make the application bundle more like a native mac os x application. And there free too, they come along with the Mac OS X install CD in ths developer section.
> First off, to make an Application Bundle on a Mac, don't use Esclipe to make the bundle. Instead use JarBundler or MRJAppBuilder.
Any advice you give around here should be taken with a metric ton of salt. Caveat lector.
~
> > First off, to make an Application Bundle on a
> Mac, don't use Esclipe to make the bundle. Instead
> use JarBundler or MRJAppBuilder.
>
> Any advice you give around here should be taken with
> a metric ton of salt. Caveat lector.
>
> ~
Any advice I give on mac should be not be taken lightly. I can tell you how do things using Macs developers off the top of my head, without referencing any articles. Yo do have me beat hands down when it comes to java, but when it comes to OS X development and their tools, its whole other game.
> Any advice I give on mac should be not be taken lightly.
Those are empty words. Given your persistent track record for getting simple facts wrong (and steadfastly adhering to those errors), I don't put any weight in your claims of expertise.
> Yo do have me beat hands down when it comes to java
Regardless of what you seem to think, this isn't a competition.
~
> Any advice I give on mac should be not be taken
> lightly. I can tell you how do things using Macs
> developers off the top of my head, without
> referencing any articles. Yo do have me beat hands
> down when it comes to java, but when it comes to OS X
> development and their tools, its whole other game.
My goldie detector just went off the scale.
:(
MRJAppBuilder is considered legacy by Apple, and the use of the MRJ runtime is deprecated.
You are best to follow the advice in the link given by tsith.
Also just to make it feel more like a Mac app, this link might be useful.
http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac/
Not as helpful as this one. If you also take note, that article by Sun was published in 2003.
http://developer.apple.com/java/
-
> > > First off, to make an Application Bundle on a
> > Mac, don't use Esclipe to make the bundle. Instead
> > use JarBundler or MRJAppBuilder.
> >
> > Any advice you give around here should be taken
> with
> > a metric ton of salt. Caveat lector.
> >
> > ~
>
> Any advice I give on mac should be not be taken
> lightly. I can tell you how do things using Macs
> developers off the top of my head, without
> referencing any articles. Yo do have me beat hands
> down when it comes to java, but when it comes to OS X
> development and their tools, its whole other game.
Dude, you...you're awesome
Praise Him! O Master Of The Macs! Woo-hoo!
You're nowhere near as smart as you think you are. The sooner you grasp that, the better you'll be at your job
> Dude, you...you're awesome
>
> Praise Him! O Master Of The Macs! Woo-hoo!
>
> You're nowhere near as smart as you think you are.
> The sooner you grasp that, the better you'll be at
> your job
Dude your sarcastic! woaw!
I wanna grow up to be just like you someday!!!
Seriously, I give some good advice on making apps on a Mac an I criticized for it. Gee do you guys know how bundles are made,acesss and executed? Are you familiar with JarBuilder and its features? The About Box? For each app, where are the prefeneces store in OS X compared to OS 9?
Now don't go do a little research and say yes.
> > Dude, you...you're awesome
> >
> > Praise Him! O Master Of The Macs! Woo-hoo!
> >
> > You're nowhere near as smart as you think you are.
> > The sooner you grasp that, the better you'll be at
> > your job
>
> Dude your sarcastic! woaw!
>
> I wanna grow up to be just like you someday!!!
>
> Seriously, I give some good advice on making apps on
> a Mac an I criticized for it. Gee do you guys know
> how bundles are made,acesss and executed? Are you
> familiar with JarBuilder and its features? The About
> Box? For each app, where are the prefeneces store in
> OS X compared to OS 9?
>
> Now don't go do a little research and say yes.
Who cares? You can't constantly spout on about how wonderful you are at absolutely everything and then whinge when you get a bit of flack for it
No, I'm not spouting how wonderful I am or anything. Just saying that when I do give some advice and it is correct, I would appreciate not getting flack for it.
> No, I'm not spouting how wonderful I am or anything.
"Any advice I give on mac should be not be taken lightly. I can tell you how do things using Macs developers off the top of my head, without referencing any articles."
> Just saying that when I do give some advice and it is
> correct, I would appreciate not getting flack for it.
As mentioned before (numerous times), you have built a reputation for yourself. If you don't want the reputation that comes with the user name, register a new account and don't repeat the same behavior.
And please make some effort to learn the distinction between "there", "their", and "they're". It will help others take you more seriously.
~
> No, I'm not spouting how wonderful I am or anything.
> Just saying that when I do give some advice and it is
> correct, I would appreciate not getting flack for it.
Telling us that any advice you give on Mac development should not be taken lightly is exactly you telling us how wonderful you are
I'm sure you would appreciate it. Unfortunately, the world is not arranged to your exact specifications. We have absolutely no reason on earth to believe that your "advice" is correct. Only yesterday you spent some 300 posts insisting that your convoluted and entirely flawed "solution" to a problem that didn't exist was exactly how Apple intended you to work. It wasn't. But still you insisted it, all the same, because you know everything and everyone else in the world is full of sh!t, apparently
Your credibility is shot to pieces, and you do nothing at all to change that by blindly insisting on being right all the time. You will continue to get flack because you've asked for it. Either lay in the bed you made, or do as Yawmark suggested and sign up again. Don't bother with your old shenannigans because you will be spotted, very quickly. It happens all the time
Whining about how unfair the world is to you, after the behaviour patterns you repeat so often, is just lame
> Not as helpful as this one. If you also take note,
> that article by Sun was published in 2003.
>
> http://developer.apple.com/java/
>
> -
Right, so you link to a portal page that has no information in relation to making java applications more "mac like" and claim it's better than the article that actually details how to do it...
Well done.
> > Not as helpful as this one. If you also take note,
> > that article by Sun was published in 2003.
> >
> > http://developer.apple.com/java/
> >
> > -
>
> Right, so you link to a portal page that has no
> information in relation to making java applications
> more "mac like" and claim it's better than the
> article that actually details how to do it...
>
> Well done.
Am I suppose to do the research for you? You can do research all by yourself, don't you?
> > Not as helpful as this one. If you also take note,
> > that article by Sun was published in 2003.
> >
> > http://developer.apple.com/java/
> >
> > -
>
> Right, so you link to a portal page that has no
> information in relation to making java applications
> more "mac like" and claim it's better than the
> article that actually details how to do it...
>
> Well done.
just tell me how to do it in eclipse
> > No, I'm not spouting how wonderful I am or
> anything.
> > Just saying that when I do give some advice and it
> is
> > correct, I would appreciate not getting flack for
> it.
>
> Telling us that any advice you give on Mac
> development should not be taken lightly is exactly
> you telling us how wonderful you are
>
> I'm sure you would appreciate it. Unfortunately, the
> world is not arranged to your exact specifications.
> We have absolutely no reason on earth to believe that
> your "advice" is correct. Only yesterday you spent
> some 300 posts insisting that your convoluted and
> entirely flawed "solution" to a problem that didn't
> exist was exactly how Apple intended you to work. It
> wasn't. But still you insisted it, all the same,
> because you know everything and everyone else in the
> world is full of sh!t, apparently
>
> Your credibility is shot to pieces, and you do
> nothing at all to change that by blindly insisting on
> being right all the time. You will continue to get
> flack because you've asked for it. Either lay in the
> bed you made, or do as Yawmark suggested and sign up
> again. Don't bother with your old shenannigans
> because you will be spotted, very quickly. It
> happens all the time
>
> Whining about how unfair the world is to you, after
> the behaviour patterns you repeat so often, is just
> lame
So what, you guys got nothing to do but spot each and every one of my post and try to shoot me down even when I am correct?
And yesterday there wasn't a problem except for loading the jar files. Besides that, I was putting my dependencies in location that is not commonly used on windows. The pathhack wasn't the greatest idea but it worked so there really was no problem except for some people not liking what I was doing.
> just tell me how to do it in eclipse
Just go to export, select other, choose Mac OS Application Bundle, choose the main class, a folder to save it in, and an icon if you really want to and then finish.
But my point was that doesn't implement the true mac feel because you can't get the correct MenuBar or the About Box. And I also don't know what else Eclipse is lacking compared to JarBuilder.
-
> > > No, I'm not spouting how wonderful I am or
> > anything.
> > > Just saying that when I do give some advice and
> it
> > is
> > > correct, I would appreciate not getting flack
> for
> > it.
> >
> > Telling us that any advice you give on Mac
> > development should not be taken lightly is exactly
> > you telling us how wonderful you are
> >
> > I'm sure you would appreciate it. Unfortunately,
> the
> > world is not arranged to your exact
> specifications.
> > We have absolutely no reason on earth to believe
> that
> > your "advice" is correct. Only yesterday you spent
> > some 300 posts insisting that your convoluted and
> > entirely flawed "solution" to a problem that
> didn't
> > exist was exactly how Apple intended you to work.
> It
> > wasn't. But still you insisted it, all the same,
> > because you know everything and everyone else in
> the
> > world is full of sh!t, apparently
> >
> > Your credibility is shot to pieces, and you do
> > nothing at all to change that by blindly insisting
> on
> > being right all the time. You will continue to get
> > flack because you've asked for it. Either lay in
> the
> > bed you made, or do as Yawmark suggested and sign
> up
> > again. Don't bother with your old shenannigans
> > because you will be spotted, very quickly.
> It
> > happens all the time
> >
> > Whining about how unfair the world is to you,
> after
> > the behaviour patterns you repeat so often, is
> just
> > lame
>
> So what, you guys got nothing to do but spot each and
> every one of my post and try to shoot me down even
> when I am correct?
You being correct hasn't happened yet, despite your protests to the contrary. So that's irrelevant. Perhaps you should just listen to some of the advice you get. Everyone else in the world learns to do that at some point
> And yesterday there wasn't a problem except for
> loading the jar files. Besides that, I was putting my
> dependencies in location that is not commonly used on
> windows. The pathhack wasn't the greatest idea but it
> worked so there really was no problem except for some
> people not liking what I was doing.
Read "The Pragmatic Programmer" by Dave Thomas. In particular, pay attention to the section titled "programming by coincidence". I see you still don't know what "dependencies" means, though
I don't know where you get this idea that we don't like what you're doing. You really need to focus on not taking every little criticism as a personal attack. It was pointed out to you - at great length - why your hack was not going to work properly, but you chose to ignore that. I can't honestly figure out why you have these problems accepting other people's points. At a guess, you must think that these things should be balanced, and only once we've accepted something of yours will you accept something of ours. I hope I'm wrong, because even a child can see how flawed that is
> > just tell me how to do it in eclipse
>
> Just go to export, select other, choose Mac OS
> Application Bundle, choose the main class, a folder
> to save it in, and an icon if you really want to and
> then finish.
>
> But my point was that doesn't implement the true mac
> feel because you can't get the correct MenuBar or the
> About Box. And I also don't know what else Eclipse is
> lacking compared to JarBuilder.
>
> -
Your funniest "miss the point entirely" in some time :-)
> > > just tell me how to do it in eclipse
> >
> > Just go to export, select other, choose Mac OS
> > Application Bundle, choose the main class, a
> folder
> > to save it in, and an icon if you really want to
> and
> > then finish.
> >
> > But my point was that doesn't implement the true
> mac
> > feel because you can't get the correct MenuBar or
> the
> > About Box. And I also don't know what else Eclipse
> is
> > lacking compared to JarBuilder.
> >
> > -
>
> Your funniest "miss the point entirely" in some time
> :-)
It just wasn't the point you were making, thats all.
My objective here was the help the OP, in development of an Mac OS X App. If you researched and used JarBuilder and then used Eclipse to make an Mac OS X app, you would see what I mean.
> > > > just tell me how to do it in eclipse
> > >
> > > Just go to export, select other, choose Mac OS
> > > Application Bundle,
[snip]
> > Your funniest "miss the point entirely" in some
> time
> > :-)
>
> It just wasn't the point you were making, thats all.
>
that's typically what's meant when someone tells you that you've missed their point (or there point, as you might say)
tsitha at 2007-7-29 17:07:16 >

> > > > just tell me how to do it in eclipse
> > >
> > > Just go to export, select other, choose Mac OS
> > > Application Bundle, choose the main class, a
> > folder
> > > to save it in, and an icon if you really want to
> > and
> > > then finish.
> > >
> > > But my point was that doesn't implement the true
> > mac
> > > feel because you can't get the correct MenuBar
> or
> > the
> > > About Box. And I also don't know what else
> Eclipse
> > is
> > > lacking compared to JarBuilder.
> > >
> > > -
> >
> > Your funniest "miss the point entirely" in some
> time
> > :-)
>
> It just wasn't the point you were making, thats all.
>
> My objective here was the help the OP, in development
> of an Mac OS X App. If you researched and used
> JarBuilder and then used Eclipse to make an Mac OS X
> app, you would see what I mean.
I have used Eclipse to develop a Mac OSX program. I told you that yesterday. Not only was it developed in Eclipse, it was an Eclipse RCP product. Apple were most impressed with our work, and gave us a bunch of shiny new Macs to develop on. They put a demo of it on the front of Apple World or whatever it's called, and put several other houses in touch with us, saying "talk to these guys, they know how to write Java for the Mac"
We didn't use JarBuilder because an IDE has no business being involved in the build process, simple as that
No need to keep acting like you're the first guy in the world to ever develop cross-platform Java
> > Your funniest "miss the point entirely" in some time
> > :-)
>
> It just wasn't the point you were making, thats all.
The point, which you seem to have ignored or misunderstood, was a retort to your snippy line of questioning ("Am I suppose to do the research for you? You can do research all by yourself, don't you?"), and the fact that you have repeatedly asked others to do that very thing for you.
~
Dude. MacWorld.
tsitha at 2007-7-29 17:07:21 >

**** am I too late to have a good old rant at mage :-( Although I suppose I shouldn't really as I/we are inferior people... no insects! Compared to the awesomeness (new word wonder if its in the dictionary?) that is BlackMage. The sheer cockiness in your posts is quite amusing the fact that you say you rival all of the developers in their mac skills is quite unfounded? Do you know every developer and his/her mac capabilities... I think not. And in one of your posts you posted a site which linked to irrelevant information (again) and someone rightly pointed this out. Your response was that its not your job to look up the facts? Surely it is if you post something that is supposed to back you up?
Ho hum looking forward to your next Factual post :-)
> So what, you guys got nothing to do but spot each and every one of my post and try to shoot me down even when I am correct?
I tried to warn you about this early in your iPhone thread, when you still had a shot at backing out and saving face. Unfortunately, your username now has a stigma attached to it, and it's not going to get any better. Why do I say this? Because it happens on this forum on a surprisingly regular basis.
~
> I tried to warn you about this early in your iPhone thread,
> when you still had a shot at backing out and
> saving face. Unfortunately, your username now has a
> stigma attached to it, and it's not going to get any
> better. Why do I say this? Because it happens on this
> forum on a surprisingly regular basis.
>
> ~
Ah, thanks. I was wondering where I'd seen this guy before.
> > So what, you guys got nothing to do but spot
> each and every one of my post and try to shoot me
> down even when I am correct?
>
> I tried to warn you about this early in your iPhone
> thread, when you still had a shot at backing out and
> saving face. Unfortunately, your username now has a
> stigma attached to it, and it's not going to get any
> better. Why do I say this? Because it happens on this
> forum on a surprisingly regular basis.
>
> ~
Remember old quest_for_knowledge, and his constant defining of who had the right to tell him he was wrong and who didn't? Ah, happy days
Have Apple gone bust yet over their bad marketing and inferior product?
> Remember old quest_for_knowledge, and his constant
> defining of who had the right to tell him he was
> wrong and who didn't? Ah, happy days
questie, goldie, ulrika, daFei, richard what's-his-face, the shopping cart guy, martin hilpert, and so on...
~
> Any advice I give on mac should be not be taken
> lightly. I can tell you how do things using Macs
> developers off the top of my head, without
> referencing any articles. Yo do have me beat hands
> down when it comes to java, but when it comes to OS X
> development and their tools, its whole other game.
Goldie?
jverda at 2007-7-29 17:07:21 >
