You are here

Portable Eclipse?

21 posts / 0 new
Last post
nm35
Offline
Last seen: 17 years 5 months ago
Developer
Joined: 2005-12-12 17:13
Portable Eclipse?

This is just a thought, but...

Eclipse could be made portable, with references to a JRE-on-a-stick, could it not? Then we could package a version for download with a launcher, and include the NSIS IDE for Eclipse

What do you think?

~nm35
» http://geekspot.wordpress.com

Jagerkatze
Offline
Last seen: 17 years 3 months ago
Joined: 2005-12-13 19:16
Done it...

I've done that already. I actually didn't need to install JRE since it was on my computer, and I think that most computers pretty much have it by now. I just installed straight to the Flash Drive.

Ashes for Tears
Offline
Last seen: 16 years 5 months ago
Joined: 2006-01-11 08:41
I dunno, Jagerkatze, I think

I dunno, Jagerkatze, I think nm35 has a good idea. In my circle, it does seem to be rare, but I have encountered a few (weird) computers nith no, or outdated Java. Anyways, unless one is strapped for space, it couldn't hurt, right? Smile

jimjams
Offline
Last seen: 17 years 2 months ago
Joined: 2005-12-12 04:56
Have jre1.5 and eclipse on

Have jre1.5 and eclipse on my usb key and it works like a breeze...

Rob Loach
Rob Loach's picture
Offline
Last seen: 15 years 6 months ago
Developer
Joined: 2005-12-09 17:29
Steps

Can anyone post the steps they took to get it working?

Rob Loach [Website] [Projects]

nm35
Offline
Last seen: 17 years 5 months ago
Developer
Joined: 2005-12-12 17:13
Correct me if I'm wrong, but

Correct me if I'm wrong, but can't you just dump the JRE into the eclipse/ folder or something?

Some OOo features use JRE -- did JH figure out how to make that JRE portable, or is it just left out?

~nm35 {blog} {projects} {standalone apps}

Ryushi
Offline
Last seen: 15 years 6 months ago
Joined: 2005-12-09 09:30
Restricted functions in OOo because of missing JRE

No, it is left out (for now).

Cya Ryushi

jimjams
Offline
Last seen: 17 years 2 months ago
Joined: 2005-12-12 04:56
Copy JRE from your host disk

Copy JRE from your host disk to USB, copy Eclipse on your USB, run Eclipse, go to preference, tell Ecplipse to use the JRE on your USB, close it, done.
Run it from the JRE on your usb (I use a .bat, T: is my usb disk):

path=T:\Tool\JRE\bin\;%path%;
eclipse.exe

agel
Offline
Last seen: 11 years 4 months ago
Joined: 2006-08-17 12:38
You should use the JDK...

