Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » running eclipse on network drive
running eclipse on network drive [message #755602] Tue, 08 November 2011 22:10 Go to next message
julius  is currently offline julius Friend
Messages: 17
Registered: October 2011
Junior Member
hi,

i need to run eclipse on a windows host as a user, no access to admin.
i want all user data thats created by eclipse to end up in Z:\portable\eclipse-userdir

this works well with a installed java portable in Z:\portable\java and eclipse in Z:\eclipse\EclipsePortable

a shortcut with -vm Z:\portable\java\bin and eclipse starts.

now i also need egit, installation worked fine but when importing a project it says that HOME is not set.

i tried different ways of setting home and failed so far, its exhausting.
the last one i tried is:
Z:\portable\EclipsePortable\EclipsePortable.exe -vm Z:\portable\java\bin -vmargs -Duser.home=Z:\portable\eclipse-userdir

which doesnt work either

but how do i tell eclipse to accept arguments for the vm?

[Updated on: Tue, 08 November 2011 22:17]

Report message to a moderator

Re: running eclipse on network drive [message #755715 is a reply to message #755602] Wed, 09 November 2011 11:25 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 08.11.2011 23:10, julius wrote:
> hi,
>
> i need to run eclipse on a windows host as a user, no access to admin.
> this works well with a installed java portable in Z:\portable\java and
> eclipse in Z:\eclipse\EclipsePortable
>
> a shortcut with -vm Z:\portable\java\bin and eclipse starts.
>
> now i also need egit, installation worked fine but when importing a
> project it says that HOME is not set.
>
> i tried different ways of setting home and failed so far, its exhausting.
> maybe it's:
> java -Duser.home=<new_location> <your_program>
>
>
> but how do i tell eclipse to accept arguments for the vm?
Simply set the 'HOME' environment variable before starting the VM, e.g.
SET HOME=<my home for Git>
java ....

Note that EGit will use this for two things:
1) It reads the user settings (HOME/.gitconfig) from there.
2) It uses it as default location for new and cloned repositories

Dani
Re: running eclipse on network drive [message #755794 is a reply to message #755715] Wed, 09 November 2011 15:41 Go to previous message
julius  is currently offline julius Friend
Messages: 17
Registered: October 2011
Junior Member
youre right, putting these two lines in a .bat file works
set HOME=Z:\portable\eclipse-userdir
eclipseportable.exe -vm Z:\portable\java\bin


and setting the workspace location to the network drive of course.


Previous Topic:how do i open a page from search result in new tab?
Next Topic:Creating an AVD
Goto Forum:
  


Current Time: Thu Jul 29 13:04:28 GMT 2021

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

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

Back to the top