简体   繁体   English

设置多个环境变量

[英]Setting up multiple environmental variables

I already have a variable named PATH set for my .net 4 framework. 我已经为我的.net 4框架设置了一个名为PATH的变量。 I want to set up a variable for JAVA but when i use a variable-name other than PATH it doesn't get Java working and if i change default .net variable name PATH to something else .net framework gives problem. 我想为JAVA设置一个变量,但是当我使用除PATH以外的变量名时,它不会使Java工作,如果我将默认.net变量名称PATH更改为其他东西.net框架会产生问题。 Whats' the solution? 什么是解决方案?

Regards, Sanket 此致,Sanket

(From comment above) (来自上面的评论)

You could always set the variables inside a launch script. 您始终可以在启动脚本中设置变量。 I'm confused why you need different PATH values for running .NET and Java though. 我很困惑为什么你需要不同的PATH值来运行.NET和Java。 Your PATH usually tells the OS where to look for executables to run. 您的PATH通常告诉操作系统在哪里查找可运行的可执行文件。 If that's really what you're changing, then you should just take the union of the two. 如果这真的是你正在改变的,那么你应该把两者联合起来。 On Windows you just separate each path in the PATH with a semicolon. 在Windows上,您只需用分号分隔PATH中的每个路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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