Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How do I move a Java project into Xcode?

How do I move a Java project into Xcode?
Thread Tools
Professional Poster
Join Date: Oct 2001
Status: Offline
Reply With Quote
Aug 1, 2005, 12:23 AM
 
Ok, I have a massive project I've been editing using jEdit. Today I thought maybe I'd try editing it in Xcode. So I've spent over an hour now trying to get my files into an Xcode project and have it compile and build my jar file with my ant build.xml script, but to no luck. For a company that touts ease of use, its development studio is one of the most non-userfriendly things I've ever seen. That aside though, could someone help me out?
     
Senior User
Join Date: Feb 2001
Location: Deer Crossing, CT
Status: Offline
Reply With Quote
Aug 1, 2005, 02:39 PM
 
Create a new Java project. Now I'm not exactly sure what the heading is called but I believe it's called "Files". Right-click (or CTRL+click) "Files", then select "Import existing files". A file open window will come up. Navigate to the directory with your source files, highlight and click OK/Open. Another screen will come up asking if you want to copy the files into your project directory. Check the box if this is what you desire.

I've only done Obj-C coding in XCode, I usually use (believe it or not) bluej for Java stuff.
20" iMac G5! :D AND MacBook 1.83GHz!
Canon Digital Rebel Kit + 75 - 300mm lens. Yum Yum! :D
Check out my OS X Musical Scales program
     
Professional Poster
Join Date: Oct 2001
Status: Offline
Reply With Quote
Aug 1, 2005, 03:15 PM
 
Well yeah, that's what I was doing, but then I had to deal with the existence of "Test" targets and whatnot, and an ant file that was not mine... Sure I could edit that, but I'd like to just create an empty project and put all my stuff into that. Why does Xcode make this so difficult? (I hate the way Xcode does targets... why is there GCC information there when I want just javac?? How do I set it to use javac??)
     
Professional Poster
Join Date: Oct 2001
Status: Offline
Reply With Quote
Aug 1, 2005, 10:16 PM
 
Ok, I think I've figured it out. You create an "empty ant project", right-click, add your files to it, and then double click on the target, and under "Build Tool Configuration" set the Directory to the directory that contains your build.xml file. That should do it (worked for me).

Edit: One more thing: I personally find it easier to not select the checkbox to copy the files over. I just let Xcode create virtual representations of those files, and edit the current ones I have directly.
(Last edited by itistoday; Aug 1, 2005 at 10:39 PM. )
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:23 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2