Advertisement

Simple linux question

Started by January 22, 2004 04:04 AM
8 comments, last by matias suarez 20 years, 9 months ago
I have one installation of Xandros 2 (desktop version) and it comes with jre 1.4.1. I managed to install 1.4.2 on it but something that i don''t really understand: the java installation appears under /java/j2sdk1.4.2_03/ it also appears under /user/java/j2sdk1.4.2_03 ? I looked with the xandros file manager to see if it is a symbolic link but is not. As far as i understand installing something in linux if fairly trivial as is just put it in a directory, sometimes do some set and path stuff but not registry nightmares (well yes, dependencies over other things can be a nightmare ) Am i missing something or i do need to have those ''two installations''???? Thanks for any help! -Mat
Are the contents of the folders different?

If not the case, then there is a strange thing happening...

-
CL Game Studios. Probably.
Advertisement
Well, the one under /user/java... doesn''t work so i presume they are (if I use it it throws java.lang.Object not found), i don''t know how it got there during the installation anyway.

-Mat
Could you just turn the folder into a symbolic link to the broken folder?
I mean broken folder into link to working folder...(no more AP''s for me...)
geee i renamed the directory under /usr/java and my /java/ version keeps working
i deleted the /usr/java directory and my /java version still works so i presume i did some stupid at some point.
I tried first to install the rpm version but it tried to connect to the xandros network, since that machine cannot connect to the internet (because im using my company network and i couldn''t set up the adsl access on it) i cancelled it at some point, it may be then that it somewhat continued to install but didn''t finish or something.
The other installation was the script one (not the rpm distribution) or at least that is what it seems to be.
Either way, i can use, compile and execute java (well not under X, it uses the 1.4.1 configured in xandros) but hey! i''m doing some progress here!

Thanks for the help!

-Mat
Advertisement
quote: Original post by matias suarez
As far as i understand installing something in linux if fairly trivial as is just put it in a directory, sometimes do some set and path stuff but not registry nightmares


I''m afraid that''s wrong. With Windows files get placed (mostly) in a single directory, which makes it easy to remove. However there is that registry nastiness. With Linux (and other Unices) there is no central registry, but files get spread across several different folders according to what those files are. For example, binary files generally go into /usr/bin, data files often go into /usr/share/XYZ (XYZ being the name of the package), libraries go to /usr/lib, includes to /usr/include, and config files go into /etc. (It looks like everything but config files is put into /usr, but that''s not the case. Most of it does, but there are some things, particularly system admin stuff, that go into /bin, /sbin, /lib, et al.)

Now, Windows has Add/Remove Programs. Linux has similar solutions (deb, rpm, etc) which act similarly, so removal of a package is not a problem. This is one reason why it is generally preferred to install packages that suit your system (in this case Xandros debs). Did you install a deb or something else?

Image loads when I''m online since I''m too lazy to find a permanent host.The following statement is true. The previous statement is false.
Shameless promotion:
FreePop: The GPL Populous II clone.

My stuff.Shameless promotion: FreePop: The GPL god-sim.
a lot of people think linux''s scheme is craxy and try to subvert it with things like /opt

those people are crazy.

installing stuff in one folder has only one benefit: everything''s right there.

having centralized folders is a massive improvement. especially when you start getting into things like security. (try running tripwire on a machine where executables are scattered all over creation)
Well, at first i tried the rpm and it tries to connect to xandros network but my net wasn''t up''n running yet.
Confusing messages appeared that it was unable to connect to xandros and at the same time that it was installing it.
It was actually installing it but i got an error (can''t remember now), i wait for a while since it wasn''t clear if it was doing something or not and then i closed it.
Then i tried the other installation that comes with a script instead of the rpm, once i set up the paths and a symbolic link (usr/bin/java) to point to /java/j2sdk... it started working ok.
Now everything seems to be working ''almost'' ok except that xandros network always tell''s me that there''s a problem with some installed software but to be honest, i can live with that

About Install/remove on windows i just hate it, your computer will allways get to a point where you *have* to reinstall the entire os (preferably *erasing* the previous installation or it will ''upgrade the thrash'' for you).
Is just a matter of time but it allways happens that boot time will get worst and worst as you install/uninstall, even defragmenting the hd and perform some registry cleanup.
I prefeer to deal with files spreaded across my hd rather than those annoying uuid that pollutes your registry, maybe i will change my mind after some months of dealing with those orphanded files in linux?

Is there such thing as a disk defragmenter on linux?

-Mat
quote: Original post by matias suarez
Is there such thing as a disk defragmenter on linux?

Have an overly informative link .

This topic is closed to new replies.

Advertisement