Jump to content

how do I know if I installed java sdk correctly ?


Recommended Posts

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 by null
Link to comment
Share on other sites

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 by null
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by null
Link to comment
Share on other sites

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"

Link to comment
Share on other sites

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... :wall:

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...