Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

How to set up Java environment variables in windows 7

The video shows how to find the path to the Java installer and enter as the variable value in widows 8, but I need to know how to find the path to the Java installer in windows 7. If anyone knows how, your help would be appreciated.

2 Answers

Grigorij Schleifer
Grigorij Schleifer
10,365 Points

Hi Jimmy,

Here are the steps:

- From the desktop, right click the Computer icon.
  • Choose Properties from the context menu.
    • Click the Advanced system settings link.
    • Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit.
      If the PATH environment variable does not exist, click New.
    • In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click
      OK. Close all remaining windows by clicking OK.

// you will need to choose a directory where you want to set it.

default directory is "C:\Program Files\Java\jdk1.6.0_17\bin"

Here a video:

https://www.youtube.com/watch?v=P6NeRfcJtdU

or this StackOverflow link:

http://stackoverflow.com/questions/1672281/environment-variables-for-java-installation

NO, I have another problem. when I click on Java mission control I get this message.

{No local (attachable) JVMs were detected, not even the JVMs running this instance of java mission control. Local JVMs will not be detected if the Java mission control client is run with a JRE instead of JDK or if the hsperfdata_ folder in TMP is not writable. see the FAQ help section For more information.} I need to know why I am getting this message and what steps can be taken to fix it. I believe this may may be why I can't run android studio.