Trying to follow RMI trail and failing

I've read through a number of postings here in an effort to try to see a commonality; however, I still can't see what I'm doing wrong.
I am not a new Java pgm'r, but RMI is brand new to me. I went entirely through the trail:
http://java.sun.com/docs/books/tutorial/rmi/index.html
I followed everything as closely as I could and got as far as "Running the Example Programs", and that's where I fell down. I hope all this info does NOT intimidate anyone from reading further, but here goes:
1. All my 'server' stuff looks like this:
C:\home\msdwjj\public_html\classes
                              |
                              |___client   <dir>
                              |     |___________Pi.class 
                              |___compute  <dir>
                              |     |___________Compute.class
                              |     |___________Task.class
                              |___engine   <dir>
                              |     |___________ComputeEngine_Stub.class
                              |     |___________ComputeEngine_Skel.class
                              |___META-INF <dir>
                              |     |___________MANIFEST.MF
                              |___compute.jar
                              |___java.policy
                              |___startRMI.bat
                              |___unpack.bat2. All my client stuff is like this:
C:\MyMoveSubDir\Mysendrecv\Billsdir\RMI\ComputeEngine
                                        |__compute <dir>
                                        |   |__Compute.java
                                        |   |__Compute.class
                                        |   |__Task.java
                                        |   |__Task.class
                                        |__engine  <dir>
                                        |   |__ComputeEngine.java
                                        |   |__ComputeEngine.class
                                        |   |__ComputeEngine_Stub.class
                                        |   |__ComputeEngine_Skel.class
                                        |__client  <dir>
                                        |   |__ComputePi.java
                                        |   |__ComputePi.class
                                        |   |__Pi.java
                                        |   |__Pi.class
                                        |__compute.jar
                                        |__javacjar.bat
                                        |__javacrmi.bat
                                        |__javajarClient.batAll of the above are the result of running the batch files discussed below; and the contents of all of these modules is exactly as posted in the RMI trail I mentioned above. I changed NOT A SINGLE LINE OF CODE, including the package statements.
The contents of all the server batch files is as follows:
1. startRMI.bat:
set CLASSPATH=
start rmiregistry
pause
set CLASSPATH=C:\MyMoveSubDir\Mysendrecv\Billsdir\RMI\ComputeEngine;c:\home\msdwjj\public_html\classes\compute.jar
pause
java -D java.rmi.server.codebase=file:/c:\home\msdwjj\public_html\classes/ -D java.rmi.server.hostname=xxxx.xxxx.xxx -D java.security.policy=java.policy engine.ComputeEngine
pause2. unpack.bat:
jar xvf compute.jar
pause3. The contents of the java.policy file is:
grant {
    permission java.net.SocketPermission "*:1024-65535",
        "connect,accept";
    permission java.io.FilePermission
        "c:\\home\\msdwjj\\public_html\\classes\\-", "read";
};The contents of all the client batch files is as follows:
1. javacjar.bat:
javac compute\*.java
pause
jar cvf compute.jar compute\*.class
pause2. javacrmi.bat:
set CLASSPATH=C:\MyMoveSubDir\Mysendrecv\Billsdir\RMI\ComputeEngine;c:\home\msdwjj\public_html\classes\compute.jar
pause
javac engine\ComputeEngine.java
pause
rmic -d . engine.ComputeEngine
pause
copy engine\ComputeEngine_*.class c:\home\msdwjj\public_html\classes\engine
pause3. javacjarClient.bat:
set CLASSPATH=C:\MyMoveSubDir\Mysendrecv\Billsdir\RMI\ComputeEngine;c:\home\msdwjj\public_html\classes\compute.jar
pause
javac client\ComputePi.java
pause
javac -d c:\home\msdwjj\public_html\classes client\Pi.java
pauseThe contents of compute.jar are:
> Compute.class
> Task.class
> Manifest.mf
I get all through compiling and when I get to actually try to run this, as per the instructions (and via the startRMI.bat file) I get this:
C:\home\msdwjj\public_html\classes>set CLASSPATH=
C:\home\msdwjj\public_html\classes>start rmiregistry
C:\home\msdwjj\public_html\classes>pause
Press any key to continue . . .
C:\home\msdwjj\public_html\classes>set CLASSPATH=C:\MyMoveSubDir\Mysendrecv\Bill
sdir\RMI\ComputeEngine;c:\home\msdwjj\public_html\classes\compute.jar
C:\home\msdwjj\public_html\classes>pause
Press any key to continue . . .
C:\home\msdwjj\public_html\classes>java -D java.rmi.server.codebase=file:/c:\hom
e\msdwjj\public_html\classes/ -D java.rmi.server.hostname=xxxx.xxxx.xxx -D j
ava.security.policy=java.policy engine.ComputeEngine
Exception in thread "main" java.lang.NoClassDefFoundError: java/rmi/server/codeb
ase=file:/c:\home\msdwjj\public_html\classes/
C:\home\msdwjj\public_html\classes>pause
Press any key to continue . . .The C:\jdk1.3.1_04\bin\rmiregistry.exe window does come up.
So, if you've gotten this far, thank you very much. I hope someone might be able to help me with this. Thanks in advance.
~Bill

