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 > ok, can this be done? project builder question

ok, can this be done? project builder question
Thread Tools
Senior User
Join Date: Jan 2000
Location: davis, CA, USA
Status: Offline
Reply With Quote
Apr 26, 2001, 11:28 AM
 
Hi
I just wrote a simple Java FTP program using the terminal and 'javac' to compile and 'java' to run. I was wondering If I can compile this using the project builder. When i open up my file in the Project Builder, I dont see any options to 'build' or 'run'.

can this be done? If so, it would be really nice to type in project builder rather than the terminal.

thanks
jagga
     
jagga  (op)
Senior User
Join Date: Jan 2000
Location: davis, CA, USA
Status: Offline
Reply With Quote
Apr 26, 2001, 11:37 AM
 
also is there a way to pass in command line arguments using the 'run' command in project builder?

for ex.

java ftp ftpserver.com 2345

That is the command i use in terminal to execute my ftp program, giving it host address and port number.

thanks
jagga
     
Junior Member
Join Date: Dec 2000
Location: Houston, TX, USA
Status: Offline
Reply With Quote
Apr 26, 2001, 09:37 PM
 
I think the way to do it in project builder would be to create a new project (Java Application) and give it the same name as your main class. Then you can add your source file to the project and you should be able to compile and run it through PB. This is the general idea, i'm not sure if everything is exact, but play around with it. The point being is that i think you can only compile projects, not individual source files that are unrealted to any specific project.

Also, i haven't seen any way to add command line arguments when i run a java app from PB, although i have to admit i haven't looked very hard at all. I hope that helps!

mike
     
   
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:27 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