ElieM -3 Newbie Poster

I made a client application on java that needs JRE to run. the problem is almost 95% of people are idiots and will not understand how to set the classpath for JRE to run. I want to make a batch file that adds that classpath by just doubleclicking.

2 problems are facing me:

1- I want the JRE to be "APPENDED" to the existing set classpath.
2- People have windows "XP", "Vista", "7". I want to set a classpath depending on which path JRE is installed on to eliminate the windows version differences, and disregard it.
What I mean is for example:
-Vista has program files(x86) and program files.
-XP only Program files.
-The users can choose to install JRE in a different folder than Program Files..

any possible help?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.