Declaring RMI codebase for standalone RCP application

This is the place for general discussion of the RMI plugin for Eclipse and support questions

Declaring RMI codebase for standalone RCP application

Postby kab00m » Wed Dec 12, 2007 9:13 pm

I'm having problem with the standalone RCP application with RMI, specifically on -Djava.rmi.server.codebase.

From Eclipse, I usually just use your "RMI Codebase Editor" to create a list of library dependencies for rmi.server.codebase. Then when the RCP application is exported to the standalone mode, all the -vmargs are put into <application>.ini.

The application I'm trying to execute requires multiple libraries, however this <application>.ini does not seem to handle multiple libraries.

For example,

Working case:
-vmargs
-Djava.security.policy=security.policy
-Djava.rmi.server.codebase=file:/plugins/helloworld_1.0.0.jar

Bad case:
-vmargs
-Djava.security.policy=security.policy
-Djava.rmi.server.codebase="file:/plugins/helloworld_1.0.0.jar file:/plugins/org.eclipse.ui_3.2.1.M20060913-0800.jar file:/plugins/org.eclipse.swt_3.2.1.v3235e.jar"

From Eclipse, the 2nd (bad) case works.
I read that <application>.ini has special syntax of not recognizing spaces
but is there any way to work around it?

Thanks for your help!
kab00m
 
Posts: 2
Joined: Tue Dec 11, 2007 6:29 pm

Postby kab00m » Mon Dec 17, 2007 6:51 pm

I guess I didn't have to use the <application>.exe + <application>.ini generated by RCP. Used workaround to simply call raw java using start.jar (generated by RCP) and the rest of the arguments and it worked.

It still doesn't solve the question i started out with, but at least there's a workaround.
kab00m
 
Posts: 2
Joined: Tue Dec 11, 2007 6:29 pm

Postby Jwf » Mon Apr 20, 2009 10:14 am

Inside the development tool Eclipse the syntax is:
-Djava.rmi.server.codebase="file:/plugins/helloworld_1.0.0.jar file:/plugins/org.eclipse.ui_3.2.1.M20060913-0800.jar file:/plugins/org.eclipse.swt_3.2.1.v3235e.jar"

But in the RCP ini file the syntax is without "":
-Djava.rmi.server.codebase=file:/plugins/helloworld_1.0.0.jar file:/plugins/org.eclipse.ui_3.2.1.M20060913-0800.jar file:/plugins/org.eclipse.swt_3.2.1.v3235e.jar

For debugging use fore example :
System.out.println(System.getProperty("java.rmi.server.codebase"));
Jwf
 
Posts: 1
Joined: Mon Apr 20, 2009 10:11 am


Return to General discussion and support

Who is online

Users browsing this forum: No registered users and 2 guests

cron