Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #35241

Re: eclipse workdir copied to new machine ... fail

From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: eclipse workdir copied to new machine ... fail
Date 2016-08-10 11:07 +0000
Organization A noiseless patient Spider
Message-ID <nof1ua$ln3$1@dont-email.me> (permalink)
References <slrnnqjmr8.456.avl@login.logic.tuwien.ac.at>

Show all headers | View raw


On Tue, 09 Aug 2016 13:32:24 +0000, Andreas Leitgeb wrote:

> I had eclipse on my old machine (Ubuntu 14.04 32bit) and moved the
> complete home directory to a new machine (Ubuntu 16.04 64bit) Eclipse on
> old machine was 3.7.0, on new machine is 3.8.1
> 
> When I start eclipse on new machine, it shows my projects, but appears
> to have no idea about languages... it doesn't syntax highlight the Java
> sources.
>
> Any similar experience with solution?  Any idea off the top of head?
>
I haven't tried this with Eclipse or on Debian, but...

On my usual Fedora systems I've sorted out similar package-related 
problems by removing and reinstalling the package with DNF (thats' 
Fedora's equivalent of apt-get). So far that approach has worked OK and 
hasn't lost anything I wanted to keep - AND - I end up still running 
distro-maintained applications. 

My guess is that it works because no part of a package's contents is ever 
put into a /home directory, so the remove/install cycle doesn't try to 
change user-local settings. A well-written package should look at the 
user-specific configuration and upgrade it as needed When you first run 
the newly installed version.

If I need something that isn't included in a a distro's standard or extra 
packages, i.e. I've have to compile it locally, I *always* fiddle the 
autoconfig and/or make files to install it in /usr/local/bin and to put 
its default configuration in /usr/local/etc because this minimises 
interference with standard distro packaged stuff. 

I also move /usr/local to /home/local, replacing /usr/local with a symlink 
to /home/local. Since /home is in a separate partition which isn't 
affected by a distro install or upgrade this means that my self-compiled 
applications automatically survive distro reinstalls or upgrades.

I hope the above is useful and isn't regurgitating too much that you 
already know.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

eclipse workdir copied to new machine ... fail Andreas Leitgeb <avl@logic.at> - 2016-08-09 13:32 +0000
  Re: eclipse workdir copied to new machine ... fail Andreas Leitgeb <avl@logic.at> - 2016-08-09 23:25 +0000
    Re: eclipse workdir copied to new machine ... fail Arne Vajhøj <arne@vajhoej.dk> - 2016-08-09 20:34 -0400
      Re: eclipse workdir copied to new machine ... fail Andreas Leitgeb <avl@logic.at> - 2016-08-10 14:54 +0000
  Re: eclipse workdir copied to new machine ... fail Martin Gregorie <martin@address-in-sig.invalid> - 2016-08-10 11:07 +0000
    Re: eclipse workdir copied to new machine ... fail Andreas Leitgeb <avl@logic.at> - 2016-08-10 15:17 +0000
      Re: eclipse workdir copied to new machine ... fail Martin Gregorie <martin@address-in-sig.invalid> - 2016-08-10 16:44 +0000

csiph-web