RMI + Eclipse + Mac OS X Snow Leopard

Hello,
Well the problem is this:
I'm developing an RMI app (IRC) using Eclipse under Mac OS X Snow Leopard, but I get ConnectException. I'm doing this locally and I'm sure the firewall is not rejecting the connection. Here's mi main method:
public static void main(String[] args)
System.setSecurityManager(new SecurityManager()
public void checkConnect(String host, int port) {}
public void checkConnect(String host, int port, Object context) {}
if (System.getSecurityManager() == null)
System.setSecurityManager(new SecurityManager());
try
IRCServer server = new Server();
IRCServer stub = (IRCServer) UnicastRemoteObject.exportObject(server, 0);
Registry registry = LocateRegistry.getRegistry();
registry.rebind(RMIRegistryName, stub); ///////EXCEPTION HERE
System.out.println("ComputeEngine bound");
catch (Exception error)
System.err.println("IRCServer exception:");
error.printStackTrace();
If I try to pass the argument -Djava.security.policy to the JVM from Eclipse it throws the ClassNotFoundException. I don't know what I'm missing :S
I read there's no need to create the stubs since java 1.5 and also a friend told me (I think he is on Linux) that Eclipse run his app (the same project) without problems :S.
Is there something I'm not doing to make this works from Eclipse? If not I think I'll have to do it without Eclipse :S
Edited by: 811821 on Nov 16, 2010 12:13 AM

The simple answer is to start the Registry inside your server JVM, with LocateRegistry.createRegistry(). Otherwise you have to supply a classpath argument to rmiregistry.exe with -J-Dclasspath=

Similar Messages

  • "Use system proxy settings" Not working on Mac OS X Snow Leopard

    When I change the network location or when I select "Use system proxy settings" on the connetion configuration dialog.
    Firefox is not using the proxy defined on the loction set on Mac OS X Snow Leopard.
    I usualy change from work to home, at work I've a proxy and at home I don't, and it's a bit annoying to have to change the proxy twice a day. So I tryed this feature, but It's not working for me.
    I've tryed also with Firefox 3.6 (I think) and didn't work either.

    I run it from eclipse, and on debug mode i checked the value of
    java.library.path, and it was ok.
    Any way, how can i do what you suggested on mac?It's just a command line argument, but there's no reason to add it if your
    java.library.path is ok. One of its componenents must be a directory where
    your shared lib is stored, that's all. BTW, the Mac is unix based isn't it?
    Shouldn't it be an .so file then? (just a wild guess)
    kind regards,
    Jos

  • Text messages in Safari are garbled on Mac Pro after Snow Leopard install

    When reading or composing my Yahoo mail text messages in Safari on my Mac Pro after Snow Leopard, the wording is very garbled. Looks like o's, s's, c's, some caps, with lots of spaces intermixed. Messages look ok on Firefox, on same machine. New messages and reading sent messages look ok on my MacBook and MB Air. When cutting and pasting into something else (like this window), the text looks fine. I can compose and send messages that look garbled, but the right words and letters go out. HTML messages look ok. Any clues for solution?

    I have this happening in bunch of different HTML pages. Here's a screenshot of the same page in Safari (Version 4.0.3 (6531.9)) and Mac OS X 1.6.1 side by side with Camino:
    https://dl.getdropbox.com/u/362958/miscwebimages/Screen%20shot%202009-09-22%20at%2018.35.47.png
    Camino renders the page correctly. Safari is really unusable with this problem. Tried switching to and from 64-bit mode in Safari, didn't help either.
    Message was edited by: Attila Szegedi

  • Can the new Mac Mini boot Snow Leopard from an external hard drive?

    I currently boot my 2009 Mac Mini from a FW800 external drive with 10.6.8. If I just plug my external drive into a new 2011 Mac Mini, will it boot into Snow Leopard if I set it as the startup disk or will I get a kernel panic?

    I bought a 2011 Mac Mini, which came with Lion installed. I thought maybe I could repartition it and have a Snow Leopard partition. So I repartitioned it (500gb split into two 250gb partitions). I named the new partition "SnowLeopard" just to make it easy for me to tell the difference.
    I attached the external DVD and put in a Snow Leopard installer disc, holding down the C key so it would boot and install from that, but it just spun for awhile. Doesn't appear to work.
    Then I read somewhere else that someone had managed to clone a copy of Snow Leopard onto an external drive and boot from that. In their situation they were talking about a MacBook, but the principle seemed sane.
    So I rebooted, holding down the T key to put the Mac Mini into Target hard disk mode, and attached it via Firewire to another MacMini (circa 2008 or so, not sure of year, but it was upgraded last year to Snow Leopard and has been upgraded along and along). Then I used Carbon Copy Cloner to copy Snow Leopard (that is, the entire hard disk-- System and all applications and data) to my newer Mac Mini's "snow leopard" partition.
    For yucks, when it was done cloning, I restarted the older Mac Mini, and had it boot from the newer Mac Mini's snow leopard partition--- it worked! To make it easy to tell the difference, I changed the desktop background to something completely different. I think I tried booting from Lion but I can't remember if that worked.
    Then I rebooted the newer Mac Mini, which booted up in Lion, of course. Going into System Settings, I changed the startup disk to the "snow leopard" partition, and rebooted, and it booted up in Snow Leopard.
    I have yet to test the applications on the Snow Leopard partition. Another problem has arisen.
    Because with both of the Mac MInis being active on the network, they both had the same computer and user name. So I renamed the newer Mac Mini to something completely different, and changed the password.
    Unfortunately, now I cannot change any other setting in the System Settings that requires a password. While the newer Snow Leopard lets me log in with the new user and new password, whenever I try to click the "lock" icon to change something, I'm prompted for a username and password. Apparently this is some different username and password than either the new or old username/password.
    I've tried various combinations of both: new user/old password, old user/new password, old user/old password, etc.
    So if you do what I've done, be careful about changing the username and password on your cloned computer. I think it may be wiser to create a new user and then delete the old cloned users. I may just have to re-clone the old Mac Mini to the new one again.
    If anyone has any ideas about this password conundrum, please pass along!

  • How do I install my old my 2010 Mac book pro/ Snow Leopard 10.6.3 program on a power Mac G5 Desktop

    How do I install my old my 2010 Mac book pro/ Snow Leopard 10.6.3 program on a power Mac G5 Desktop

    A PowerPC G4 or G5 can't be upgraded past 10.5.8. If you're trying to install an application and not a newer Mac OS X version, check its system requirements and use the original disk or download.
    (106964)

  • I have Mac OS X Snow Leopard 10.6.8; I am trying to install Mac OS X Lion

    I have Mac OS X Snow Leopard professional 10.6.8 update
    I am trying to install Mac OS X Lion.
    I get an error message: other users are logged on.
    I have three accounts: William G Cullen; Guest; williamgcullen.
    I have tried to delete williamgcullen, but it asks for a password; I have tried every password I know and can't open it. I also did not set up this account.
    how do I solve this problem?
    [email protected]

    Go to System Preferences > Users & Groups. If the lower left, there is a lock icon. Click on it and type in your password to make changes.
    Then, select the account you want to remove and press the - symbol.

  • Is MAC OS X v10.6.8 same as MAC OS X Snow Leopard. Since i want to download MAC OS X LION can it be downloaded on my mac which has MAC OS X v10.6.8 ??

    Is MAC OS X v10.6.8 same as MAC OS X Snow Leopard. Since i want to download MAC OS X LION can it be downloaded on my mac which has MAC OS X v10.6.8 ??

    Yes, assuming you can run Lion, & can deal with no more Save or Save As... functions...
    Lion/101.7 System requirements
        •    x86-64 processor (Macs with an Intel Core 2 Duo, Intel Core i3, Intel Core i5, Intel Core i7, or Xeon processor.)
        •    At least 2GB of memory, (I say 4GB)
        •    Latest version of Mac OS X Snow Leopard (10.6.8), with the Mac App Store installed
        •    At least 4GB of disk space for downloading, (I say 40GB at least)
    Like Snow Leopard, Lion does not support PowerPC-based Macs (e.g., Power Macs, PowerBooks, iBooks, iMacs (G3-G5), eMacs).
    Lion also does not support 32-bit Intel Core Duo or Core Solo based Macs. Rosetta is no longer available in Lion, which means Lion no longer supports PowerPC applications.

  • I can't install Mac OS X Snow Leopard on my Mac mini!

    Hi,
    I have a Mac mini 2007, with OS X 10.5.8
    I want to install Mac OS X Snow Leopard, but i can't. I erased the hard drive with the installation disc of leopard and then i tried boot snow leopard. After a few seconds it said: "You can't install on this computer. What can i do?
    My Mac mini's details:
      Model Name:          Mac mini
      Model Identifier:          Macmini2,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          1.83 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache:          2 MB
      Memory:          1 GB
      Bus Speed:          667 MHz
      Boot ROM Version:          MM21.009A.B00
      SMC Version (system):          1.19f2
    Please help!

    Where did you obtain the Snow Leopard DVD? If it is aDVD from another computer, it will not work. You will need the retail version of the DVD as shown below.
    http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard

  • I am unable to sync my iPhone4 iCal to my Mac iCal. Snow Leopard does not support the Cloud. What do I do?

    I am unable to sync my iPhone4S iCal to my Mac iCal. Snow Leopard is my OS and it does not support the cloud. What do I do?

    To makeuse of iCloud you will have to upgrade your Mac to Lion or Mountain Lion, provided it meets the requirements.
    The requirements for Lion are:
    Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of memory
    OS X v10.6.6 or later (v10.6.8 recommended)
    7GB of available space
    To purchase it you will have to ring Apple at the number given at the bottom left of this page.
    The requirements for Mountain Lion are listed here:
    http://www.apple.com/osx/specs/
    It is available from the Mac App Store (in Applications).
    You should be aware that PPC programs (such as AppleWorks) will not run on Lion or above; and some other applications may not be compatible - there is a useful compatibility checklist at http://roaringapps.com/apps:table

  • After upgrading to mac os x snow leopard iphoto slide show will not play . why is this ?

    AFTER UPGRADING TO MAC OS X SNOW LEOPARD I CANNOT USE IPHOTO SLIDE SHOW. WHAT HAS HAPPENED?

    AFTER UPGRADING TO MAC OS X SNOW LEOPARD I CANNOT USE IPHOTO SLIDE SHOW. WHAT HAS HAPPENED?

  • Can I run Adobe CS, CS3, CS4, and CS5 software on Apple Mac upgrade forom Snow Leopard to Maveric OS X ?

    I would like to know if I can run my older Abobe CS, CS3, 4, 5 on an upgrade from Mac OS X Snow Leopard  to OS X Mavericks ?

    Might work; might not.  Legacy apps (CS2, 3, 4) that weren't built to run on modern operating systems may have trouble with Mavericks.   I think you'll be OK with CS5, 6 and CC.
    Nancy O.

  • Mac mini and Snow leopard wireless problems

    Hi,
    I got mac mini running snow leopard to our office from another branch, this is recently brought mac mini with snow leopard installed,
    But the problem is I cannot connect to internet using wireless connections. Reading other posts i found out that there is a snow leopard issues with connecting to wireless network, but this problem seems to unique. When i connect to wireless network it shows me that, mac mini is connected to wireless network but doesn't take ip address from dhcp , its show some self assigned ip which is 169.254.226.163, but my network address are 192.168.1.*, ethernet works fines,but in wireless even when i gave manual ip , it connect but i cannot connect to internet neither i can ping to router.
    I tried various methods suggests in forms, like deleting network preference files in /Library/Preferences and ~/Library/Preferences and also deleting network connection and adding new one, even updating to 10.6.3 but nothing works for me,
    My macbook nicely connected to wireless and get ip, even PC connect nicely this issue is only with Mac mini
    Could have suggest me how can i fixed this, Thank you very much,
    Best Regards,
    Waruna.
    Message was edited by: warunacds

    Thanks DaddyPaycheck for your initial response. Before I jump onto the phone with Comcast couple of questions that I have for clarification purposes:
    1) Are you implying that I must link my blabla.com address to that static IP address through my Domain Provider? See following example:
    Record Type Record Host Record Answer TTL
    A *.blablat.com >>Static IP<< 300
    2) The current IP I have been given 60.172.151.254, why is that not static or how do you know it is not static?
    3) When executing the command host in terminal for this IP address it returns the following: c-60-172-151-254.hsdl.co.comcast.net which coincidentally is the same as primary DNS it recommended during the initial configuration of the Mini Server. What does this mean? When I enter this in Safari it results in 'Safari can't connect to server'.
    4) Executing the same command for my domain name 'blabla.com' it results in my 'internal' IP address '1.0.10.9'.
    Thanks in advance for any clarification you can provide,
    Tiest.

  • PLEASE HELP ME - I am not very tech savy and I thought I hadn't installed Mac OS X Snow leopard .After I installed it I went to tether with my Iphone but Itunes wont even recognise it and no one will help me ;-(

    I am not very tech savy & I thought I hadn't installed Mac OS X Snow leopard .After I installed it I went to tether with my Iphone but Itunes wont even recognise it and no one will help me

    krystiefrommorayfield wrote:
    I am not very tech savy & I thought I hadn't installed Mac OS X Snow leopard .After I
    installed it I went to tether with my Iphone but Itunes wont even recognise it and no one will help me
    You connect your iPhone to iTunes through the Sync Process...
    See Here
    Syncing with iTunes
    From Here
    http://www.apple.com/support/iphone/syncing/
    http://www.apple.com/support/iphone/

  • Problem in Formatting using Mac OS X Snow Leopard DVD (FULL)

    Hi all
    I've just bought a Mac OS X Snow Leopard DVD -Full- (not upgrade)
    When I boot from the installation DVD nd then
    after few minutes the screen turns to black nd I can't do anything!! (MacBook Pro 2009)
    I tried using my iMac nd the installation DVD works smooth nd fine!
    I don't know why MBP is not processing the installation steps nd the screen suddenly turns to black!
    Waiting ...
    Thanks

    Make sure your MacBook pro is not too new for the disk in question.
    Find the serial number for the MacBook Pro, and look at the three characters labelled ABC below, and tell us the numbers they are represented by:
    xxABCxxxx
    Don't give us the full serial number. The x can be any letter or number.
    Then tell us the 10.6 version labelled in fine print on the DVD.
    That will tell us if the Mac is too new for your Snow Leopard Disc, and you need to use the original MacBook Pro discs that came with your Mac to install 10.6.
    Message was edited by: a brody

  • Getting problem while installing Snow Leopard (10.6.3) on my Mac Mini. The following issue is showing :  "mac os x snow leopard cannot be installed on this computer"  And My Mac Configuration details:  Model Name: Mac Mini Model Identifier: Macmini2,1

    Getting problem while installing Snow Leopard (10.6.3) on my Mac Mini. The following issue is showing : 
    "mac os x snow leopard cannot be installed on this computer" 
    And My Mac Configuration details:  Model Name: Mac Mini Model Identifier: Macmini2,1
    Intel Core 2 Duo
    1.83Ghz
    l2Cache: 2mb
    Memory : 2GB
    Bus Speed: 667MHz
    Please help me......
    Thanks

    Actually i have Mac OS X 10.5.4 DVD, I need to upgrade it to Snow Loepard(OS X 10.6)...
    Please suggest me what to do???
    Thanks

