• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Blocking bug [was:Re: where should java librairies be set?]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Blocking bug [was:Re: where should java librairies be set?]


  • Subject: Re: Blocking bug [was:Re: where should java librairies be set?]
  • From: joshua portway <email@hidden>
  • Date: Mon, 27 Oct 2003 20:23:27 +0000

add the jar to the project first, then try dragging it into the libraries folder.

I don't know why xcode is trying to copy the file.

XCode still isn't that great for Java, but it is just about usable. We use it for building our project because it's very good handling complicated build stages and constructing an OSX app package. Our project is extremely complex and uses both C++ and Java mixed together, so the build is pretty complex (at the last count there were 24 interdependent targets) and XCode manages to do the build ok (at least when building for Panther - see my other posts).

On the other hand XCode (and project Builder, for that matter) is pretty useless as a Java IDE. We never really use it much for editing or debugging code - the way we tend to work is to do our actual Java development in Netbeans (or one team member uses Eclipse), and then produce the final built apps with XCode. The Java editor and debugger in XCode just aren't anywhere near Netbeans or Eclipse - it doesn't even have code completion, never mind the sophisticated on-the-fly code analysis and advice and refactoring stuff that Netbeans or Eclipse has. Java seems to be a lower priority than C++ or Objective C to the XCode team, but hopefully things will improve over time.

If you're just building a simple jar you're almost certainly much better off just using netbeans or eclipse. If you have a complicated build process involving multiple languages and building application packages etc. XCode is pretty good.

j



On 27 Oct 2003, at 19:59, Sebastien Sahuc wrote:

Thanks for the quick response. Unfortunately Xcode is crashing on me anytime I'm trying to add a jar file to the 'libraries and frameworks' node.

Create a new java tool project.
Expand the target node
Drag and drop *any* jar file to the 'libraries and framework' node

You then get a dialog box asking how the file should be copied over. Check the copy check box and click ok. XCode then crashes.

One thing worth noting is that there is NO target listed in the copy dialog box. Is that related to the fact java target is Not native hence you cannot see it ? If that's true then how do you add a jar file. Moreover the exact same issue applies when adding java source file.

I'm sorry to say that, but to me it seems that xcode is simply not usable for java project. Project builder was working better.

thanks


Sebastien Sahuc


I've submit a bug report when requested so.

On Oct 27, 2003, at 11:05 AM, joshua portway wrote:

in xcode if you want to add an existing jar as a library for your project, just add it to your project and drag it into the projects "libraries and frameworks" - that's it.

If you want to merge the contents of the jar with the code that your're building (so that the end result is a single jar file containing all the code with no dependencies), double click the target, and find the jar file - there's a little "merge" tick box which will cause the contents of the jar to be merged into your built code.

For some reason this merge tickbox is only visible when you double click the target, and not in any of the inspectors or other views - xCode seems to be very inconsistent in what it displays where, you often have to hunt around amongst several possibilities - but it's usually in there somewhere !

j


On 27 Oct 2003, at 18:15, Sebastien Sahuc wrote:

Hi again,

Thanks again for you patience. I'm really trying to figure out how i could use the new XCode for my various Java projects. If I create a new Java tool project I could not find a way to set the various libraries that my java project requires. Is there a way to set jar files, or at least a classpath ?

In ProjectBuilder I managed to do so with some kind of building property called 'OTHER_JAVA_CLASS_PATH' which I'm unable to set in XCode (since it's not a native target, hence the 'Rules' pane not available in the target info dialog box).

I'm sure there is a standard way to set the required librairies, unfortunately I'm not yet sure how.

I understand this is a newbie question, but I will appreciate if someone could shed me some light on that point.

Thanks again for reading,

Sebastien Sahuc
_______________________________________________
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.
_______________________________________________
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.

References: 
 >where should java librairies be set? (From: Sebastien Sahuc <email@hidden>)
 >Re: where should java librairies be set? (From: joshua portway <email@hidden>)

  • Prev by Date: Re: Default optimizations
  • Next by Date: Re: precompiled headers -- redefinition of class...
  • Previous by thread: Re: where should java librairies be set?
  • Next by thread: signal 5 (SIGTRAP) / libobjc.A.dylib / _objc_exception_set_functions
  • Index(es):
    • Date
    • Thread