boZZi,
May I ask you another question? ... or for that matter anyone else who can offer another helping hand.
I changed my host name (stupid mistake, and I did see that one, but I promised the dukes and so there it is). So now my Server side is running and it's at 'ComputeEngine bound'.
But the last part of this tutorial is extremely confusing to me. It is telling me the following, and you can see it yourself at this link:
http://java.sun.com/docs/books/tutorial/rmi/running.html
... Under the section: 'Start the Client'. There it provides the following instructions:
"Once the registry and the engine are running, you can start the client,
specifying The location where the client serves up its classes (the Pi
class), using the java.rmi.server.codebase property As command line
arguments the host name of the server--so that the client knows where
to locate the Compute remote object--and the number of decimal places
to use in the  calculation The java.security.policy property, used to
specify the policy file that contains the permissions you intend to
grant specific code bases First, set the CLASSPATH to see jones's
client and the JAR file containing the interfaces. Then start the
client on another host (one named ford, for example) as follows:
Microsoft Windows:
set CLASSPATH c:\home\jones\src;c:\home\jones\public_html\classes\compute.jar
java -Djava.rmi.server.codebase=file:/c:\home\jones\public_html\classes/
     -Djava.security.policy=java.policy
     client.ComputePi zaphod.east.sun.com 20
UNIX:
setenv CLASSPATH /home/jones/src:/home/jones/public_html/classes/compute.jar
java -Djava.rmi.server.codebase=http://ford/~jones/classes/
     -Djava.security.policy=java.policy
        client.ComputePi zaphod.east.sun.com 20"1st off, on my Solaris box, there is no setenv command. 2nd of all, I realize that here the auther is suggesting using an HTTP URL for the Unix OS, and a file URL on the MS OS; but why is the MS FILE URL pointing in the 'codebase' to a directory structure - file:/c:\home\jones\public_html\classes/ - that exist on the server, while on the Unix OS it's pointing to a directory structure on the Client - http://ford/~jones/classes/ ? ... I say that because the instructions are to start the Client from another hostname, and he used as an example 'ford'.
This particular statement makes no sense to me:
"The location where the client serves up its classes (the Pi class), using the java.rmi.server.codebase property."
... Why would the server.codebase include information on where the client's classes are?
It's my understanding that the Client programs only - in this case Pi.class and ComputePi.class - exist on the Client. But this tutorial is not particularly clear it seems. What am I missing here ... any ideas? Thanks in advance.
~Bill

