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 > Project Builder/Java/Multiple Targets & Execuatbles Nuttiness

Project Builder/Java/Multiple Targets & Execuatbles Nuttiness
Thread Tools
Dedicated MacNNer
Join Date: Jun 2000
Location: Eastern Washington (St. John/Cheney)
Status: Offline
Reply With Quote
May 29, 2002, 08:45 PM
 
Hello all,

I'm currently bashing my head against the brick wall in my dorm as a result of trying to get Project Builder to work the way I want it to for my latest Java project.

I'm developing a simple client/server system and there are several classes that are common to both, so I'd like to have my PB project set up with two targets: one for the client, and one for the server. This part works just fine; I can build either one and switch between them with the pop-up menu and all is well. I get the associated .jar files with the classes just fine.

The problem I'm having is getting them to actually run from within PB (like when I click the "Run" or "Build and Run" icons in the toolbar. I simply cannot get the executables in the project that PB creates to launch the java command line tool with the appropriate command line arguments to run the Java apps. When I create a new target, the executable in the project just has the target name set as the "path to executable" and I cannot change it. This is wrong...the target name is not supposed to be the executable to run, it should be /System/Library/Frameworks/JavaVM.framework/Commands/java or whatever.

Ok, I figure, I just go add my own custom executable that does what it should. Ok, that part works fine. But now PB will not keep the target and executable synchronized! It seems to be unable to associate one custom executable with one target and another executable with another target. AAAAAAHHHHHHHH!!!!!!!!! I don't want to have to manually change the executable each time I change the current target.

I'm now using the April 2002 Beta Developer Tools. I had this working at one point with PB 1.1.1 in the Dec. 2001 tools, but when I import that project into the new PB, it has the same problems...executables will not stay associated with the proper targets. And I don't particularly feel like uninstalling the Apr tools and reinstalling the Dec tools (though I know it's an option.)

Am I going about this the wrong way? Did Apple change the way Project Builder handles multiple targets/executables in the Apr 2002 tools? Is there some way to make this work and I am just overlooking it? Is this just a bug in the PB beta? Is it just a matter of "It's a feature, not a bug"?

(Phew...done venting...for the moment)

CyberDave
     
   
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 01:16 PM.
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