Re: [newbie] java again
There should be a symlink/usr/java pointing to your java executable. Yours appears to be pointing to the kaffe executable. just delete it and remake it with the correct destination. 'whereis java' will tell you where any symlinks or executables are on your system. Kaffe sometimes gets installed as a dependency without you intending it. The server wizards for example list kaffe as a required dependency. derek On Sunday 06 January 2002 01:28, Eric McClure wrote: For some reason I had to install jre to get konqueror to see my apps. but when i type in 'java -version' kaffe comes up! it use to read j2sdk1.4.0 what gives? also I've tried to modify my .bashrc but it seems the changes don't take affect. what is the permissions for .bashrc? Is it 755? thanks, eric l. Mcclure Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] java again
On Saturday 05 January 2002 11:06, you wrote: I uninstalled kaffe and now it works. I didn't have to do this before. I thought there might be a way of setting a hard pointer to a directory or symlink but as they say, you can't have two java versions running on the same computer. The major and minor version errors are now fixed. Just like I said, written with sdk1.4.0 and using kaffe's appletviewer caused this error. But I swear I didn't uninstall kaffe last time and everything worked! ? Eric L. McClure p.s. I love this stuff! I must be insane! try uninstalling kaffe through mandrake control center. then edit your .bashrc and add the full path to your jdk1.4.0 bin dir to the PATH env, save .bashrc, and then type source .bashrc command at the prompt. then type: java -version and see what happens... At 20:28 02/01/05 -0500, you wrote: For some reason I had to install jre to get konqueror to see my apps. but when i type in 'java -version' kaffe comes up! it use to read j2sdk1.4.0 what gives? also I've tried to modify my .bashrc but it seems the changes don't take affect. what is the permissions for .bashrc? Is it 755? thanks, eric l. Mcclure Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] java again
On Sunday 06 January 2002 09:29 am, Eric McClure wrote: On Saturday 05 January 2002 11:06, you wrote: I uninstalled kaffe and now it works. I didn't have to do this before. I thought there might be a way of setting a hard pointer to a directory or symlink but as they say, you can't have two java versions running on the same computer. The major and minor version errors are now fixed. Just like I said, written with sdk1.4.0 and using kaffe's appletviewer caused this error. But I swear I didn't uninstall kaffe last time and everything worked! How did you configure konqueror, I have the jre installed in /usr/local/j2re1.3/ But I can't seem to get konqueror to use it. I went to konqueror settings java an entered the location Any tips? TIA Gerald Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] java again
On Sunday 06 January 2002 15:30, you wrote: you almost had the path, try: /usr/local/j2re1.3/bin/java let me know, eric also check the box enable java globally, and there is a java console checkbox to check if you want On Sunday 06 January 2002 09:29 am, Eric McClure wrote: On Saturday 05 January 2002 11:06, you wrote: I uninstalled kaffe and now it works. I didn't have to do this before. I thought there might be a way of setting a hard pointer to a directory or symlink but as they say, you can't have two java versions running on the same computer. The major and minor version errors are now fixed. Just like I said, written with sdk1.4.0 and using kaffe's appletviewer caused this error. But I swear I didn't uninstall kaffe last time and everything worked! How did you configure konqueror, I have the jre installed in /usr/local/j2re1.3/ But I can't seem to get konqueror to use it. I went to konqueror settings java an entered the location Any tips? TIA Gerald Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] java again
On Sunday 06 January 2002 15:30, you wrote: /usr/java/j2re1.4.0/bin/java this is where mine is located, and I just noticed that you said usr/local make sure that's where the jre is by typing whereis j2re. take care, Eric L. McClure On Sunday 06 January 2002 09:29 am, Eric McClure wrote: On Saturday 05 January 2002 11:06, you wrote: I uninstalled kaffe and now it works. I didn't have to do this before. I thought there might be a way of setting a hard pointer to a directory or symlink but as they say, you can't have two java versions running on the same computer. The major and minor version errors are now fixed. Just like I said, written with sdk1.4.0 and using kaffe's appletviewer caused this error. But I swear I didn't uninstall kaffe last time and everything worked! How did you configure konqueror, I have the jre installed in /usr/local/j2re1.3/ But I can't seem to get konqueror to use it. I went to konqueror settings java an entered the location Any tips? TIA Gerald Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] java again
On Sun, 6 Jan 2002 09:29:41 -0500 Eric McClure [EMAIL PROTECTED] wrote: On Saturday 05 January 2002 11:06, you wrote: I uninstalled kaffe and now it works. I didn't have to do this before. I thought there might be a way of setting a hard pointer to a directory or symlink but as they say, you can't have two java versions running on the same computer. The major and minor version errors are now fixed. Just like I said, written with sdk1.4.0 and using kaffe's appletviewer caused this error. But I swear I didn't uninstall kaffe last time and everything worked! ? Eric L. McClure p.s. I love this stuff! I must be insane! its probably just in the ordering of your java directories in your path and the java from kaffe was the first java executable that was found. im using 3 versions of java sdk and they coexist together as long as i remember to run the script that i made for reordering the value of the PATH variable. ciao! -- Programming, an artform that fights back. = Anuerin G. Diaz Design Engineer Millennium Software, Incorporated 2305 B West Tower, Philippines Stocks Exchange Center, Exchange Road, Ortigas Center, Pasig City Tel# 638-3070 loc. 72 Fax# 638-3079 = Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] java again
On Monday 07 January 2002 09:43, you wrote: Thanks Anuerin! I knew I wasn't crazy about it working fine before. It makes sense now that you explained it. take care, eric l. mcclure On Sun, 6 Jan 2002 09:29:41 -0500 Eric McClure [EMAIL PROTECTED] wrote: On Saturday 05 January 2002 11:06, you wrote: I uninstalled kaffe and now it works. I didn't have to do this before. I thought there might be a way of setting a hard pointer to a directory or symlink but as they say, you can't have two java versions running on the same computer. The major and minor version errors are now fixed. Just like I said, written with sdk1.4.0 and using kaffe's appletviewer caused this error. But I swear I didn't uninstall kaffe last time and everything worked! ? Eric L. McClure p.s. I love this stuff! I must be insane! its probably just in the ordering of your java directories in your path and the java from kaffe was the first java executable that was found. im using 3 versions of java sdk and they coexist together as long as i remember to run the script that i made for reordering the value of the PATH variable. ciao! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] java again
try uninstalling kaffe through mandrake control center. then edit your .bashrc and add the full path to your jdk1.4.0 bin dir to the PATH env, save .bashrc, and then type source .bashrc command at the prompt. then type: java -version and see what happens... At 20:28 02/01/05 -0500, you wrote: For some reason I had to install jre to get konqueror to see my apps. but when i type in 'java -version' kaffe comes up! it use to read j2sdk1.4.0 what gives? also I've tried to modify my .bashrc but it seems the changes don't take affect. what is the permissions for .bashrc? Is it 755? thanks, eric l. Mcclure Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] java again
I use BlackDown Java which is reported to work better with Konqueror than any other. It was very easy to install and works fine with Konqueror, Mozilla and Netscape! :D On Saturday 05 January 2002 05:28 pm, you wrote: For some reason I had to install jre to get konqueror to see my apps. but when i type in 'java -version' kaffe comes up! it use to read j2sdk1.4.0 what gives? also I've tried to modify my .bashrc but it seems the changes don't take affect. what is the permissions for .bashrc? Is it 755? thanks, eric l. Mcclure Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Java (again)
On Wednesday 11 July 2001 23:00, Anguo wrote: Marcia, Try one more thing and if it doesn't work, we'll have to ask more advanced people for help. In the console, type 'which java'. - $ which java /usr/local/j2re1.3.0/bin/java Dear Anguo, I typed the 'which java' and I got usr/bin/java which was a surprise. Then when I checked the version I got: Kaffee Virtual Machine copyright 1996-2000, Transvirtual Technologies, Inc., Engine: Just-in-time v 3 Version: 1.0.6 Java Version 1.1 This all surprised me since I thought the sun jre1.3.1 was being used. I know that it was for awhile. Also, Java is working in some capacities because I used Netscape to view some Gimp manuals. They said you needed something in Java to view and it came up just fine so something in Java is working. My question is how do I get the jre1.3.1 which I definitely have installed enabled and used instead of Kaffee? Thanks for your time and help. I appreciate it very much. Sincerely, Marcia
Re: [newbie] Java (again)
How did you configure it? I first tried to use the GUI Konqueror configuration tool, where you can put in the path to your java file, but it didn't work for me. I then did it manually, using the console and it worked. 1- open a console 2- su to root 3- cd to /etc/ in it you have a file named 'profile'. that's where you have to add the path to java. 4- here a very basic knowledge of vi is very handy. vi profile type 'a' to insert the following line (modify it according to your path and version) PATH=/usr/local/j2re1.3.0/bin:$PATH type esc to go back to command mode. type ':x' to save and exit. 5- you can type 'cat profile' to check that it's ok. restart xwindows. the above worked for me. Dear Anguo, Thanks for the instructions. I went into the file as root and did what you described except I did not know exactly where my entry should go. I put it under the other Path entry. It is there now, but nothing has changed yet. I am perplexed that this does not work now after working before. Thanks for the help. Sincerely, Marcia
Re: [newbie] Java (again)
Marcia, Try one more thing and if it doesn't work, we'll have to ask more advanced people for help. In the console, type 'which java'. - $ which java /usr/local/j2re1.3.0/bin/java - Thanks for the instructions. I went into the file as root and did what you described Exactly? Can you confirm that you did change the path to fit yours? According to the which java command above, my path is: PATH=/usr/local/j2re1.3.0/bin:$PATH Did you set up yours according to your path (which would be different since you have another version of java). except I did not know exactly where my entry should go. I put it under the other Path entry. Yes, this question got me puzzled too. I believe anywhere is fine, on a separate line. I put my command more towards the top g. It is there now, but nothing has changed yet. I am perplexed that this does not work now after working before. Thanks for the help. I am a newbie like you. I found the information I needed by reading docs in the blackdown site, especially the following faq: http://www.blackdown.org/java-linux/docs/support/faq-release/FAQ-java-linux.html i downloaded the j2re1.3.0 version for the following reason (as I said, I played it safe, not knowing what I was dealing with, and it works for me on konqueror): - May 04 2001 JavaWorld has selected our Blackdown 1.3 JVM for Linux as a finalist in the Best Java Virtual Machine category of its Editors' Choice Awards. I then downloaded : j2re-1.3.0-FCS-linux-i386.tar.bz2 from one of their mirror sites. http://www.blackdown.org/java-linux/mirrors.html If that doesn't help either, we'll have to ask other people. Please do ask again, providing as much information you can (even irrelevant, it doesn't hurt grin) what is the cpu? which file did you download/install? from where? what is the version of your kernel? Type the following in the console: java -version blessings and best of luck, Anguo ¦b 2001 ¤C¤ë 12 ¬P´Á¥| 05:38¡AMarcia Waller ¼g¹D: How did you configure it? I first tried to use the GUI Konqueror configuration tool, where you can put in the path to your java file, but it didn't work for me. I then did it manually, using the console and it worked. 1- open a console 2- su to root 3- cd to /etc/ in it you have a file named 'profile'. that's where you have to add the path to java. 4- here a very basic knowledge of vi is very handy. vi profile type 'a' to insert the following line (modify it according to your path and version) PATH=/usr/local/j2re1.3.0/bin:$PATH type esc to go back to command mode. type ':x' to save and exit. 5- you can type 'cat profile' to check that it's ok. restart xwindows. the above worked for me. Dear Anguo, Thanks for the instructions. I went into the file as root and did what you described except I did not know exactly where my entry should go. I put it under the other Path entry. It is there now, but nothing has changed yet. I am perplexed that this does not work now after working before. Thanks for the help. Sincerely, Marcia
Re: [newbie] Java (again)
Hi Marcia, Here's what I think you will need to do to get your Java working again. I am assuming that when you login to Linux, you do so as a regular user, NOT AS root. In order for Java to run, you need to set up a minimum of two environment variables so that it can find the files it needs to run. These two environment variables are named PATH and CLASSPATH. You can set them up in one of two ways: 1) temporarily, good for the life of the shell you are running in; or 2) as permanent environment variables, available to every shell you open. I use method 2... You can use the following command to view your current environment variable settings (the [obiwan@localhost]$ represents my shell prompt; yours should look similar...): [obiwan@localhost]$ export To set things up so that each new shell is using the same global environment variable settings, perform the following steps. I will mark any comment lines here using a '#' in the first column. # ASSUMPTIONS I AM MAKING: # # I am assuming you know the directory where you installed # the JDK. I installed mine into: /usr/local/j2sdk1.3 # This is normally referred to as JAVA_HOME, and we will # indeed set up just such an environment variable, as well # as PATH and CLASSPATH. # # I am assuming that you know that the system will expand # out the name of an environment variable whenever it sees # a '$' at the beginning of an environment variable name. # This is why you say: 'cd $HOME' to change the current # directory to your home directory. # # I am assuming you will REMOVE any previous edits you made # to the /etc/profile, so they don't conflict with the things # I suggest that you do. # Step 1. You need to edit the file that sets the environment variables in your shell of choice. I use the default bash shell, so the file I edited is named: $HOME/.bashrc Type in the following command to open this file in the editor: [obiwan@localhost]$ gedit $HOME/.bashrc Inside the editor you will most likely see something similar to: # .bashrc # Source global definitions if [ -r /etc/bashrc ]; then . /etc/bashrc fi # Step 2. Go to the last line of the file, and type in the following two lines to set up a new environment variable that represents where you installed Java: # Set up the Java Development Environment Variables export JAVA_HOME=/usr/local/j2sdk1.3 # # The export command will make this variable visible in all shells # Step 3. Next, type in the following two lines to modify your existing PATH variable to work with Java: # export PATH=$JAVA_HOME/bin:$PATH Step 4. Create a CLASSPATH variable, so that Java will know where to search for class files. Type in the following two lines: # export CLASSPATH=.:$JAVA_HOME/lib/classes.zip Step 5. Save the file, and exit the editor. The file should look *similar* to the one shown below: # .bashrc # Source global definitions if [ -r /etc/bashrc ]; then . /etc/bashrc fi # ### # Set up the Java Development Environment Variables ### # export JAVA_HOME=/usr/local/j2sdk1.3 # export PATH=$JAVA_HOME/bin:$PATH # export CLASSPATH=.:$JAVA_HOME/lib/classes.zip # # end setup for Java Development Environment Variables ## Step 6. To export the new variables into the environment (without rebooting), type in the following command at a shell prompt: [obiwan@localhost]$ source .bashrc Now you should be ready to Rock 'n Roll. Try running anything Java! Later on, you can add new directories or jar files to the CLASSPATH variable following this same technique... The next time you log in as that same user, you will instantly have those same environment variables available to your shell(s)! Good luck - if you have any questions, you know where to find me. Mike --- Anguo [EMAIL PROTECTED] wrote: Marcia, Try one more thing and if it doesn't work, we'll have to ask more advanced people for help. In the console, type 'which java'. - $ which java /usr/local/j2re1.3.0/bin/java - Thanks for the instructions. I went into the file as root and did what you described Exactly? Can you confirm that you did change the path to fit yours? According to the which java command above, my path is: PATH=/usr/local/j2re1.3.0/bin:$PATH Did you set up yours according to your path (which would be different since you have another version of java). except I did not know exactly where my entry should go. I put it under the other Path entry. Yes, this question got me puzzled too. I believe anywhere is fine, on a separate line. I put my command more towards the top g. It is there now, but nothing has changed yet. I am perplexed that this does not work now after working before. Thanks for the help. I am a newbie like you. I
Re: [newbie] Java (again)
¦b 2001 ¤C¤ë 11 ¬P´Á¤T 02:36¡AMarcia Waller ¼g¹D: Dear All, I already have the latest java installed in my LM8. I went to Konqueror and configured it as suggested. How did you configure it? I first tried to use the GUI Konqueror configuration tool, where you can put in the path to your java file, but it didn't work for me. I then did it manually, using the console and it worked. 1- open a console 2- su to root 3- cd to /etc/ in it you have a file named 'profile'. that's where you have to add the path to java. 4- here a very basic knowledge of vi is very handy. vi profile type 'a' to insert the following line (modify it according to your path and version) PATH=/usr/local/j2re1.3.0/bin:$PATH type esc to go back to command mode. type ':x' to save and exit. 5- you can type 'cat profile' to check that it's ok. restart xwindows. the above worked for me. When I went to the chat page and clicked on chat I first would get a message that the applet is opening then it did not open and I got an error message that says unable to load JSSE SSL stream handler, https support not available. does this appear when using netscape? I don't use netscape, so I wouldn't know what to do. Also, when I first open Konqueror I get a box with an error message that says cannot find ns plugin or something close to that. I believe that setting up the path as above could solve the problem with Konqueror. give it a try. I am sorry: i didn't see you previous emails until right now. You were asking me whether to install the latest version or not. I certainly wouldn't know whether it is a good choice or not, but I know two things: 1- what worked for me 2- reading this forum, I noticed that the latest version of everything is not necessarily the best for individual cases. Faced with the choice of version, I decided to play it safe and downloaded the version from http://www.blackdown.org/java-linux/ that got prized. j2re1.3.0 I believe. I downloaded the intel version even though I have an AMD Duron chip, but that worked fine with me. Anguo. I looked in at my java files in /usr and they are there and seem ok. Does anyone have any suggestions? Any help will be greatly appreciated. Thanks for the help. This was all working fine before and just stopped working on its own as far as I know. Sincerely, Marcia