Java.net.MalformedURLException: unknown protocol: rsrc

I get this:

java.net.MalformedURLException: unknown protocol: rsrc

I'm not quite sure what to do with this unknown protocol. I use simple RMI to communicate between two JVMs. Is it a bank that I miss, which contains this protocol, and if so, which one? I did not find that Google search queries were so good for this problem.

Any help would be greatly appreciated. Thank.

EDIT2: To clarify, my RMI code works when starting from Eclipse. This is when I export and use jar executables and make it break.

EDIT: here is the code snippet:

registry=LocateRegistry.getRegistry(
                rmiServerAddress,
            (new Integer(rmiServerPort)).intValue());
+5
source share
3 answers

, , . Eclipse jar, " ":

Extract required libraries into generated JAR

, , .

+11

, , !:-) ? , ?

0

: Export > Runnable Jar File > Copy required libraries into a sub-folder

0

All Articles