Set Environment Variables¶
JAVA_HOME variables must be set to use many of intaQt's features. The following platform-specific instructions explain how to:
ANDROID_HOMEvariable to the location where QiTASC Cockpit has installed Android SDK.
JAVA_HOMEenvironment variable to the location where QiTASC Cockpit has installed Java JDK.
Add paths to the
PATHvariable so that your system can find the executables for
|These instructions assume that you have installed Android SDK and Java via the QiTASC Cockpit and have them installed in the default locations (in other words, the location that the QiTASC selects by default).|
1. Set the Environment Variables - Windows Users¶
ANDROID_HOME path for Android SDK, by:
Opening the Control Panel ->
View Advanced System Settings.
Selecting Environment Variables button ->
Browse Directory...to find the location where SDK is installed.
- If you have used the QiTASC Cockpit's default values, the path is
Repeat these steps for
ANDROID_HOME, but select the directory where you have installed your Java JRE or JDK.
Adding two paths to the
JAVA_HOME environment variables is mandatory. This can be done by editing each of them to include a path to the
ANDROID_HOME- Add the location where
adbis installed. By default, this should be in the
platform-toolsfolder, which is a subfolder of the Android SDK folder. For example,
JAVA_HOME- Add the location where the
javaexecutable is installed. By default, this should be in the
JAVA_HOME. For example,
Test your settings by opening a command prompt and type
java -version and
2. Set the Environment Variables - Mac OS¶
Open a new session in command line and enter the following:
touch .bash_profile open .bash_profile
A text editor will open, which may either be empty or will contain preferences and environment variables. Leave this editor open: you will need to paste the locations of your Java and Android SDK there.
|Make sure that you have the following ready to paste into the text editor:|
|* the path to your Java|
|* the path to your Android SDK platform-tools|
3. Set JAVA_HOME¶
Return to the commnand line and enter
which java. The response should be
/usr/bin/java. Next, find out the Java version by entering
Return to the text editor and enter the following:
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8.0_66) ## 1.8.0_66 is the Java version. If you are using a different Java version, enter ## that number instead.
Save the file and return to the command line .
JAVA_HOME is set by entering:
Entering the above, will produce an output that looks similar to:
4. Set ANDROID_HOME¶
Find the path to your Android SDK, which was installed from the QiTASC Cockpit. By default, it is installed at:
Copy the path, then enter the following into the the text editor, below the
<AndroidPath> with your path:
Save the file and return to the command line.
5. Set PATH Variable¶
Set the PATH variable by pasting the following into the text editor window:
Once again, save the profile and close it.