PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

javajre version question on FC4


Your Ad Here

Your Ad Here

Max

Reconfiguring FC4's default Java configuration, this is done as root or equivalent.

First removevar-lib-alternatives-java file by typing;

rmvar-lib-alternatives-java

Recommend a very light Linux distribution for very old computer 448
I'm not sure how much help this will be, but I'm running Debian "etch" with...

When asked press the 'y' key,

Now to create the new (corrected) alternatives file for java type the following commands as root (modify for jdk as needed);

usr-sbin-alternatives --installusr-bin-java javausr-lib-jvm-jre-1.4.2-gcj-bin-java 1

usr-sbin-alternatives --installusr-bin-java javausr-java-j2re1.5.006-bin-java 2

usr-sbin-alternatives --config java

You should now see for example:

There are 2 programs which provide 'java'.

Selection Command ----------------------------------------------- 1 usr-lib-jvm-jre-1.4.2-gcj-bin-java *+ 2 usr-java-j2re1.5.006-bin-java

Enter to keep the current selection+, or type selection number:

In the example above java is already configured correctly *+ 2 to use Sun's Java, no changes are needed, just press the Enter key here. If you have been following the instructions then you should have the same results (version numbers may be sightly different).

Now type;usr-sbin-alternatives --display java

Recommend a very light Linux distribution for very old computer 447
On Sat, 11 Feb 2006 14:35:16 -0800, hdneto17 Can you put another 256M into the machine?, with 384 you...

You should see for example;

java - status is manual. link currently points tousr-java-j2re1.5.006-bin-javausr-lib-jvm-jre-1.4.2-gcj-bin-java - priority 1usr-java-j2re1.5.006-bin-java - priority 2 Current `best' version isusr-java-j2re1.5.006-bin-java.

Next you might want to create (or edit)etc-profile.d-java.sh file, example below;

export JAVAHOME="-usr-java-jre1.5.006-bin" export JAVAPATH="$JAVAHOME"

When done creating or editing the file type;

sourceetc-profile.d-java.sh

Now any user root or other wise should be able to use the command;

which java

Recommend a very light Linux distribution for very old computer 449
Which distro you use won't matter that much ;-) Your 500 MHz (Pll or Plll?) won't be a hindrance for most things. I'm connected now with an old Pll-350 and it's quite adequate if not...

and the results should read something like;

usr-java-jre1.5.006-bin-java

Also any user root or other wize should be able to use the command;

java -version

and the results should read something like;

java version "1.5.006" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.006-b05) Java HotSpot(TM) Client VM (build 1.5.006-b05, mixed mode, sharing)

That's it, all done.

-- "A personal computer is called a personal computer because it's yours, Anything that runs on that computer, you should have control over." Andrew Moss, Microsoft's senior director of technical policy, 2005



Your Ad Here

List | Previous | Next

Recommend a very light Linux distribution for very old computer 447

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

What is a good Linux 'Clone' apt or procedure