Good morning from Germany,
I'm having differnt Javas (some JDKs, one JRE) on my computer and am having problems adressing the right one.
I have a JRE at c:/programs/java, and a JDK at d:/java. My JAVA_HOME and PATH variables are set to d:/java/bin. I double checked that. The JRE is properly installed and as such in the list under system/software.
I'm using RMI, and suddenly discovered that it's pretty important to know which java.policy file is used ;-) I want to use the JDK specified in my JAVA_HOME.
In the -verbose mode, I discovered that RMIC uses classes from the JRE. I don't want this to happen, obviously. Additionaly, I renamed c/programs/java, and RMIC came up with "cannot find vm.cfg under c:/...). Then I explicitly started the RMIC in my JAVA_HOME,
with the same error.
My interpretation: Even the correct RMIC.exe tries to get it's vm.cfg LOCATION from a place which is not configurated in the way I need it...
Does anyone have an idea to help me? De-installing the JRE doesn't seem appropriate to me, as IMHO different JRE and JDK versions should be able to exist on the same machine.
Many thanks,
Jan
ps: Even though I discovered this problem in an RMI context, I think that it's a general
Java problem, and therefor posted it in Java in General (intermediate).