Java 1.5, 1.6 and 1.7 along with jnlp

Hello,
Please reference; http://www.experts-exchange.com/Programming/Languages/Java/Q_28495151.html
The solution, as explained here; http://stackoverflow.com/questions/21404830/securityexception-during-executing-jnlp-file-missing-required-permissions-manif  partially worked.  What I did was selected the Java 1.6 at the Java Control Panel and set the Security to its lowest level.  This allowed me to run the application, yet the Java console was/is showing that I am still using Java 1.7.
I need for it to use 1.6_37
chimaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
Duplicate of a question you said was answered?
http://www.experts-exchange.com/Programming/Languages/Java/Q_28495151.html

If the application is running properly why do you need it to say 1.6.x?
0
chimaAuthor Commented:
David, it is partially running correctly.  Initially I couldn't even log in.  When I employ these settings I can log in, but when it does a db query it hangs.  A check on the Java Control Panel it shows that it is trying to use Java 1.7 and it should be using Java 1.6_37.
0
David Johnson, CD, MVPOwnerCommented:
create a a batch file that sets the PATH, CLASSPATH, JAVA_HOME to point to the 1.6_37 location to run the application
i.e.
set JAVA_HOME= c:\java1.6
set CLASSPATH= c:\java1.6\classlib
c:
cd \java1.6
java java.jar
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

chimaAuthor Commented:
David, I am actually dealing with three applications, each uses a different version of java.  May i request a couple of clarifications;
My java versions are all at JAVA_HOME= C:\Program Files~(x86)\Java\  here I have the jre and jdk for 1.5_22, 1.6_37 and 1.7_67.
I can understand using the bat file to set each one when I need each individual version.  Is this what the bat file is intended to do?
 My CLASSPATH is now set to %JAVA_HOME%\jre\lib  I do not see/find the classlib there.
For cd \java1.6  I would think it would have to be \Program Files (x86)\Java\jre
And java java.jar is not working.  I get this;
Exception in thread "main" java.lang.NoClassDefFoundError: java/jar

Please clarify my comments, thanks
0
mrcoffee365Commented:
David Johnson, CD, MVP already gave you a good strategy for solving the problem.  You might need to look at how to run java programs from the command line:
http://docs.oracle.com/javase/tutorial/essential/environment/paths.html

Basic windows programming tutorials might help too.  If you set an environment variable to be %JAVA_HOME%/jre/lib then all of your programs will use that path.  You have said you want to use 3 different java_home values -- obviously you can't use a single value if you want different ones.

To execute a java main program from a jar -- as it looks as if you're doing with your "java java.jar" statement? -- then you have to name the main program or use the manifest feature of jars to name your main program.  Again -- just a few tutorials would probably help you.

Try creating a very simple java program with a main method, put it in a jar, then try your tests.  That will help you figure out the correct environments without having to spend a lot of time getting more complex programs working.
0
chimaAuthor Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.