Maybe you are looking for

  • Acrobat v9 Pro and Standard Runtime Error!

    My company recently got in the CD's from Adobe for Acrobat 9 Professional and Acrobat 9 Standard. I installed Acrobat 9 Pro on one of our systems. The system got a runtime error every time Adobe Acrobat started citing "C:\Program Files\Adobe\Acrobat

  • I have a problem with BRIDGE on CS5

    After making changes on my pictures in Camera RAW I can't see these adjustments on the miniatures in BRIDGE. Can someone help?

  • Any standard function module to read data from a cube

    Hi, I want to read data from a cube say XYZ, into an internal table. Is there any standard function module to do this? If so can anyone plz tell me what change should i make in the function module for my requirement. Regards BW Fresher.

  • Customize Viewer Login page

    Hi All, We are trying to Customize Viewer Login page by defaulting 'Oracle Applications' in the Connect To dialog box. Now it is 'OracleBI Discoverer'. Can anyone help me with that? I am not very familiar with uix scripts. I went into ViewerConnectio

  • Hi. How I can add russian keyboard in to Firefox OS? I am using OS on nexus 4. Version 1.1

    Hi. How I can add russian keyboard in to Firefox OS? I am using OS on nexus 4. Version Firefox OS 1.1 Instruction to install http://www.addictivetips.com/android/dual-boot-android-ubuntu-touch-or-firefox-os-on-nexus-4-7-with-multirom/ Thanks.