Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Eclipse in a multiuser enviroment
Eclipse in a multiuser enviroment [message #91580] Fri, 11 July 2003 02:42 Go to next message
Eclipse UserFriend
Hi!

We're are about to install Eclipse in a multiuser enviroment (Linux).
Over time I've seen quite a few posts about Eclipse unawareness of this.
Anyone with experience of this that would like to share it?

What problems are there? What should we think of? etc

Jimisola
Re: Eclipse in a multiuser enviroment [message #91774 is a reply to message #91580] Fri, 11 July 2003 10:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

On Fri, 11 Jul 2003 08:42:18 +0200, Jimisola Laursen wrote:

> Hi!
>
> We're are about to install Eclipse in a multiuser enviroment (Linux).
> Over time I've seen quite a few posts about Eclipse unawareness of this.
> Anyone with experience of this that would like to share it?

It works great!

You should install eclipse to a shared read-only location (such as
/usr/local/lib/eclipse) and create a script that calls eclipse with the
'-data' option in your user's PATH (such as /usr/local/bin/eclipse).

I happen to put eclipse in /usr/local/lib/eclipse-$VERSION-$OS-$WS and
symlink /usr/local/lib/eclipse which works pretty well for upgrades while
allowing the users to specify their own ECLIPSE_HOME environment variable.
(for example /usr/local/lib/eclipse points to
/usr/local/lib/eclipse-2.1.1-linux-gtk on the machine I'm on right now)

I'll include the script I use at the bottom.

The only thing you have to worry about is user-installed plugins. That
hasn't been an issue for me, so I haven't resolve it. I believe you can do
it by modifying the script and using the arguments (-plugins, I believe)
described at:
http://download2.eclipse.org/downloads/documentation/2.0/htm l/plugins/org.eclipse.platform.doc.user/tasks/running_eclips e.htm


> Jimisola

---- START /usr/local/bin/eclipse ----
#!/bin/sh
[ -z "$JAVA_HOME" ] && JAVA_HOME=/usr/local/lib/j2sdk
PATH=$JAVA_HOME/bin:$PATH
[ -z "$ECLIPSE_HOME" ] && ECLIPSE_HOME=/usr/local/lib/eclipse
[ -z "$ECLIPSE_WORKSPACE" ] && ECLIPSE_WORKSPACE=$HOME/.eclipse
[ -z "$LD_LIBRARY_PATH" ] && LD_LIBRARY_PATH=$ECLIPSE_HOME || LD_LIBRARY_PATH=$ECLIPSE_HOME:$LD_LIBRARY_PATH

[ -z "$GDK_USE_XFT" ] && GDK_USE_XFT=0
export GDK_USE_XFT

echo Starting eclipse with the following properties:
echo ECLIPSE_HOME=$ECLIPSE_HOME
echo ECLIPSE_WORKSPACE=$ECLIPSE_WORKSPACE
echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH echo JAVA_HOME=$JAVA_HOME
echo PATH=$PATH
echo GDK_USE_XFT=$GDK_USE_XFT
echo java -version
java -version
echo
echo About to run:
echo $ECLIPSE_HOME/eclipse -consolelog -data $ECLIPSE_WORKSPACE -vmargs -Xmx384M -Xms128M -Xss64M
# cd $ECLIPSE_HOME
$ECLIPSE_HOME/eclipse -consolelog -data "$ECLIPSE_WORKSPACE" -vmargs -Xmx384M -Xms128M -Xss64M
---- END /usr/local/bin/eclipse ----

--
http://zclipse.org
Re: Eclipse in a multiuser enviroment [message #91979 is a reply to message #91580] Fri, 11 July 2003 13:20 Go to previous message
Eclipse UserFriend
Originally posted by: muelleimer.usenet.katzien.de

Hallo!

* Jimisola Laursen <public@jimisola.com> wrote:
> We're are about to install Eclipse in a multiuser enviroment (Linux).
> Over time I've seen quite a few posts about Eclipse unawareness of this.
> Anyone with experience of this that would like to share it?
> What problems are there? What should we think of? etc

In the other post you aready got the a nice startscript, which sould
be used to start eclipse. If you want to get one which forwards more
option, have a look at the debian packages...

What I encountered with the debian packages was basicly this:

* you can't get a plugin dir in $HOME (ok, there is a depricated
option '-plugins', but, when you look in the source code, that is a
*really* big hack now).

* The updatemanager has to be told, that the root site is not
updateable (I think in the end of the wizard it will fail because
the dir is not writeable by the user, but anyway...)

* It hasn't got any possibility (out of the box: with a script
everything is possible) to configure, for example, the workspace
location. Without that menu entries are a pain.

I have patches for the first two, the third can be adressed by the
startscript.

On the other hand I haven't seen it running in a 'more than one user'
system or even a 'more than one user a time' system...

Jan
Previous Topic:Shared launch configurations
Next Topic:Eclipse 2.1.1 slow loading
Goto Forum:
  


Current Time: Wed May 28 22:26:37 EDT 2025

Powered by FUDForum. Page generated in 0.03921 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top