简体   繁体   中英

Installing JDK and Python and setting the PATH variable on Windows 7

I recently installed Java's JDK and Python in my Windows 7 system. I wanted to access both programs from the command line (whether it be cmd or cygwin) so I used the PATH global variable and entered the path to my JDK. What can I do so that python and JDK are accessed by PATH? What I am doing now is changing the PATH variable every time. Thanks

I'm confused. Are you switching out the paths between the JDK and Python? If that's the case, you can have both paths set in your system's PATH variable. Example: C:\jdk-install\;C:\python-install

  • Right click on "My Computer"
  • Choose "Properties"
  • Click on "Advanced System Settings"
  • Click on "Environment Variables"
  • Find PATH and set it appropriately

Note that only processes started after you change the path will see the change.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM