I made two copies of the Java directory in two different Portableapps folder. Changing the settings in one location is changing the settings in another location too !
If its portable, the settings should be different for each and changing one shouldn't apply to the other.
I understand it uses registry, both using the same locations possibly. But there should be a way the settings are saved portably and not overwrite each other. How to achieve this ?
Changing settings is not supported. 99%+ of users never change them anyway. Any settings for an individual run can be passed by the launcher of the individual Java-based app as jave.exe/javaw.exe accepts things like changes to the environment, memory allocation, etc on the command line as switches.
Sometimes, the impossible can become possible, if you're awesome!
I want to change select between using a proxy or not. Some apps that use a proxy and others that don't. So I created two folders and pointed those apps to these folders. With Java in one folder I want to put a proxy, on the other I don't want to put.
Can you please suggest a way to do this without manually changing the settings each time ? (command line is good but I couldn't find options for proxy in what are there for java.exe and javaw.exe)
Java Portable is configured to use the settings on the local machine, which also will automatically use any proxy configuration used by the local machine by default. This is what you'll want 99% of the time. Unless, of course, you have a special app that you want to use a special proxy for (Tor, etc). That isn't supported yet and may not be supported without admin rights depending on the app.
Sometimes, the impossible can become possible, if you're awesome!