Setting the path environmental variable in XP and Vista.
It is often convenient to set the path environmental variable to call commands. For example, the "javac MyClass.java" command would use the javac command located in the path to compile the MyClass.java file to an executable. Here is how to set it up:
For Windows XP:
Start-> Control Panel -> System -> Advance Tab -> Environmental Variables.
Select Path -> Edit.
Append ";myPath" to environment variable, where myPath is the directory that contains your resources..
OK
For Windows Vista:
Start -> Control Panel -> System and Maintenance -> System -> Advanced system settings
click Continue
Select Environmental Variables
Select Path -> Edit.
Append ";myPath" to environment variable, where myPath is the directory that contains your resources..
OK
Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.
Thursday, December 6, 2007
Subscribe to:
Post Comments (Atom)
Blog Archive
-
►
2008
(54)
-
►
December
(16)
- Add Google Charts with .NET
- Get the ApplicationName for Stored Procedure Param...
- Get the Current Time for Database Storage
- The Difference Between NVARCHAR and VARCHAR
- Accessing ConnectionString from CodeBehind
- Use ConnectionString Web.config
- Keeping a DropDownList's DataSource Updated
- Use a CustomControl to Set UserId and Use as a Dat...
- Be Careful About uniqueId Parameter in Stored Proc...
- Modifying DataBound Hyperlinks Text
- Remove HTML Tags
- Using AutoComplete Ajax Control With Separate ID F...
- Using LIKE in SQL
- Sorting a GridView
- Using static strings and objects to increase perfo...
- Use securitytrimming to limit role views of Menu a...
-
►
March
(11)
- const and static declarations
- Simulating a time spanned event with the sleep eve...
- Configure SQL Database for User Login
- Running a client-side application using javascript...
- Setting focus in a user control
- Giving Stored Procedure Permissions
- Prevent wrapping in table cell
- Previewing a TextBox that has HTML with a Popup Wi...
- SQL Server Management Studio Express Review
- Unable to cast object of type Foo to object of typ...
- Setting up form for HTML Email and Avoiding HttpRe...
-
►
December
(16)
1 comments:
When I click on "Environment Variables" in Vista, it is different... I see 2 lists: User Variables and System Variables. I click on "New" under System Variables and get 2 fields: Variable Name and Variable Value. So... I guess I put the full path of jdk1.6.0\bin as the Variable Value... but what about Variable Name? I tried to guess what to do, but I couldn't get javac to work without the full path...
Thanks :)
Post a Comment