JAVA RMI Help Please

Hi
I have an client
- Client.java
and two servers
- ServerOneInterface.java
- ServerOneImpl.java
- ServerTwo1Interface.java
- ServerTwoImpl.java
The client can communicate with the servers fine, but how do i make the servers communicate with each other? What is the idea between making the servers communicate with each other?
Thanks

why not use the same concept and make each server behave as a client of the other...

Similar Messages

  • Simple java question, help please

    please help
    -i am just starting out in java and im havin an early problem. Im trying to run a small java script from a commant prompt but im getting the following error after i enter this command at my prompt
    c:\javatest>javac HelloARP.java
    javac is not as an internal or external command, operable program or batch file.
    when i enter
    c:\java -version
    i get the following message: registry key software\javasoft\java runtime enviornment\current version has value of 1.1 but 1.4 is requiured
    error: could not find java.dll
    error: could not find java 2 runtime enviornment
    -im sure this is a simple error on my part. all im trying to do is run my first lil program that i saved in notepad, its only 5 lines long. here is the lil test program im trying to execute
    class HelloARP {
    public static void main (String[] arguments) {
    System.out.println("What's good ARP?");
    - all responses and help are welcomed. Thank you ahead of time for anyone that can help me get started.

    Hi
    First of all uninstall your current JDK installation, if you can get to the registry delete the registry entries for the old version of java which was there on your machine.
    Now do a fresh install of your j2sdk1.4.1, make sure that you will install the JRE with the J2SDK1.4.1.
    Once you are done, set your classpath in autoexec.bat if you are using Windows 95/98
    or set your environment variables if you are using Win NT/2000/XP.
    If using solaris or other unix flavors see the included installation instructions provided.
    Let me if you face the same problem.
    Thanks
    Swaraj

  • I grab a null frame.  Can a Java genious help, please?

    Hello. I am a high school student working on a science fair project. Right now I am using JMF to grab a frame from my ATI TV Wonder USB. The code below accesses the TV Wonder but it seems like I get a null frame because I have put a if statement in the code and it says I have a null image there. Can someone please help me. Thank you in advance
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.text.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.media.*;
    import javax.media.format.*;
    import javax.media.util.*;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import javax.media.control.FormatControl;
    public class Cell extends JApplet implements ActionListener{
         JLabel welcomeLabel;
         JTextArea output;
         JButton close;
         String display = "";
         String exit = "The video capture buffer has been terminated.";
         String problem = "";
         String videoDevice = "vfw:Microsoft WDM Image Capture (Win32):0";
         public static Player player = null;
         public Buffer buf = null;
         public Image img = null;
         public VideoFormat vf = null;
         public BufferToImage btoi = null;
         public MediaLocator ml = null;
         public CaptureDeviceInfo di = null;
         public void init()
              Container c = getContentPane();
              c.setLayout( new FlowLayout() );
              welcomeLabel = new JLabel("Welcome to Adam's Cell Analyzer");
              c.add(welcomeLabel);
              output = new JTextArea(6, 60);
              output.setFont( new Font("Courier", Font.PLAIN, 12) );
              c.add(output);
              close = new JButton("End Analyze Program");
              close.addActionListener(this);
              c.add(close);
              display = "Starting...\n\n";
              output.setText(display);
              di = CaptureDeviceManager.getDevice(videoDevice);
              ml = di.getLocator();
              try {
                   player = Manager.createRealizedPlayer(ml);
                   player.start();
                   Component comp;
              catch (Exception e) {
                   problem += "An Exception has occured.";
                   output.setText(problem);
              FrameGrabbingControl fgc = (FrameGrabbingControl)
                   player.getControl("javax.media.control.FrameGrabbingControl");
              buf = fgc.grabFrame();
              btoi = new BufferToImage((VideoFormat)buf.getFormat());
              img = btoi.createImage(buf);
              display += "The video capture card is currently working properly\n";
              display += "and is sending a video feed to the image buffer.\n\n";
              output.setText(display);
              if(img==null){
                   problem += "The frame is null.";
                   output.setText(problem);
              else
                   imageEnhancement(img);
         public void actionPerformed(ActionEvent e)
              output.setText(exit);
              player.close();
              player.deallocate();
         private void imageEnhancement(Image img)
         //Nothing now     
    }

    I decided to post my program on here because I remember how hard it was to get it to work, and I don't want people to go through the same problems... just don't use it to compete against me in the Intel Science and Engineering Fair and/or the Intel Science Talent Search ;-) then I'll be mad. Other than that, have fun!
    ~Adam Georgas
    import java.awt.*;
    import java.awt.Dimension;
    import java.awt.event.*;
    import java.awt.Image.*;
    import java.awt.image.renderable.*;
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.media.*;
    import javax.media.format.*;
    import javax.media.format.VideoFormat;
    import javax.media.util.*;
    import javax.media.util.BufferToImage;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import javax.media.control.FormatControl;
    public class Cell extends JApplet implements ActionListener{
         JLabel welcomeLabel;
         JTextArea output;
         JButton begin;
         JButton end;
         String display = "";
         String problem = "";
         String exit = "The video capture buffer has been terminated.";
         String videoDevice = "vfw:Microsoft WDM Image Capture (Win32):0";
         public static Player player = null;
         public Buffer buf = null;
         public MediaLocator ml = null;
         public CaptureDeviceInfo di = null;
         public BufferToImage btoi = null;
         public Image frameImage = null;
         public VideoFormat vf = null;
         public PlanarImage src = null;
         private ImageEncoder encoder = null;
    private JPEGEncodeParam encodeParam = null;
         int error = 0;
         public void init()
              Container c = getContentPane();
              c.setLayout( new FlowLayout() );
              welcomeLabel = new JLabel("Welcome to Adam's Cell Analyzer");
              c.add(welcomeLabel);
              output = new JTextArea(6, 60);
              output.setFont( new Font("Courier", Font.PLAIN, 12) );
              c.add(output);
              begin = new JButton("Begin Analyze Program");
              begin.addActionListener(this);
              c.add(begin);
              end = new JButton("End Analyze Program");
              end.addActionListener(this);
              c.add(end);
              di = CaptureDeviceManager.getDevice(videoDevice);
              ml = di.getLocator();
              try {
                   player = Manager.createRealizedPlayer(ml);
                   player.start();
              catch (Exception b) {
                   JOptionPane.showMessageDialog(this, b.toString(),
                        "An Exception has occured", JOptionPane.ERROR_MESSAGE);
              display = "Welcome\n\n";
              output.setText(display);
         public void actionPerformed(ActionEvent e)
              JComponent j = (JComponent) e.getSource();
              if (j == end){
                   player.close();
                   player.deallocate();
                   output.setText(exit);     
              if (j == begin){
                   display += "Starting...\n\n";
                   output.setText(display);
                   Control[] controls = player.getControls();
                   FrameGrabbingControl fgc = (FrameGrabbingControl)
                        player.getControl("javax.media.control.FrameGrabbingControl");
                   if (fgc == null) {
                        error = 1;
                        problem(error);
                   buf = fgc.grabFrame();
                   btoi = new BufferToImage((VideoFormat)buf.getFormat());
                   if (btoi == null){
                        error = 2;
                        problem(error);
                   VideoFormat format = (VideoFormat)buf.getFormat();
                   Dimension size = format.getSize();
                   if(format == null) {
                        error = 3;
                        problem(error);
                   frameImage = btoi.createImage(buf);               
                   if(frameImage == null) {
                        error = 4;
                        problem(error);
                   else{
                        display = "";
                        display = "The video system is working correctly and grabbing frames.\n\n";
                        output.setText(display);     
         public void imageEnhancement()
    //Top Secret :-)
         public void problem(int error)
              switch(error) {
              case 1:
                   JOptionPane.showMessageDialog(this, "The frame grabbing control is null.",
                        "A problem has occured", JOptionPane.ERROR_MESSAGE);
                   break;
              case 2:
                   JOptionPane.showMessageDialog(this, "The buffer to image conversion did not occur properly.",
                        "A problem has occured", JOptionPane.ERROR_MESSAGE);
                   break;
              case 3:
                   JOptionPane.showMessageDialog(this, "The image format queries did not occur properly.",
                        "A problem has occured", JOptionPane.ERROR_MESSAGE);
                   break;
              case 4:
                   JOptionPane.showMessageDialog(this, "The buffer to image did not occur properly.",
                        "A problem has occured", JOptionPane.ERROR_MESSAGE);
                   break;
              case 5:
                   JOptionPane.showMessageDialog(this, "Java AWT Image to JAI Image did not occur properly.",
                        "A problem has occured", JOptionPane.ERROR_MESSAGE);
                   break;
              default:
                   JOptionPane.showMessageDialog(this, "An unknown problem has occured.",
                        "A problem has occured", JOptionPane.ERROR_MESSAGE);
    }

  • Java mapping help please

    Hi all,
    I need help with java code please.
    My source is a csv file and target is multiple idocs.
    Source file structure is as follows:
    Header (field 1, field 2, ........ field 10)
    Item 1a (field 1, field 2, field 3, .........    field 180)
    Item 1b (field 1, field 2, field 3, .........    field 180)
    Item 2a (field 1, field 2, field 3, .........    field 180)
    Item 2b (field 1, field 2, field 3, .........    field 180)
    Item na (field 1, field 2, field 3, .........    field 180)
    Item nb (field 1, field 2, field 3, .........    field 180)
    First line is header. Second is VAT line. Third is Price line for that VAT. Now VAT and Price lines repeat. There need not be VAT line for non-European countries. So a VAT line may or may not preceed a Price line.
    For example: the lines can be like:
    Header
    VAT1
    Price1
    VAT2
    Price2
    Price3
    1) Now, it should produce 3 idocs like:
    Header, VAT1, Price1
    Header, VAT2, Price2
    Header, Price3
    2) One idoc should be created per a pair of VAT and Price lines and they will be identified by a co-relation of a particular field. So first I have to sort all the lines based on this field value. Then I have to read the lines in pairs. If no Vat line, I should just read the Price item and produce an idoc.
    Can you please help me with the java code for this?
    Many thanks in advance.
    Ramesh.

    Many thanks Ram.
    The reason for thinking to go for java mapping is that there is no keyfield for price line. The source file is a pipe delimited csv file. There is a keyfield for VAT line. The same field will be empty for the Price line. I am trying to ask them to at least provide a space for that field between the pipes for price line so that I can use in FCC. It looks like they can't modify the source file.
    Any inputs please?
    Regards.
    Ramesh.

  • Very simple java project (help please)

    Hello. For a project I have to somehow use MouseListener to make something. My idea was to have a rectangle in which a circle (hockey puck) follows the user's mouse and whenever the user places the circle into a certain area the count goes up by one (like a game of hockey). If someone could give me some idea as to where I should start it would be greatly appreciated.
    My thanks

    This is alwyas [a good place to start|http://java.sun.com/developer/onlineTraining/] when you don't have a clue what's going on, and here if you need specifics on MouseListener. And to get movement, then you'll probably want to look here.
    Once you have some code and specific questions, literally almost everyone on here will be willing to help you further along the way. When you post code, please use code tags.

  • Java crashes help please

    Hi I'm looking at a ADSL speed test website that used a java applet.
    I have the latest java release and I'm running XP Pro SP2
    Jave crashes and IE closes and i then have a file appear on my desktop with the following text:
    Any help would be great. Thanks
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_FLT_STACK_CHECK (0xc0000092) at pc=0x0804d0a9, pid=404, tid=3288
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode)
    # Problematic frame:
    # v ~RuntimeStub::resolve_virtual_call
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x03ff9c00): JavaThread "main" [_thread_in_Java, id=3288]
    siginfo: ExceptionCode=0xc0000092, ExceptionInformation=0x00000000 0x01b73ac4
    Registers:
    EAX=0xffffffff, EBX=0x000008c5, ECX=0x30317f18, EDX=0x3031a8d8
    ESP=0x01b73a58, EBP=0x01b73b68, ESI=0x30317f18, EDI=0x000008c5
    EIP=0x0804d0a9, EFLAGS=0x00010212
    Top of Stack: (sp=0x01b73a58)
    0x01b73a58: ffff1372 ffff4022 ffffffff 07f95df7
    0x01b73a68: 011c001b 01b73b40 ffff0023 f72053d1
    0x01b73a78: 884440e0 4b08f50c 48a8e6b0 00cce6b0
    0x01b73a88: 804f4049 00000080 00000002 00020000
    0x01b73a98: 00000000 b714e794 b714e788 0000f50c
    0x01b73aa8: 5be00000 4005c805 00000000 80000000
    0x01b73ab8: 00004002 00000000 3ffd8000 01b73b0c
    0x01b73ac8: 01b73b24 00000000 01b73b1c 00000000
    Instructions: (pc=0x0804d0a9)
    0x0804d099: 00 00 83 ec 6c dd 34 24 9b dd 24 24 dd 5c 24 6c
    0x0804d0a9: dd 5c 24 74 dd 5c 24 7c dd 9c 24 84 00 00 00 dd
    Stack: [0x01a80000,0x01b80000), sp=0x01b73a58, free space=974k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    v ~RuntimeStub::resolve_virtual_call
    J java.util.Properties$LineReader.readLine()I
    j java.util.Properties.load0(Ljava/util/Properties$LineReader;)V+7
    j java.util.Properties.load(Ljava/io/InputStream;)V+10
    j java.util.logging.LogManager.readConfiguration(Ljava/io/InputStream;)V+13
    j java.util.logging.LogManager.readConfiguration()V+181
    j java.util.logging.LogManager$2.run()Ljava/lang/Object;+4
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0a10f400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3496]
    0x0a10a400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1080]
    0x0a109400 JavaThread "Attach Listener" daemon [_thread_blocked, id=2996]
    0x0a108400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=588]
    0x0a0fa800 JavaThread "Finalizer" daemon [_thread_blocked, id=3044]
    0x0a0f6400 JavaThread "Reference Handler" daemon [_thread_blocked, id=1452]
    =>0x03ff9c00 JavaThread "main" [_thread_in_Java, id=3288]
    Other Threads:
    0x0a0f1800 VMThread [id=2560]
    0x0a110800 WatcherThread [id=384]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 960K, used 196K [0x302f0000, 0x303f0000, 0x30a50000)
    eden
    [error occurred during error reporting, step 190, id 0xc0000092]
    Dynamic libraries:
    0x00400000 - 0x0049b000      C:\Program Files\Internet Explorer\iexplore.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x7e410000 - 0x7e4a0000      C:\WINDOWS\system32\USER32.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x7c9c0000 - 0x7d1d5000      C:\WINDOWS\system32\SHELL32.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x42cf0000 - 0x42e14000      C:\WINDOWS\system32\urlmon.dll
    0x77120000 - 0x771ab000      C:\WINDOWS\system32\OLEAUT32.dll
    0x42990000 - 0x429d5000      C:\WINDOWS\system32\iertutil.dll
    0x77c00000 - 0x77c08000      C:\WINDOWS\system32\VERSION.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x629c0000 - 0x629c9000      C:\WINDOWS\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x10000000 - 0x10007000      C:\WINDOWS\system32\ASAPHook.dll
    0x773d0000 - 0x774d3000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
    0x5d090000 - 0x5d12a000      C:\WINDOWS\system32\comctl32.dll
    0x42ef0000 - 0x434bb000      C:\WINDOWS\system32\IEFRAME.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x5ad70000 - 0x5ada8000      C:\WINDOWS\system32\UxTheme.dll
    0x74720000 - 0x7476b000      C:\WINDOWS\system32\MSCTF.dll
    0x20000000 - 0x202c5000      C:\WINDOWS\system32\xpsp2res.dll
    0x755c0000 - 0x755ee000      C:\WINDOWS\system32\msctfime.ime
    0x5dff0000 - 0x5e01f000      C:\WINDOWS\system32\IEUI.dll
    0x76380000 - 0x76385000      C:\WINDOWS\system32\MSIMG32.dll
    0x4ec50000 - 0x4edf3000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.2180_x-ww_522f9f82\gdiplus.dll
    0x47060000 - 0x47081000      C:\WINDOWS\system32\xmllite.dll
    0x77b40000 - 0x77b62000      C:\WINDOWS\system32\apphelp.dll
    0x76fd0000 - 0x7704f000      C:\WINDOWS\system32\CLBCATQ.DLL
    0x77050000 - 0x77115000      C:\WINDOWS\system32\COMRes.dll
    0x746f0000 - 0x7471a000      C:\WINDOWS\system32\msimtf.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x605d0000 - 0x605d9000      C:\WINDOWS\system32\mslbui.dll
    0x77a20000 - 0x77a74000      C:\WINDOWS\System32\cscui.dll
    0x76600000 - 0x7661d000      C:\WINDOWS\System32\CSCDLL.dll
    0x77920000 - 0x77a13000      C:\WINDOWS\system32\SETUPAPI.dll
    0x6bd10000 - 0x6bd20000      C:\PROGRA~1\MICROS~2\Office12\msohevi.dll
    0x78130000 - 0x781cb000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.163_x-ww_681e29fb\MSVCR80.dll
    0x5c2c0000 - 0x5c300000      C:\WINDOWS\ime\sptip.dll
    0x74c80000 - 0x74cac000      C:\WINDOWS\system32\OLEACC.dll
    0x76080000 - 0x760e5000      C:\WINDOWS\system32\MSVCP60.dll
    0x01480000 - 0x01491000      C:\WINDOWS\IME\SPGRMR.DLL
    0x7d1e0000 - 0x7d49e000      C:\WINDOWS\system32\msi.dll
    0x014a0000 - 0x014fb000      C:\Program Files\Common Files\Microsoft Shared\INK\SKCHUI.DLL
    0x61930000 - 0x6197a000      C:\Program Files\Internet Explorer\ieproxy.dll
    0x75e90000 - 0x75f40000      C:\WINDOWS\system32\SXS.DLL
    0x42c10000 - 0x42cdf000      C:\WINDOWS\system32\WININET.dll
    0x01e00000 - 0x01e09000      C:\WINDOWS\system32\Normaliz.dll
    0x75cf0000 - 0x75d81000      C:\WINDOWS\system32\MLANG.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\ws2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x02fb0000 - 0x0332f000      c:\program files\google\googletoolbar2.dll
    0x77a80000 - 0x77b14000      C:\WINDOWS\system32\CRYPT32.dll
    0x77b20000 - 0x77b32000      C:\WINDOWS\system32\MSASN1.dll
    0x76c90000 - 0x76cb8000      C:\WINDOWS\system32\imagehlp.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x76c30000 - 0x76c5e000      C:\WINDOWS\system32\WINTRUST.dll
    0x71ad0000 - 0x71ad9000      C:\WINDOWS\system32\WSOCK32.dll
    0x74980000 - 0x74a93000      C:\WINDOWS\system32\msxml3.dll
    0x59a60000 - 0x59b01000      C:\WINDOWS\system32\DBGHELP.DLL
    0x5b860000 - 0x5b8b4000      C:\WINDOWS\system32\netapi32.dll
    0x708f0000 - 0x70903000      C:\WINDOWS\system32\asycfilt.dll
    0x76990000 - 0x769b5000      C:\WINDOWS\system32\ntshrui.dll
    0x76b20000 - 0x76b31000      C:\WINDOWS\system32\ATL.DLL
    0x769c0000 - 0x76a73000      C:\WINDOWS\system32\USERENV.dll
    0x76ee0000 - 0x76f1c000      C:\WINDOWS\system32\RASAPI32.dll
    0x76e90000 - 0x76ea2000      C:\WINDOWS\system32\rasman.dll
    0x76eb0000 - 0x76edf000      C:\WINDOWS\system32\TAPI32.dll
    0x76e80000 - 0x76e8e000      C:\WINDOWS\system32\rtutils.dll
    0x71b20000 - 0x71b32000      C:\WINDOWS\system32\MPR.dll
    0x75f60000 - 0x75f67000      C:\WINDOWS\System32\drprov.dll
    0x71c10000 - 0x71c1e000      C:\WINDOWS\System32\ntlanman.dll
    0x71cd0000 - 0x71ce7000      C:\WINDOWS\System32\NETUI0.dll
    0x71c90000 - 0x71cd0000      C:\WINDOWS\System32\NETUI1.dll
    0x71c80000 - 0x71c87000      C:\WINDOWS\System32\NETRAP.dll
    0x71bf0000 - 0x71c03000      C:\WINDOWS\System32\SAMLIB.dll
    0x77c70000 - 0x77c93000      C:\WINDOWS\system32\msv1_0.dll
    0x76d60000 - 0x76d79000      C:\WINDOWS\system32\iphlpapi.dll
    0x75f70000 - 0x75f79000      C:\WINDOWS\System32\davclnt.dll
    0x10930000 - 0x10979000      C:\WINDOWS\system32\PortableDeviceApi.dll
    0x73ba0000 - 0x73bb3000      C:\WINDOWS\system32\sti.dll
    0x74ae0000 - 0x74ae7000      C:\WINDOWS\system32\CFGMGR32.dll
    0x722b0000 - 0x722b5000      C:\WINDOWS\system32\sensapi.dll
    0x03f10000 - 0x03f20000      C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroIEHelper.dll
    0x03f30000 - 0x03f4f000      C:\WINDOWS\system32\dla\tfswshx.dll
    0x03f50000 - 0x03f5f000      C:\WINDOWS\system32\tfswapi.dll
    0x03f60000 - 0x03f9b000      C:\WINDOWS\system32\dla\tfswcres.dll
    0x6d7c0000 - 0x6d839000      C:\Program Files\Java\jre1.6.0_02\bin\ssv.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jre1.6.0_02\bin\MSVCR71.dll
    0x29500000 - 0x29551000      C:\Program Files\Common Files\Microsoft Shared\Windows Live\WindowsLiveLogin.dll
    0x0ffd0000 - 0x0fff8000      C:\WINDOWS\system32\rsaenh.dll
    0x27500000 - 0x275c9000      C:\Program Files\Common Files\Microsoft Shared\Windows Live\msidcrl40.dll
    0x75e60000 - 0x75e73000      C:\WINDOWS\system32\cryptnet.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x4d4f0000 - 0x4d548000      C:\WINDOWS\system32\WINHTTP.dll
    0x04780000 - 0x04790000      C:\Program Files\HPQ\IAM\Bin\ItIeAddIN.dll
    0x04790000 - 0x047f9000      C:\Program Files\HPQ\IAM\Bin\ItMsg.dll
    0x7c000000 - 0x7c054000      C:\WINDOWS\system32\MSVCR70.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\system32\mswsock.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    0x71d40000 - 0x71d5c000      C:\WINDOWS\system32\actxprxy.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x435d0000 - 0x43941000      C:\WINDOWS\system32\mshtml.dll
    0x746c0000 - 0x746e9000      C:\WINDOWS\system32\msls31.dll
    0x43560000 - 0x435c0000      C:\WINDOWS\system32\ieapfltr.dll
    0x77690000 - 0x776b1000      C:\WINDOWS\system32\NTMARTA.DLL
    0x050a0000 - 0x050f7000      C:\Program Files\HPQ\IAM\Bin\ItSSO.dll
    0x040e0000 - 0x04103000      C:\Program Files\HPQ\IAM\Bin\ItVCL.dll
    0x04b00000 - 0x04b08000      C:\Program Files\HPQ\IAM\Bin\ItRpc.dll
    0x04b60000 - 0x04b69000      C:\Program Files\HPQ\IAM\Bin\ItClient.dll
    0x63380000 - 0x633f8000      c:\windows\system32\jscript.dll
    0x58760000 - 0x58792000      C:\WINDOWS\system32\iepeers.dll
    0x73000000 - 0x73026000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x42b90000 - 0x42c07000      C:\WINDOWS\system32\mshtmled.dll
    0x1b000000 - 0x1b00c000      C:\WINDOWS\system32\ImgUtil.dll
    0x1b060000 - 0x1b06e000      C:\WINDOWS\system32\pngfilt.dll
    0x05800000 - 0x0581c000      C:\Program Files\HPQ\IAM\Bin\Aswallet.dll
    0x42aa0000 - 0x42b12000      C:\WINDOWS\system32\msfeeds.dll
    0x061d0000 - 0x0622b000      C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\PDFShell.dll
    0x72d20000 - 0x72d29000      C:\WINDOWS\system32\wdmaud.drv
    0x72d10000 - 0x72d18000      C:\WINDOWS\system32\msacm32.drv
    VM Arguments:
    jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\JRE16~2.0_0\lib\deploy.jar;C:\PROGRA~1\Java\JRE16~2.0_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.6.0_02 -Djavaplugin.nodotversion=160_02 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE16~2.0_0 -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~1\Java\JRE16~2.0_0\classes -Xbootclasspath/a:C:\PROGRA~1\Java\JRE16~2.0_0\lib\deploy.jar;C:\PROGRA~1\Java\JRE16~2.0_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.6.0_02 -Djavaplugin.nodotversion=160_02 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE16~2.0_0
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    CLASSPATH=.;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
    PATH=C:\PROGRA~1\Java\JRE16~2.0_0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\HPQ\IAM\bin;C:\Program Files\QuickTime\QTSystem\;.
    USERNAME=hrowinski
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 8, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 13 stepping 8, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1572208k(878116k free), swap 2204864k(1714828k free)
    vm_info: Java HotSpot(TM) Client VM (1.6.0_02-b06) for windows-x86, built on Jul 12 2007 01:16:14 by "java_re" with unknown MS VC++:1310

    Thanks for the help so far, but I still have a problem with my Merge Sort. The sort uses up all the program's memory and throws an "OutOfMemoryError".
    Here is the Merge Sort:
    //This is the merge sort and its methods!!!
         public void mergeSort()
              if(line.length<=1)
                   return;
                   int[] half1=new int[line.length/2];
                   int[] half2=new int[line.length-half1.length];
                   System.arraycopy(line, 0, half1, 0, half1.length);
                   System.arraycopy(line, half1.length, half2, 0, half2.length);
                   Sort s1=new Sort(half1);
                   Sort s2=new Sort(half2);
                   s1.mergeSort();
                   s2.mergeSort();
                   merge(half1, half2);
         public void merge(int[] a, int[] b)
              int first=0;
              int second=0;
              int c=0;
              while((first<a.length)&&(second<b.length))
                   if(a[first]<b[second])
                        line[c]=a[first];
                        first++;
                   else
                        line[c]= b[second];
                        second++;
                   c++;
              System.arraycopy(a, first, line, c, a.length-first);
              System.arraycopy(b, second, line, c, b.length-second);
         }

  • Java IO Help Please

    Hi,
    I am new to reading and writing varibles to a file from a GUI Application.
    What I am trying to do is make an object (that only contains some varibles) and have my main program take the object and write its varibles to a file (doesn't matter what type).
    Then I also want to be able to read the file and put the varibles to where they were. I really have no clue how to do this.
    Could you point me in the right direction of where to learn to do this?
    Code Samples and tutorials would be helpful
    Ryltar

    Depending on what you are trying to accomplish, you may be able to serialize the object:
    http://java.sun.com/docs/books/tutorial/essential/io/serializing.html

  • CS5 slideshow java script help please

    My slide show only plays thru once and I would like to have it run more than once..also I have only 8 images and would like to increase this... can someone lend a hand please..  here is the script, it was developed out of dreamweaver suite 8 but now I am in CS5:
    <script type="text/JavaScript">
    <!--
    function MM_timelinePlay(tmLnName, myID) { //v1.2
      //Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Macromedia, Inc. All rights reserved.
      var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false ;
      if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
      tmLn = document.MM_Time[tmLnName];
      if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
      if (myID == tmLn.ID) { //if Im newest
        setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
        fNew = ++tmLn.curFrame;
        for (i=0; i<tmLn.length; i++) {
          sprite = tmLn[i];
          if (sprite.charAt(0) == 's') {
            if (sprite.obj) {
              numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
              if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
                keyFrm=1;
                for (j=0; j<sprite.values.length; j++) {
                  props = sprite.values[j];
                  if (numKeyFr != props.length) {
                    if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                    else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
                  } else {
                    while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                    if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                      if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                      else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
          } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
          if (fNew > tmLn.lastFrame) tmLn.ID = 0;
    function MM_initTimelines() { //v4.0
        //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
        var ns = navigator.appName == "Netscape";
        var ns4 = (ns && parseInt(navigator.appVersion) == 4);
        var ns5 = (ns && parseInt(navigator.appVersion) > 4);
        var macIE5 = (navigator.platform ? (navigator.platform == "MacPPC") : false) && (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4);
        document.MM_Time = new Array(1);
        document.MM_Time[0] = new Array(1);
        document.MM_Time["myhat1"] = document.MM_Time[0];
        document.MM_Time[0].MM_Name = "myhat1";
        document.MM_Time[0].fps = 3;
        document.MM_Time[0][0] = new String("sprite");
        document.MM_Time[0][0].slot = 1;
        if (ns4)
            document.MM_Time[0][0].obj = document["Image1"];
        else if (ns5)
            document.MM_Time[0][0].obj = document.getElementById("Image1");
        else
            document.MM_Time[0][0].obj = document["Image1"];
        document.MM_Time[0][0].keyFrames = new Array(1, 17, 34, 54, 73, 92, 111, 130);
        document.MM_Time[0][0].values = new Array(1);
        document.MM_Time[0][0].values[0] = new Array("../Images/slideshow/1.jpg","../Images/slideshow/2.jpg","../Images/slides how/3.jpg","../Images/slideshow/4.jpg","../Images/slideshow/5.jpg","../Images/sl ideshow/6.jpg","../Images/slideshow/7.jpg","../Images/slideshow/8.jpg");
        document.MM_Time[0][0].values[0].prop = "src";
        document.MM_Time[0].lastFrame = 130;
        for (i=0; i<document.MM_Time.length; i++) {
            document.MM_Time[i].ID = null;
            document.MM_Time[i].curFrame = 0;
            document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    //-->
    </script>

    gayathri_bna wrote:
    Im in a hurry. As a suggestion...find someone locally and pay them to fix your computer.
    This site is for programming java not for fixing computers.

  • Java Card-Help Please

    I work with J2SE 1.4.2 and I need to know if JAVA CARD KIT 2.2.1 can be
    used in this to developing aplications.
    I work with tool J2SE 1.4.2 and need to know if tool JAVA CARD KIT 2.2.1 can be used to develop applications in J2SE 1.4.2.
    Thanks

    What is Java Card Kit? Does it have a website? Have you looked it up there? Have you tried it?

  • Java RMI......please help!!

    Dear
    I using a Web (Applet) application to communication with the Server using RMI...i am getting the following error message:
    java.rmi.ConnectException: Connection refused to host: 210.23.134.226; nested ex
    ception is:
    java.net.ConnectException: Connection refused: no further information
    What could possibly be the problem?....is it because my browser does not support RMI...how do I know whether my broswer suppor RMI or not???
    please guide me.....thank you
    Dan

    why is everyone refusing to help me???

  • Please help, I am having java.rmi.UnmarshalException.

    First I would like to show you the interface code i want to implement, following is the code.
    package bis.opencontrol.opcconnector;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    import javax.swing.tree.*;
    public interface ReceiveNodeInterface extends Remote
    DefaultMutableTreeNode getRootNode(String x) throws RemoteException;
    The server class which implements this interface is as follows...
    package bis.opencontrol.opcconnector;
    public class RMIServiceToSendNodesHierarchy extends java.rmi.server.UnicastRemoteObject implements ReceiveNodeInterface
    public DefaultMutableTreeNode getRootNode(String x) throws RemoteException
    System.out.println(x);
    return(TimerToGetNodesHierarchy.getRootNode());
    public RMIServiceToSendNodesHierarchy() throws RemoteException
    try
    thisAddress= (InetAddress.getLocalHost()).toString();
    catch(Exception e)
    throw new RemoteException("can't get inet address.");
    thisPort = 1099;
    System.out.println("Starting RMI service at address = "+thisAddress+" and PortNo = "+thisPort);
    System.getProperties().setProperty("java.security.policy", "wideopen.policy");
    if(System.getSecurityManager() == null)
    System.setSecurityManager(new RMISecurityManager());
    try
    registry = LocateRegistry.createRegistry(thisPort);
    registry.rebind("RMIServiceToSendNodesHierarchy", this);
    The client class which will send request to server is as follows...
    package tagbrowser;
    public class TagBrowser extends javax.swing.JFrame
    ReceiveNodeInterface rmiServer;
    public TagBrowser() throws MalformedURLException
    getRootNodeIntoTree();
    void getRootNodeIntoTree() throws MalformedURLException
    String text = "Please, send us the root node.";
    try
    registry = LocateRegistry.getRegistry(serverAddress, 1099);
    String[] list = registry.list();
                   if( list == null )
                        throw new RemoteException( "list == null" );
    else
    for (int k=0; k < list.length; k++)
    System.out.println("registry" + k + ": " + list[k].toString());
    System.getProperties().setProperty("java.security.policy", "wideopen.policy");
    if(System.getSecurityManager() == null)
    System.setSecurityManager(new RMISecurityManager());
    rmiServer = (ReceiveNodeInterface)(registry.lookup("RMIServiceToSendNodesHierarchy"));
    rootNode = rmiServer.getRootNode(text);
    catch(RemoteException e){
    e.printStackTrace();
    catch(NotBoundException e){
    e.printStackTrace();
    Well, when I run this rmi client application I get this following error...
    registry0: RMIServiceToSendNodesHierarchy
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
    java.lang.ClassNotFoundException: bis.opencontrol.opcconnector.ReceiveNodeInterface
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at tagbrowser.TagBrowser.getRootNodeIntoTree(TagBrowser.java:126)
    at tagbrowser.TagBrowser.<init>(TagBrowser.java:39)
    at tagbrowser.Main.main(Main.java:19)
    Caused by: java.lang.ClassNotFoundException: bis.opencontrol.opcconnector.ReceiveNodeInterface
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    ... 4 more
    BUILD SUCCESSFUL (total time: 1 second)

    System.out.println("Starting RMI service at address = "+thisAddress+" and PortNo = "+thisPort);That's not true unless you call super(1099) inside this constructor. So at this point you are printing misleading information.
    System.getProperties().setProperty("java.security.policy", "wideopen.policy");
    if(System.getSecurityManager() == null)
    System.setSecurityManager(new RMISecurityManager());
    }You normally don't need a security manager in an RMI server. You can delete all this.
    package tagbrowser;I would expect to see either import bis.opencontrol.opcconnector.* or import bis.opencontrol.opcconnector.ReceiveNodeInterface here. So there is clearly something wrong with your project structure. I suspect you have copied ReceiveNodeInterface from the server package to the client. That isn't valid. The remote interface is the same at both client and server.
    I am having java.rmi.UnmarshalExceptionWell, actually you are having java.lang.ClassNotFoundException: bis.opencontrol.opcconnector.ReceiveNodeInterface
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    due to the error described above. This also implies that bis.opencontrol.opcconnector.ReceiveNodeInterface needs to be available to the client via its classpath, i.e. usually via the same JAR that the client classes are in.

  • Java.rmi.ServerException: Server unavailable, please try later

    I'm testing a service proxy in JDeveloper 10.1.3.1.
    I'm using encryption and signing.
    Now that I have the encryption/signing key loading, I get the following error:
    WARNING: Subject Key ID extension not found.Using BST Referencing scheme
    java.rmi.ServerException:
    start fault message:
    Server unavailable, please try later
    :end fault message
         at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:560)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:396)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
         at pkg.service.client.runtime.RequestSoap_Stub.execute(RequestSoap_Stub.java:84)
         at pkg.service.client.RequestSoapClient.execute(RequestSoapClient.java:48)
         at pkg.service.client.RequestSoapClient.main(RequestSoapClient.java:34)
    Process exited.
    Debugger disconnected from local process.
    Is this a failure of the RMI server on my side or is it a failure to connect to the service? Is the destination service sending this to me or just the transmission code?
    It looks to me from the trace and the vagueness of the message that this is from the Oracle transmission code in the StreamingSender class, not a message received from the destination webservice. Would love some confirmation, though.
    Thanks for any help.

    This error generally means there is trouble in the host file, or there is trouble with anti-virus software. Check this section of the support document that you came here from.
    Unable to contact the iOS software update server gs.apple.com
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors: 
    Install the latest version of iTunes.
    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.

  • Problem in starting RMI server, please help!

    Hi , all:
    I am learning RMI from SUN's tutorial. I set all of program packages as same as the tutorial, compiled all of programs . and built all of the jar files, the server classes and the client classes.When I run the server, ComputeEngine, it did not work ,and the following messages were showed at command lines:
    C:\RMI\doc>java -Djava.rmi.server.codebase=file:/c:\rmi\ann\public_html\classes/
    -Djava.rmi.server.hostname=localhost -Djava.security.policy=java.policy eng
    ine.ComputeEngine
    ComputeEngine exception: access denied (java.net.SocketPermission 127.0.0.1:1099
    connect,resolve)
    java.security.AccessControlException: access denied (java.net.SocketPermission 1
    27.0.0.1:1099 connect,resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:272)
    at java.security.AccessController.checkPermission(AccessController.java:
    399)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1044)
    at java.net.Socket.<init>(Socket.java:262)
    at java.net.Socket.<init>(Socket.java:100)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
    SocketFactory.java:25)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
    SocketFactory.java:120)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at engine.ComputeEngine.main(ComputeEngine.java:25)
    Please give helps .
    Thanks!

    Thank.
    Thank.
    I have put them at the same directory, but is deos not work.
    Something I am not sure.
    On the SUN's tutorial , the follows is given:
    Win32:
    java -Djava.rmi.server.codebase=file:/c:\home\ann\public_html\classes/
    -Djava.rmi.server.hostname=zaphod.east.sun.com
    -Djava.security.policy=java.policy
    engine.ComputeEngine
    I changed hostname = localhost
    I also changed the code of the server class given by tutorial :
    String name = "//host/Compute" ;
    to:
    String name = "//localhost/Compute";
    Should I make such changes?
    Here is the server class given by the tutorial:
    package engine;
    import java.rmi.*;
    import java.rmi.server.*;
    import compute.*;
    public class ComputeEngine extends UnicastRemoteObject
    implements Compute
    public ComputeEngine() throws RemoteException {
    super();
    public Object executeTask(Task t) {
    return t.execute();
    public static void main(String[] args) {
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    String name = "//host/Compute";
    try {
    Compute engine = new ComputeEngine();
    Naming.rebind(name, engine);
    System.out.println("ComputeEngine bound");
    } catch (Exception e) {
    System.err.println("ComputeEngine exception: " +
    e.getMessage());
    e.printStackTrace();

  • Problem in starting RMI server, help please

    Hi , all:
    I am learning RMI from SUN's tutorial. I set all of program packages as same as the tutorial, compiled all of programs . and built all of the jar files, the server classes and the client classes.When I run the server, ComputeEngine, it did not work ,and the following messages are showed at command lines:
    C:\RMI\doc>java -Djava.rmi.server.codebase=file:/c:\rmi\ann\public_html\classes/
    -Djava.rmi.server.hostname=localhost -Djava.security.policy=java.policy eng
    ine.ComputeEngine
    ComputeEngine exception: access denied (java.net.SocketPermission 127.0.0.1:1099
    connect,resolve)
    java.security.AccessControlException: access denied (java.net.SocketPermission 1
    27.0.0.1:1099 connect,resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:272)
    at java.security.AccessController.checkPermission(AccessController.java:
    399)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1044)
    at java.net.Socket.<init>(Socket.java:262)
    at java.net.Socket.<init>(Socket.java:100)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
    SocketFactory.java:25)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
    SocketFactory.java:120)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at engine.ComputeEngine.main(ComputeEngine.java:25)
    Please give helps .
    Thanks!

    You are setting the security policy to the file named
    java.policy, make sure that it is in the same
    directory where you are invoking the java compiler.Thank.
    I have put them at the same directory, but is deos not work.
    Something I am not sure.
    On the SUN's tutorial , the follows is given:
    Win32:
    java -Djava.rmi.server.codebase=file:/c:\home\ann\public_html\classes/
    -Djava.rmi.server.hostname=zaphod.east.sun.com
    -Djava.security.policy=java.policy
    engine.ComputeEngine
    I changed hostname = localhost
    I also changed the code of the server class given by tutorial :
    String name = "//host/Compute" ;
    to:
    String name = "//localhost/Compute";
    Should I make such changes?
    Here is the server class given by the tutorial:
    package engine;
    import java.rmi.*;
    import java.rmi.server.*;
    import compute.*;
    public class ComputeEngine extends UnicastRemoteObject
    implements Compute
    public ComputeEngine() throws RemoteException {
    super();
    public Object executeTask(Task t) {
    return t.execute();
    public static void main(String[] args) {
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    String name = "//host/Compute";
    try {
    Compute engine = new ComputeEngine();
    Naming.rebind(name, engine);
    System.out.println("ComputeEngine bound");
    } catch (Exception e) {
    System.err.println("ComputeEngine exception: " +
                   e.getMessage());
    e.printStackTrace();

  • Help urgently needed with Java RMI task.

    Hello All. Please I need help urgently with this task. I cant seem to be able to do this. Here is the task:
    There are m squares with side lengths a1, a2, ..., am and a rectangle with the height and width equal to h and w respectively. Find a subset of the squares, which must be placed within the rectangle in such a way that they do not overlap, and cover the maximum area of a rectangle.*
    Please all help me solve this task using Java RMI. I would be very grateful for your help. Thanks in advance.

    Here is my client.java.
    import compute.;*
    import java.lang.Math.;*
    import java.lang.Long;
    *public class Hypothesis implements Task {*
    private long start;
    private long end;
    private int number;
    private int count;
    public Hypothesis(long start, long end, int number,int
    *count) {*
    this.start = start;
    this.end = end;
    this.number = number;
    this.count = count;
    *public Object execute() {*
    return findSolution();
    *public String findSolution() {*
    long i,j,k,l,m=1,i_max,j_max,k_max,l_max,l_start;
    System.out.println(start);
    System.out.println(end);
    System.out.println(number);
    System.out.println(count);
    for(m=start+number;m<end;m+=count)
    i_max=(long)java.lang.Math.pow((double)(min(p5(m)-3)),0.2d)+1;
    for(i=i_max;i>0;i--)
    j_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-2)),0.2d)+1;
    if (j_max>i) j_max=i;
    for(j=j_max;j>0;j--)
    k_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-p5(j)-1)),0.2d)+1;
    if (k_max>j) k_max=j;
    for(k=k_max;k>0;k--)
    l_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-p5(j)-p5k))),0.2d)+1;
    if (l_max>k) l_max=k;
    if (l_max>2) l_start=l_max-2;
    else l_start=1;
    for(l=l_max;l>l_start-1;l--)
    if(p5(i)+p5(j)+p5(k)+p5(l)==p5(m))
    Long[] solution=new Long[5];
    solution[0]=i;
    solution[1]=j;
    solution[2]=k;
    solution[3]=l;
    solution[4]=m;
    *return "" solution[0]"^5+"*
    solution[1]"^5+"*
    solution[2]"^5+"*
    solution[3]"^5="*
    solution[4]"^5";*
    return null;
    *private long p5(long n){*
    return nn*n*n*n;*
    *private long min(long n){*
    return n>0?n:0;
    I just can't seem to get the whole thing work correctly on the server side. I need it to run from 1 client on atleast 3 servers. Please any explanations will be appreciated.

Maybe you are looking for

  • Vector can't give objects

    I have a program using a vector, I store BufferedImage objects in it. But when I try to access them later the compiler won't let me because the method in Vector defines that Object is the type of object being passed, and cannot convert it to a Buffer

  • Non-standard date format yyyymdd in holiday calendar?

    Hello, I currently implement the Mozilla Dutch Holiday calendar http://www.mozilla.org/projects/calendar/caldata/DutchHolidays.ics on iPhones, iPads, Thunderbird with Lightning and Android-based telephones. That calendar contents show up in the iPhon

  • Changine from a FireWire connection to a USB connection

    I have been using my iMac and its FireWire ports to connect an additional hard drive and my backup drive to the iMac. I backup my files using TimeMachine. I plan on getting a new MacBook in a month or two. I use two OWC drives that have both FireWire

  • Cannot access some folders from Bridge CS6

    Only certain folders on my internal drive can't be accessed from Bridge. I can access the folders from PS CS6 but from Bridge, files cannot be displayed.

  • Photos/Filmstrip not showing in LR4

    Downloaded LR4 this morning, backed up and upgraded the catalog. None of my photos appear in the Develop Module when I switch to that module from the Folders, though they appear when I switch from a Smart Collection, but not a standard Collection. It