Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The geeko might be cooler, but Tux is warmer
How is original java got installed? Is it kaffe?
Find the appropriate RPM and remove it (can be kaffe).
Other solution is to place java 1.4 in your path before the directory where the original java is. For instance,
which java
might return
/usr/bin/java
Java 1.4 is under /usr/java/bin/java
so make you PATH to point to the newer java first
export PATH=/usr/java/bin:$PATH
to make it permanent add this line
PATH=/usr/java/bin:$PATH
in /etc/profile before
export PATH YADA BLAH
hmmm, BIG problem. I checked the /etc/profle file and it had ONE instance of the word PATH. It looked like this EXACTLY
Quote:
export PATH
So I put the following line BEFORE this statement:
PATH=/usr/java/j2re/bin:$PATH so it looks like
Quote:
PATH=/usr/java/j2re/bin:$PATH
export PATH
And then I had to reboot (as my machine froze while doing something else). I come to booting up the mahcine again, and I'm in runlevel 3 (multi user console). Now since the ath got changed NONE of the commands work. And I mean NONE. Not even ls !!!
I tried ls, startx, and vi and they all don't work (bad command, etc...). The ONLY command that DOES work is cd.
I closed the file before the system froze. I was working on something entirely different in a console prompt (compiling a screen saver) when the system froze. In Any case, Im stuck with a pretty much useless Linux. Unless I can quote-unquote "fix" it I will be forced to re-install it
u probably overwrote the PATH variable. that is a real bad thing to do in linux. i did that myself a couple days ago. when booting the system it does not have any programs to mount sth and there's nothing more to say .
Suse defines the PATH in /etc/rc.config. so if u want to make changes or add java to the path u should be f***ing careful if u don't know exactly what you're doing
for the future:
place that under the definition of the PATH.
if u chmod 0666 /etc/rc.config u might have access to it using the user bash.
if u set the PATH for java in your /home/user/.bashrc first before editing the etc/rc.config -> then
`source ~/.bashrc'
and your user bash is still working u can apply the same changes to etc/rcconf
keep going!
jens
1. u have point it to j2sdk-version/bin not to j2re
then
2.
type
'java -version' logged in as user
it's normal that u don't get sth just typing
'java'
i guess it should be working -
cheers, jens
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.