The Dopefly Tech Blog

<< The Dopefly Tech Blog Main page

Run Eclipse from your portable USB drive

posted under category: CFEclipse on February 28, 2009 at 1:00 am by MrNate

I've got to admit that running basically everything from my USB drive is really nice sounding. Portable everything. I love Let's talk about running Eclipse portable.

Step 1: Download Eclipse, extract to portable drive
Step 2: Download Java, extract or install to portable drive
Step 3: Make a new workspace folder on the drive
Step 4: Rig up a batch file or shell script to run it all together. Here is what it needs to have for windows:

@echo off
cd eclipse
start eclipse -vm ../java/bin/javaw -data ../workspace

You'll see it may take only a few seconds longer to start than running it off your HDD.

Once started, you can import your projects into the workspace, add plugins and do your work from right there, all completely self-contained.

I did this initially for my Ant/Groovy presentation. I had my presentation online with Google Docs, and my demos from the flash drive. The idea was to use somebody else's PC, come with nothing to install and leave with nothing to clean up. It worked almost perfectly -- Alan had warned me about his PC, but when I ran the live demo anyway, Ant froze, Eclipse crashed, and I was out of time. Bummer! Anyways, not to detract from the subject, it did work on 3 other PCs. I'm just giving out creative ideas here.

Of course, if you're like me, to use this as your main IDE, you'll want a web server and something that runs CFML. I'm not there yet, but I know some other folks are doing just that.

Too old to comment!
On Nov 23, 2012 at 1:00 AM AwatemonoSan (awatemonosan at the ever famous said:
when you say download java do you mean the sdk or the runtime?

On Nov 23, 2012 at 1:00 AM Nathan Strutz ( said:
Good question. I am willing to wager that the Java install type doesn't matter. I don't think Eclipse cares. That said, if you are developing Java apps, you might actually want the JDK. Its larger install size may not be good for your portable drive, but you will cover all your bases.

On Nov 23, 2012 at 1:00 AM AwatemonoSan (awatemonosan via said:
Awesome! I'll come back with my success story in a few minutes :)
Too old to comment!