Re: Java dev in XCode & CLASSPATH
Re: Java dev in XCode & CLASSPATH
- Subject: Re: Java dev in XCode & CLASSPATH
- From: David Ewing <email@hidden>
- Date: Mon, 19 Jul 2004 12:07:10 -0600
On Jul 18, 2004, at 6:31 AM, Brooke Smith wrote:
Hi Dave,
Thanks for your reply.
I have to say that I don't understand why XCode has to be so
different, though I found the solution from your reply (thankyou). An
entry from my blog reads:
In XCode I chose the target application from the Target section and
double clicked it. This brought up a configuration dialog. I went down
to "Info.plist entries/Simple View/Pure Java Specific". In there I
added $(LOCAL_LIBRARY_DIR)/Java into the CLASSPATH field and now the
Java runtime finds the packages I specified.
So I'm quite ecstatic that I've got it working. But will I have to do
this manual confiiguration for each project I start? In XCode, why
doesn't java respect the same (classpath) mechanism that javac does?.
This still doesn't make sense to me.
This too is intentional (though not always convenient). It allows you
to build against a .jar file containing only interfaces, and then run
against the .jar file that contains the entire implementation. This
allows you to be sure that you don't use any private APIs that are part
of an implementation, since you'd get build-time errors. That said,
it's also very common to build and run against the .jar files, and we
don't make this easy enough.
I guess the differences is perspectives. XCode must be designed from
the perspective of building self-contained applications, where-as how
I work in what I do is to write systems on the same server. I'm sure
Eclipse or other IDE's don't work in this way (but yet to truly find
out).
It's certainly true that Xcode is more general than other IDEs that
support Java. A blessing and a curse....
Dave
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.