Re: Carbon and Java Target in one Project
Re: Carbon and Java Target in one Project
- Subject: Re: Carbon and Java Target in one Project
- From: Greg Guerin <email@hidden>
- Date: Tue, 3 Oct 2006 14:59:32 -0700
Markus Helbig wrote:
>One solution is to build an carbon application which sat the end
>starts java -jar App.jar. I have one which is working, BUT within to
>xcode projects. So i tried to combine these projects as two targets
>into one project. The carbon app depends on the java app, but it is
>impossible to drag the App.jar as "Copy Bundle Ressource" to the
>carbon target, so it doesn't work. Any ideas how to add the resulting
>App.jar form the Java target to the Carbon target?
The basic strategy should work, and I have several Xcode projects that do
this. One target creates a jar file. Another target builds an app-bundle
from native code. The app-bundle target has no trouble copying the
jar-file into its proper place in the built app-bundle.
I've also done a 3-target one that adds a JNI-lib target, which is compiled
as Universal Binary, and its output jnilib is copied into place by the
app-bundle target.
This was done on Xcode 2.2.1.
You don't say what versions you're using of OS, Xcode, Java, or anything
else, so I don't know what to suggest in order to make it work.
>Any other possibilities to solve the main problem, setting
>environment variables within an Java Project, before the App.jar will
>be started??
The simplest is the LSEnvironment key in the app's Info.plist:
<http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html>
If setting env-vars is the only reason you're using a Carbon launcher, you
can use LSEnvironment in a pure Java application.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden