null Posted June 23, 2004 Report Share Posted June 23, 2004 (edited) I can't remember if I installed the java sdk a few days ago. How do I know if I have it installed correctly? I wanted the sdk cuz I may take a java course soon as an elective. Also, I want to install the trial version of MoneyDance personal finance manager, which requires JRE. You can download MoneyDance with the jre in it, or if you already have java installed you can d/l MoneyDance by itself with no jre included. anyway, how can I tell if the java sdk is installed correctly? (this is on a Fedora Core 2 machine) edit: I THINK I followed these instructions, but I don't remember doing step 12 http://www.fedorafaq.org/custom_java.html I'd like to test if I've done this correctly or not. Edited June 24, 2004 by null Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted June 23, 2004 Report Share Posted June 23, 2004 Open a console and try firing up the compiler with: $ javac -help If you get the javac help screen you have it in PATH. Quote Link to comment Share on other sites More sharing options...
null Posted June 23, 2004 Author Report Share Posted June 23, 2004 thanks, it says command not found Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted June 23, 2004 Report Share Posted June 23, 2004 You can always reinstall it.. Quote Link to comment Share on other sites More sharing options...
null Posted June 23, 2004 Author Report Share Posted June 23, 2004 (edited) Now that I think about it, I'm pretty sure I did everything as instructed here: http://www.fedorafaq.org/custom_java.html I've done down to step 12 where it says to do the chmod +x /etc/profile.d/java.sh and I also have the (4) required export statements in /usr/java If I re-do all that again, it still won't work, cuz I followed the instructions exactly the first time. So I guess I need to check if stuff is installed correctly in the correct places. And is there any links or such that you are supposed to do? edit: wait - maybe I did step 11 wrong. I think I entered those export statements like shown. But maybe they are for the jre, and I installed the sdk. Maybe they need to be redone. this statement was in the instructions: export JAVA_HOME="/usr/java/j2re1.4.2_02" but I changed it to: export JAVA_HOME="/usr/java/j2sdk1.4.2_04" since that is what directory was created when I installed the sdk Edited June 23, 2004 by null Quote Link to comment Share on other sites More sharing options...
MrWhisp Posted June 23, 2004 Report Share Posted June 23, 2004 You must add "/<path to java home>/bin" to your path. For example in the ~/.bashrc file PATH=$PATH:/<path to java home>/bin When this has been done, you should be able to use the java/javac commands to see if the rest of the installation is okay. /MrWhisp Quote Link to comment Share on other sites More sharing options...
Qchem Posted June 23, 2004 Report Share Posted June 23, 2004 Let us know if you've got it sorted or not null. You can check if you did step 12 by looking at the output of ls -l /etc/profile.d/java.sh Quote Link to comment Share on other sites More sharing options...
jlc Posted June 23, 2004 Report Share Posted June 23, 2004 http://fedoranews.org/contributors/stanton_finley/fc2_note/ Quote Link to comment Share on other sites More sharing options...
null Posted June 23, 2004 Author Report Share Posted June 23, 2004 the above link is help on installing the jre, not the sdk. When I get home later, I'll try to do what MrWhisp said 3 posts above. I'm not sure what the ~/.bashrc file is. Would the <path to java home> be /usr/java/j2sdk1.4.2_04 ? Sorry for the noobish questions. Quote Link to comment Share on other sites More sharing options...
jlc Posted June 23, 2004 Report Share Posted June 23, 2004 Use this: Right here, click it. Quote Link to comment Share on other sites More sharing options...
null Posted June 23, 2004 Author Report Share Posted June 23, 2004 (edited) thanks, as usual, cybr .... but - you are a little behind in this thread... :D your above link to the sdk install instructions is the SAME link and instructions that we have been discussing... :wacko: See the very first post in this thread... The problem is that I have done all that exactly as that site says to. but there is still something else to do apparently. I'm gonna try MrWhisp's suggestion when I get home later. Edited June 23, 2004 by null Quote Link to comment Share on other sites More sharing options...
null Posted June 23, 2004 Author Report Share Posted June 23, 2004 yay !!!! I was looking at my /etc/profile.d/java.sh file and I noticed that my first line had xport... instead of export (I was looking at the file cuz the terminal was tellling me xport command not found... - even when I was doing other things) Anyway, I edited the file to correct the typo, and ran the javac -help as pmpatrick suggested, and I got the normal help info. yay ! what else can I do to test if everything is in place and working ? Heres my java.sh file in /etc/profile.d/ (as the instructions said to make it): export JDK_HOME="$JAVA_HOME" export JAVA_HOME="/usr/java/j2sdk1.4.2_04" export JAVA_PATH="$JAVA_HOME" export PATH="$PATH:$JAVA_HOME/bin" Quote Link to comment Share on other sites More sharing options...
jlc Posted June 23, 2004 Report Share Posted June 23, 2004 (edited) :blink: Did you log out/in aftewards? source /etc/profile Will also help. Edited June 23, 2004 by cybrjackle Quote Link to comment Share on other sites More sharing options...
null Posted June 24, 2004 Author Report Share Posted June 24, 2004 To install the java plugin into firefox, the above mentioned instructions http://www.fedorafaq.org/custom_java.html say to do this: For the SDK, the plugin is: /usr/java/<YourJavaDirectory>/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so So I did this: ln -sf /usr/java/j2sdk1.4.2_04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so Went to this site to test it: http://www.askoxford.com/wordgames/crosswo...04.ccj/?view=uk I get the message that it requires a plugin that I don't have and asks me if I want to install the plugin... Quote Link to comment Share on other sites More sharing options...
jlc Posted June 24, 2004 Report Share Posted June 24, 2004 ln -sf /usr/java/j2sdk1.4.2_04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so You need to tell it were to link ln -sf /usr/java/j2sdk1.4.2_04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/firefox/plugins Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.