Similar Messages

  • New iphone will not sync w computer. Says computer not authorized for purchases. I have tried the following. Uninstall and reinstall iTunes. Authorize comp(already authorized). Backed up phone to computer. Please help

    New iphone will not sync w computer. Says computer not authorized for purchases. I have tried the following. Uninstall and reinstall iTunes. Authorize comp(already authorized). Backed up phone to computer. Please help

    Hello Tyeary7,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Have a nice day,
    Mario

  • Tried to make a subnet and failed, now i can't re-connect to the internet

    i tried to extend the current network with my airport extreme, but the main router was not a mac product so it did not work. now i just want to re-connect with the main router so i can use the internet on my computer. the main network is still up and running for other people, i can access the network but am unable to use the internet.
    anyway to fix this? i already tried to restart the router, and the modem. unfortunately both attempts were unsuccessful.
    -thanks in advance

    Ok, you will not be able to extend the wireless range of the main router with your AEBS. What can be done is that you can connect the AEBS directly to this router using an Ethernet patch cable. If this is not the configuration that will work for you, then you will have to use a product that will perform this function from the same vendor as the main router.
    If your Mac is unable to get Internet access wirelessly from the main router then there may still be something amiss with the AirPort settings on your Mac. Like the Mac's built-in Ethernet, the built-in AirPort also must be configured as a DHCP client in order to "automatically" get the IP information from the main router.

  • ITunes trying to sync old podcasts (and failing!)

    I have a 30GB video iPod. Trying and it failing to sync with iTunes on MacBook Pro. Same problems happen with new shuffle so would seem to be an iTunes problem.
    First of all it says some items in the iTunes library including xxxx were not copied because they could not be found. It then gives a list of OLD podcasts that I can't find in iTunes or in finder.
    Is there a corrupt file that tells iTunes to look for old podcasts to sync with?
    It gets so far and then says "attempting to copy to the disk yyyyyy failed. The disc could not be read from or written to.
    However it is NOT an iPod problem. The same iPod will sync fine with iTunes on a windows PC and a Shuffle suffers the same problem with this MacBook Pro.
    TIA
    Dermot

    Welcome to the Palm Support Community Emily, but I'm at a loss as to what you are asking... 
    What exactly is "the new operating system"?   Windows 7?   If so, what bit depth is it?  32bit or 64bit?
    What is "that file" you're referring to that you think is a .dll?   Your Contacts and Calendar data?
    What is "Outlook 7"?   Microsoft Outlook 2007?
    If indeed you've just obtained Windows 7, and it's the 64bit version, there is a way to sync the TX via a wireless method - either BlueTooth or Wifi.
    Please read the thread I wrote on "How to sync the TX and Vista64" at the top of this section.  It's very similar to Windows 7.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Is it possible to get my NYC Department of Education email on my iPhone? I found an old discussion from a few years ago, tried to follow the advice and it wouldn't work.

    I found a discussion from a few years back that had some varied advice on how to do this, but when I tried all the methods listed it still wouldn't work on my phone. I've also tried things I found on other sites. I'd love to be able to get my work email on my iPhone as we are doing blended learning this year and it's better not to give students my personal email.

    I'll try it, but even so i would be at a loss of 5,000+ photos and videos, probably around 250 notes, and many of my contacts/texts.

  • Why can't I use the Glowing Edges on a photo? I am trying to follow a tutorial and when it gets to using that filter it stays grey and wont allow me to use it. It is really frustrating. I have changed images several times hoping it would change things but

    I am following a tutorial in CS5 to learn how to make an image look like a drawing. When we get to the part where I am supposed to use the glowing edges filter it will not allow me to use it. why? I need to access it, how can I get around it?

    Ask in the forum for whatever product you are talking about and by all means do provide some proper technical info like what program you actually mean, system info, document info etc..
    Mylenium

  • Printer trying to install under other devices and fails

    OK, this is an annoying issue.
    Probook 4730s with Windows 7 Pro64
    HP OfficeJet 8500 A909g all in one wireless.
    EVERYthing is working just FINE except everytime I start the computer for some reason the 'other devices' section of Device Manager tries to install printer software and fails, then leaving numerous/repeating versions of OfficeJet Pro 8500 A909g failed software attempted installs. 
    It happens everytime I start the laptop and it's very annoying.
    Simple question.  How can I stop this from happening?
    Everything else in the system including full use of the printer/scanner/wireless or hardline hookup is AOK.
    Thanks in advance.

    Any other takers? 
    I suspect the printer is being picked up by Windows in the startup process and is being identified as an 'other device.'  It's probably also causing a small series of error messages in the event viewer i.e. an IP address not being provided in the allowed timeframe (which the printer is not able to provide through it's wireless signal) and the other 3 error processes associated with that failure. 
    When the machine boots it then tries to identify the source of the problem, which is the 'other device,' the HP printer.  And then Windows unsuccessfully tries to install software under 'other devices' where printers don't belong and fails, leaving a trail of HP printers in it's wake under other devices.
    Surely there is a simple cure for this annoying (and currently only) issue I have?

  • I am trying to install a trail for InDesign CC to finish a project soon. I downloaded Creative Cloud, the app is in my folder, but it won't open and when I try to download InDesign an error pops up saying Adobe is trying to install malware.

    I just installed Creative Cloud in order to download a trial for InDesign. I have the app icon for CC, but it won't open. When it was in my toolbar (on a mac) it just sat there loading for about 15 minutes. I tried restarting it but it won't open at all now. I also tried downloading an InDesign trail and it won't open at all. When I click for it to download an error message pops up saying Adobe is trying to instal malware and asks me if I want to continue. When I say yes, it doesn't do anything. I have a brochure that needs to go to the client by 4pm today! EEK!

    Sydneybling it does sound like your security software is interfering with the process of installing and utilizing your Adobe Creative applications.  I would recommend that you try temporarily disabling your security software and utilizing the directions listed at Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html to install InDesign CC.

  • Installed 3 times and failed.

    Tried installing moutain loin 3x and failed every time, always had a disk error and needed to reboot. Stuck in a rebook mood....

    Hi and welcome to the Skype Community,
    Did you actually submit the recovery form with your information? Just answer as many answer as much detailed as you can and if the information is correct it might be enough information to restore access for you.
    Additionally can you please send me the Skype account name of your old Skype account so I can check with Skype CS the status of your account and recovery?
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • Jabber for Windows - periodically tries to re-install and fails

    Jabber 9.1
    CUCM 7.1.3
    Windows 7 32 bit
    Cisco Presence   8.0.2.10000-30
    Jabber for windows - periodically tries to re-install and fails. After install Jabber works for awhile but then when trying to open another program(Outlook, IE Explorer) it tries to re-install.  If I go to the directory where the install files are and do repair it works.  This seems like a conflict with another application.
    I see this in the Windows application event log:
    Detection of product '{4EB9D7DD-65B5-44ED-B877-CE3EF9B4530F}', feature 'Cisco_Jabber_Files', component '{7CB949BE-2270-4992-9C4C-8FDDB90F6FE2}' failed. The resource 'C:\Program Files\Cisco Systems\Cisco Jabber\JabberMeeting\DesktopShare\atgpcdec.dll' does not exist.
    Jabber 9.1
    CUCM 7.1.3
    Windows 7 32 bit
    Cisco Presence   8.0.2.10000-30

    Hi,
    Do you have WebEx Productivity plugin installed on the  machine? I can reproduce this problem after exiting Jabber, creating a  One-click meeting from Outlook and restarting Jabber. Please provide  further information to help me open a defect.
    - What was the version of Jabber on this machine prior to 9.1.0?
    - What is the version of the WebEx productivity tool plugin (if it is installed)?
    - Is there a particular sequence that you can follow to reproduce it everytime?
    Thanks,
    Maqsood

  • I have tried and failed to copy my iTunes library and playlists from my Windows 8 desktop to my Windows 7 laptop using an external hard drive. Can it be done? Help would be appreciated.

    I have tried and failed to copy my iTunes library and playlists from my Windows 8 desktop to my Windows 7 laptop using an external hard drive. Can it be done? Help would be appreciated. I have followed instructions found online but the library of music doesn't pull in.  Thanks!
    Nate

    Migrate an iTunes library from one computer to another
    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entireiTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one, with ratings, play counts, playlists etc. preserved. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd normally recommend method 1 since it establishes an ongoing backup for your library and unlike copying with Windows Explorer the process can be resumed if it is interrupted and it will continue to the next item if there are any read/access errors.
    Note if you have iOS devices and haven't moved your contacts and calendar items across then you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See Make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then seeRecover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • HT1926 Trying to re-install iTunes and the message "Apple mobile device failed to start. Verify that you have sufficient privileges to start system services." But I don't know what to do? Please can someone help, I'm not the most technologically advanced

    Trying to re-install iTunes and the message "Apple mobile device failed to start. Verify that you have sufficient privileges to start system services." But I don't know what to do? Please can someone help, I'm not the most technologically advanced person.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • So i had itunes on my computer it tried to do an update and told me i didnt have the authority to do so...deleted it and tried to reinstall and i keep getting a message saying service "apple mobile device" failed to start verify that you have sufficient

    so i had itunes on my computer it tried to do an update and told me i didnt have the authority to do so...deleted it and tried to reinstall and i keep getting a message saying service "apple mobile device" failed to start verify that you have sufficient privleges to do so...what does this mean?

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • After iCloud backup restore, how can I prevent Podcasts from constantly trying (and failing) to download podcast episodes no longer in iTunes store?

    I recently turned my iPhone in to a Genius bar and had it repaired under the iPhone 5 Sleep/Wake Button Replacement Program. Congruent to that repair, I had to do a factory reset (contetn and settings). Once I got it back, I restored from iCloud backup. When I re-opened the podcats app, it began to redownload all old episodes I had on the iPhone before.
    Of these many podcasts, 5 episodes were from 2 defunct podcasts no longer on the iTunes store. It gets download errors on these episodes. I can get it to stop retrying (and failing). I have tried canceling the downloads. I have tried deleting the episodes (and the podcasts). I have tried deleting them then canceling the downloads. I have tried marking them as played and canceling the downloads. I cannot get them to be purged from the catalog and not try to redownload.
    Outside of someone with access to the iCloud backend who can remove the associations, I don't know if anyone here can help me. But I am open to suggestions.
    Thanks.
    (also perhaps of relevance, the period between the wipe and restore included the release of the 2.0 app )

    Hello DonaldGuy,
    It sounds like you have some podcast subscriptions that are constantly trying to download but they are not in the iTunes Store anymore prompting an error message. You can use the edit button in the susbcriptions list to delete the subscribed podcasts in question, to prevent the error messages from happening:
    Podcasts at a glance
    http://help.apple.com/iphone/7/#/iphbaeb5b5cb
    Then I would backup to iCloud to update the most current iCloud backup to reflect this:
    Back up to iCloud
    If you're using iCloud, it can automatically back up your data if you've chosen this option. You can verify your iCloud backup and make sure that it's up to date by following these steps:
    Tap Settings > iCloud > Storage & Backup.
    Turn on iCloud Backup if it's off.
    Tap Back Up Now.
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • I m trying to download an application and receive the following message: "your request cannot be completed". What can b the problem???

    I m trying to download an application and receive the following message: "your request cannot be completed". What can b the problem???

    Your payment method may be failing. The app may be in a transitional state (not currently available for purchase).

Maybe you are looking for