Jump to content

Installation of java


Recommended Posts

OK, I'm running Mandrake 10.0. I've put Java Runtime Environment on it because Open Office requires it to do certain things. I used an rpm, from Sun's site, and opened it properly, then starting from the OpenOffice end, connected it to the java.

 

However, I've got a neat program on my machine called DimSum.jar, which I'd like to run.

 

I followed all the instructions on the tutorial at

 

home.bredband.no/gaulyk/java/tutorial/javaredhat.html

 

But every time I test by putting in java -version, I get "java: command not found".

 

Anyone got any ideas as to what I might have missed?

:wall:

JimW

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

Java is not in your path. 

 

Type this:/usr/java/j2rexxxx(where x is the version)/bin/java -jar xxxx.jar (where x is the file name)

 

 

Aha! Only trouble is that I have DimSum still stuck in my Home directory. But when I cd'd to the precise folder where it was, and set it running, it started very nicely. Thanks a lot.

 

I have another question though. After all my work and fussing on java yesterday evening, every time I open a terminal, I get the following message:

 

bash: /etc/profile.d/java.sh: Permission denied

 

 

It would seem I have something set up to try for java every time I call a terminal. It's not really what I'd call a problem, but it is a nuisance. Any guesses what I did, and/or what to do about it?

 

(BTW, did I mention that I'm mainly a writer, just occasionally fooling around with other things on the computer?

:D

 

Thanks again,

 

JimW

Link to comment
Share on other sites

I don't have a /etc/profile.d/java.sh and everything works fine. Just rename it to java.sh.bak and see what it gives.

 

Good luck.

 

<edit> I'm what you call an experienced user, not much of an expert either. I remember it took me a few hours to find out how to associate a jar file. Ah well, I like to play around with my PC :juggle:

Edited by devries
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...