# How to run Eclipse from your USB key?

Having a runnable copy of Eclipse on your <span class="caps">USB</span> drive is very handy. Here is how to set up Eclipse + <span class="caps">JDT</span> on your <span class="caps">USB</span> key. It assumes that your <span class="caps">USB</span> key is inserted as F:

**Prepare Eclipse**

- Download Eclipse Platform and <span class="caps">JDT</span> from [http://www.eclipse.org/](http://www.eclipse.org/)
- Extract the content of the two files to the directory “F:\\Eclipse”

**Prepare <span class="caps">JDK</span>**

- You have to have Java Development Kit (<span class="caps">JDK</span>) installed on your computer first. Get <span class="caps">JDK</span> from [http://java.sun.com](http://java.sun.com)
- Suppose <span class="caps">JDK</span> is installed at “C:\\<span class="caps">JDK</span>”, copy the content of the directory “C:\\<span class="caps">JDK</span>” to the directory “F:\\<span class="caps">JDK</span>”

**Create a start-up batch file**

You could type the following commands every time you want to start Eclipse, or (highly recommended!) save the following commands to the file “F:\\eslipse.bat”. Then you just need to double-click this file to start Eclipse.

*@echo off*  
*set JAVA\_HOME=“\\<span class="caps">JDK</span>”*  
*set ECLIPSE\_HOME=“\\Eclipse”*  
*set <span class="caps">PATH</span>=%JAVA\_HOME%\\bin;%<span class="caps">PATH</span>%*  
*<span>ECLIPSE\_HOME</span>\\eclipse.exe*

**Done**