new jre6 conflicts with old jre (1.2.2)
i have a java program that uses Jre6 (for the Swing based GUI) but also jre1.2.2 (that Visibroker 45 needs to make CORBA API call). if i install jre 1.2.2 and then jdk6 (includs jre6) all is ok. but if after all is installed,
i re-install jre 1.2.2 the GUI program will not start when i click on the jar file. i have a simple workaround to the problem (i just run: 'javaw -jar <jar file name>' and make sure in Path env variable the bin directory of jre6 is the first in the list or run:'<full path of javaw.exe in jre6 bin dir> -jar <jar file name>') and these options work great, but still it's very annoying i can't just click on jar file after i re-installed jre 1.2.2. it's more annoying since this program is used by a lot of people and it takes me long time to explain to them how to use the workaround/s in case of conflict (which there are sometimes). i've tried to change the default javaw.exe file/process that files of .jar extension are started with and nothing worked. it's got to be some jre conflict but i don't know what and how to fix it.
Re: new jre6 conflicts with old jre (1.2.2)
You should make sure you have the latest JDK (1.6) installed and when you compile your program and you need it to be compatible on a lower version you use the -source and -target directives.
See javac - Java programming language compiler