more than one path in advanced variables while installing netbeans

Hi,

I have installed netbeans bundled with jdk 1.8.0_60 on my windows laptop.

Do i need to add below path as well by going to right click on Computer--->Properties--> SystemmP roperties--->Advanced--->Environmental variables
Under path edit at the end as below netbeans bundled jdk1.8.0_60?

C:\Program Files\Java\jdk1.8.0_60\bin

I do already have jdk1.7.0_51 in the same path.

Does adding C:\Program Files\Java\jdk1.8.0_60\bin  at the end mess up other servers and applications, IDEs?
Does the order important  like put
C:\Program Files\Java\jdk1.8.0_60\bin
then
C:\Program Files\Java\jdk1.7.0_51\bin
or the reverse way like
C:\Program Files\Java\jdk1.7.0_51\bin
then
C:\Program Files\Java\jdk1.8.0_60\bin

JAVA_HOME is already set to C:\Program Files\Java\jdk1.7.0_51\
Do i need to change JAVA_HOME as well.

Or without changing path, JAVA_HOME to new Jdk bunlded path i still can run my netbeans fine?
please advise
path.png
path2.png
LVL 7
gudii9Asked:
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.

Jim CakalicSenior Developer/ArchitectCommented:
The NetBeans download page says: "JDK 7 and later versions are required for installing and running the Java SE, Java EE and All NetBeans Bundles. You can download standalone JDK or download the latest JDK with NetBeans IDE Java SE bundle."

This would indicate that your current JDK installation (JDK 7) is sufficient for running the IDE. If you don't care to use any of the Java 8 features, don't do anything. It should work just fine. It's possible that NetBeans will "discover" both your Java 7 and Java 8 installations and offer both environments as targets for development.

If you choose to target Java 8, everything should compile and run just fine from within the IDE but you may experience problems running outside the IDE because the Java 8 bin is not in your PATH. The way PATH works, Windows searches for an executable in the list of folders from left to right and stops when it finds one that matches. So if you have multiple JDK bin directores in PATH and type "java" on the command line, it will use the first one that it finds. Likely this will be the one in Windows\system (or system32) as installing the JDK copies java into that directory.

Jim
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
gudii9Author Commented:
download the latest JDK with NetBeans IDE Java SE bundle

i got above one only.

he way PATH works, Windows searches for an executable in the list of folders from left to right and stops when it finds one that matches. So if you have multiple JDK bin directores in PATH and type "java" on the command line, it will use the first one that it finds. Likely this will be the one in Windows\system (or system32) as installing the JDK copies java into that directory.

Left to right search answered my question
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.