answersLogoWhite

0

How do you set java environment variables?

Updated: 8/18/2019
User Avatar

Wiki User

12y ago

Best Answer

You need to set The CLASSPATH variable which is an argument set on the command-line that tells the Java Virtual Machine where to look for user-defined classes and packages in Java programs. Syntax is java -classpath "path to the packages". Set the PATH variable if you want to be able to conveniently run the Java 2 SDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. To set the PATH permanently, add the full path of the j2sdk1.4.2_version\bin directory to the PATH variable.

-sravyaa

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you set java environment variables?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you set environment variables?

Which sort of environment varibles? In Windows? Right-click my computer -> Properties -> Advanced -> Environment Variables -> New... You can creatwe user variables or system variables... cheers


What are environment variables?

Environment variables are a set of dynamic values that can affect the way running processes will behave on a computer.


Variable vs property in net?

Property allows access to a variables like a get-set method in Java.


What is the purpose of the DOS set command?

SET is for viewing and changing environment variables as well as storing and manipulating your own variables in batch scripts.


How do you set classpath for java?

Classpath for Java can only be set depending on what system is being used. The environment also has to be specified in order for Classpath to work at its best.


What are the differences between C and Java reference variables?

Java does not have the concept of Reference Variables. We cannot access the memory location where the data is stored in Java.


Does java consider the variables Hello and hello to be different variables?

no


Why there are no global variables in java?

Global variables are globally accessible. Java does not support globally accessible variables due to following reasons:The global variables breaks the referential transparencyGlobal variables creates collisions in namespac


What is the syntax of global variable in java?

There's no global variables in Java.


How we can get address of variables in Java as pointer variables in C?

At any given point of time you cann't get the address of a variables of java program. This is meant for security purpose only.


In java all variables declared using a class are?

Reference variables


Are static variables serialized in java?

No, static variables are not serialized.