Article View: comp.sys.mac.programmer.codewarrior
Article #845Re: Cocoa - Java App using Codewarrior 8 ?
From: Isaac Wankerl
Date: Mon, 10 Mar 2003 19:12
Date: Mon, 10 Mar 2003 19:12
77 lines
4051 bytes
4051 bytes
In article <FMN8a.105075$P1.6643673@news1.east.cox.net>,
"asim barakzai" <asimwork@aol.com> wrote:
> Ron:
>
> Thanks for you response, but I am not sure how to proceed with this
> information. I have about 400 Info.plist files on my computer and am not
> sure which one are you referring to.
This will be the Info.plist that is inside your application's bundle.
If you based your app from the Objective C stationery, then there is a
SimpleHello.plc file which generates the Info.plist file. Open up this
.plc file and add these keys
key "NSJavaNeeded" value string "YES"
key "NSJavaRoot" value string "Contents/Resources/Java"
key "NSJavaPath" value array
[
string __OUTPUT_FILENAME__ ".jar"
]
I don't know much about Java so there may be additional items involved
such as how to generate the .jar file. You may need a separate target
to build it and place it into the
Contents/Resources/Java folder of your bundled app.
> Anyhow, when I open up CodeWarrior and do a "New" - Project, then select
> "Mac OSX Cocoa Stationary" , the only option I get is "Objective-C
> Application". I don't get any "Java Application" option here. Am I missing
> something in my installation of CodeWarrior 8.3 Mac/Win ? Also, the only
> Cocoa code samples I found on my CodeWarrior installation are in
> Objective-C.
>
> Additionally, if on the other hand I select the "Java J2SE Stationary ->
> Java Application" (from "New" Project) I am given a trivial app and see no
> way to get to Interface Builder from here.
>
> Can you please tell me in simple steps on how to go about creating a Cocoa -
> Java application with CodeWarrior that uses Interface Builder etc. Or point
> me to any document on Metrowerks website/CD that outlines this process.
>
> Asim
>
> "MW Ron" <mwron@metrowerks.com> wrote in message
> news:mwron-2A1C36.10290528022003@enews.newsguy.com...
> > In article <G2v7a.79307$P1.5213726@news1.east.cox.net>,
> > "asim barakzai" <asimwork@aol.com> wrote:
> >
> > >I would like to create a Cocoa-Java application using CodeWarrior 8
> Mac/Win
> > >but can't seem to find any documentation on how to do this.
> > >
> > >Is this even supported ? Or should I just stick with ProjectBuilder ?
> > >
> > One of our engineers said, you may just need to add a few extra keys to
> > the Info.plist:
> >
> > NSJavaNeeded string YES
> > NSJavaRoot string Contents/Resources/Java
> > NSJavaPath array
> > item 0 string CocoaJavaApp.jar "this is based on the executable
> > file name"
> >
> > Ron
> >
> > --
> > Migrate your PowerPlant Applications to Windows
> > http://www.metrowerks.com/MW/Services/OEM/default.htm
> >
> > Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
>
>
--
Isaac Wankerl
Metrowerks
Mac Software Developer
Technical Details
Message-ID:
<spam-0B3424.13125410032003@news.mtwk.sps.mot.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!spamReferences:
<G2v7a.79307$P1.5213726@news1.east.cox.net> <mwron-2A1C36.10290528022003@enews.newsguy.com> <FMN8a.105075$P1.6643673@news1.east.cox.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,2e46eb92449dcfb4
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,1c283d435cf969e1
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2003-03-10 11:11:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!spam
From: Isaac Wankerl <spam@metrowerks.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Re: Cocoa - Java App using Codewarrior 8 ?
Date: Mon, 10 Mar 2003 13:12:55 -0600
Organization: Metrowerks
Message-ID: <spam-0B3424.13125410032003@news.mtwk.sps.mot.com>
References: <G2v7a.79307$P1.5213726@news1.east.cox.net> <mwron-2A1C36.10290528022003@enews.newsguy.com> <FMN8a.105075$P1.6643673@news1.east.cox.net>
User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X)
X-Face: )mY~XFHLw)UOW!W#[Ljvxq6Ja7(g'#F0-g*&puNxR8hEJkd@Oue/70^.)I78\
(%a%&Id211u"l/t.llWo/M|?15XUlx9!IGkdWiEmcasiyg"k;Q9[~XuE+`t2"*n(>nmm
@L/q,TjMd5+H{gASEPDR^$
X-Complaints-To: abuse@supernews.com
Lines: 77