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 > Java RMI with Project Builder

Java RMI with Project Builder
Thread Tools
Mac Elite
Join Date: Oct 2000
Location: Edinburgh, Scotland
Status: Offline
Reply With Quote
Apr 10, 2002, 10:09 PM
 
Does anyone know how to use RMI in PB? I can't figure out where to tell PB to build the stub files.

My code works fine if I compile on the command line with the following:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier> javac Controller/*.java
rmic Controller.CATSImpl
java -Djava.rmi.server.codebase=http:<font color = brown>//<font color = blue>192.168</font>.<font color = blue>0.151</font>/~mark/CATS/ -Djava.security.policy=$HOME/Sites/CATS/policy Controller.CATS</font>
</font>[/code]

The third line in the above isn't important (that's just how I run the final thing), what I would like to know is where in the active target do I include the rmic command and how do I tell PB to add the resulting stub classes to the .jar file so that the rmiregistry can find them at runtime?

Thanks for your help.
ClamXav - the free virus scanner for Mac OS X | Geobunny learns to fly
     
Mac Elite
Join Date: Oct 2000
Location: Edinburgh, Scotland
Status: Offline
Reply With Quote
Apr 13, 2002, 09:58 PM
 
No-one got any idea how to do this then? The other problem is getting the command line arguments into JAVA instead of my program. In the PB target area there's a section under "Executables" for "Arguments", but that only seems to pass them to my program...that's if ProjectBuilder doesn't give an internal error beforehand!

Anyone got any suggestions at all? I'm currently having to compile and run on the command line with a combination of .sh and makefiles and it's really getting annoying. Especially when I don't know how to use the command line java debugger
ClamXav - the free virus scanner for Mac OS X | Geobunny learns to fly
     
   
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:43 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