Out problem is this:
In the past we used to put all our extensions in ...\JRE\lib\ext.
Because we are working with many versions of Java, we decide to put all our extensions in other common place ...\JavaExt.
Now we are using the option:
-Djava.ext.dirs=...\JRE\lib\ext;*...\JavaExt * (-extdirs for compilation).
When working with IntelliJ we add all JARs under ...\JavaExt as a project library;
The problem that we have no way to tell IntelliJ that ...\JavaExt should run as extensions and added to the regular class path.
There some cases that the difference is important. i.e. illegal code is running OK under intellij and not from shell and vice versa.
I remember(but i can't found it now) there was a open task that different libraries can be marked for different use, for example mark a library for run-time only. I think my problem goes there too.
Any way to solve this problem ?