Jep, this topic is old, but I recently deal with it, so who cares?
The steps for a portablEclipse aren't that hard:

  1. get Eclipse and extract it to your portable drive
  2. install a JDK on your or any other PC (I really mean the Java Development Kit, not the JRE - anyway, both should work).
    The default installation path should be something like "C:\Programs\Java", containing a folder named "jdk1.5.0_xx"
  3. create a subfolder "JDKs" in your eclipse folder (depending on your drive letter and extraction path this should look like P:\someFolders\eclipse\JDKs
  4. copy the jdk1.5.0_xx folder into the JDKs folder. (like P:\someFolders\eclipse\JDKs\jdk1.5.0_xx)
  5. edit the file "P:\someFolders\eclipse\eclipse.ini" to
    -vm
    ..\JDKs\jdk1.5.0_xx\bin\javaw
    -vmargs
    -Xms40m
    -Xmx256m

    (replace "jdk1.5.0_xx" with the actual folder name)
    This is more elegant than using a batch file due to being independent from drive letters and path variables.

  6. go to a pc with OR WITHOUT java installed. Connect your portable drive and run "P:\someFolders\eclipse\eclipse.exe"
  7. when asked for a workspace location, you can enter ".\workspace", which will create a workspace in your eclipse folder (like "P:\someFolders\eclipse\workspace\")
  8. do javanese Wink

I tested this under winXP home with Eclipse 3.1.2 and JDK 1.5.0_08 and it simply... works!

PollieXmas
Offline
Last seen: 12 years 10 months ago
Joined: 2006-05-10 16:03
Tx

Thank you Agel

You instructions helped me to get it working portably.

I use Eclipse 3.1.2 and j2sdk1.4.2_06 on a USB HDD.

Could not get it to work with Eclipse 3.0 as it did not have an eclipse.ini file.

Regards
Paul

cjwprostar
Offline
Last seen: 15 years 8 months ago
Joined: 2006-09-11 17:29
Projects in different directories

I have Eclipse running on my thumb drive, but when I create a project using the "Create project from existing source" option, it won't work if I change computers where the drive letter is different. Anyone know of a way to fix this?

Thanks,
Chris

The #1 programmer excuse for legitimately slacking off: "My code's compiling." --xkcd

agel
Offline
Last seen: 11 years 4 months ago
Joined: 2006-08-17 12:38
Drive Letter Workaround

As the Subject says, it is more of a workaround than actually a solution. To really solve this, you would have to add a "use relative paths" option to Eclipse, which I imho really miss.

Create a batch file containing

@echo off
subst %~d0 V:\

and save it to your Portable. The SUBST command is designed to substitute something like "C:\MyLotsOfFolders\OneOfThem\ThisOne\IMeanThis\" to a new drive letter like "V:\".

The %~d0 in the batch expands to the drive letter of the full path name of the batch.

Executing this batch should then create a new Drive Letter V containing all the Data of your Portable. When creating projects, just save them in V:\MyProjectBlah\ instead of P:\MyProjectBlah\ (where P:\ shall be the drive letter Windows 'knew' you were about to choose when plugging in the device ;))

before removing the Portable you should run (maybe in a batch?)

subst V: /D

which drops the substitution for drive letter V:\

I haven't tried all that, but I hope that helps you out. Post a feedback!

By the way: This should generally solve the problem of changing drive letters except for the fact that your desired drive letter (V:\ in example) might already be in use. "B:\" should work on most computers.

zepinto
Offline
Last seen: 17 years 2 months ago
Joined: 2007-01-06 10:16
at least 3.2 as an eclipse.ini file

Well, I'm using Eclipse 3.2 (Yoxos Distro) and Java 1.6.0 and here's how I've done:
1) Had a working eclipse installation in my local hard drive
2) Copied the 'eclipse' directory to my desktop (lets call it %DESKTOP%)
3) Copied 'C:\Programs\Java\JDK1.6.0\jre\' to '%DESKTOP%\eclipse\'
4) Edited the file %DESKTOP\eclise\eclipse.ini and added the line:
-vm .\jre\bin\javaw
5) Renamed the original workspace directory just to have eclipse ask me where my workspace will be...
6) Launched '%DESKTOP%\eclipse.exe'
7) When prompted, I entered '.\workspace' for the workspace directory and checked 'Use this as default and do not ask again'
8) That's it. To test this portable eclipse installation just move it around and verify that it still works... even in computers with no JVM.

PS: The fun comes when you install the subeclipse plugin and can checkout/commit your code on the run. Nice!

ripcrd
Offline
Last seen: 14 years 10 months ago
Joined: 2006-09-06 15:57
Space for Eclipse

How much space does this setup require? I think the download for Eclipse is at least 30MB by itself.

Somewhere there is a village missing an idiot.

Somewhere there is a village missing an idiot.

Bahamut
Bahamut's picture
Offline
Last seen: 12 years 3 months ago
Joined: 2006-04-07 08:44
Eclipse requires more than

Eclipse requires more than 100MB by itself, and the JDK requires about 40, IIRC.

Vintage!

tlucas
Offline
Last seen: 15 years 7 months ago
Joined: 2006-04-30 12:32
Why JDK?

Why should one use use the JDK if the JRE will work and is a lot smaller in size? Are there any functions which would be restricted? Please enlighten me.

---

tlucas

Preacher
Offline
Last seen: 9 months 2 weeks ago
Joined: 2006-11-13 16:52
Function

I never heard of this app.
Can anyone post the function that this proggy performs?
Thx.

"I don't hate cats...as long as they stay on the freeway, where they belong."
- Brad Stine

learn2laugh
Offline
Last seen: 1 month 2 weeks ago
Joined: 2007-01-30 20:26
Functions More Like

[A]n open development platform comprised of extensible frameworks, tools and runtimes for building, deploying and managing software across the lifecycle.
Basically it is many things. I use it for a python and Java IDE. Check it out on the web at Eclipse.org.

------------
Jeffrey Wiggs
Loving God and Learning Laughter

---
Jeffrey Wiggs
Loving God and Learning Laughter

jordoex
Offline
Last seen: 17 years 1 month ago
Joined: 2007-01-22 16:20
Needs to be compacted, Eclipse way too bloated

i put it on my stick, sure it works, but it's so darn bloated!! Is there any way to remove unnessesary or unused features to make a smaller portable eclipse?

McStarfighter
Offline
Last seen: 14 years 1 month ago
Joined: 2006-11-22 18:46
You can use an UPX GUI like

You can use an UPX GUI like UPX Shell (upxshell.sourceforge.net). So you can compress the most files.

tlucas
Offline
Last seen: 15 years 7 months ago
Joined: 2006-04-30 12:32
Which ones?

Some Executables don't like being 'UPXed'. Do the java executables all accept 'UPXing'?

Topic locked