jimw Posted August 31, 2004 Report Share Posted August 31, 2004 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? JimW [moved from Software by spinynorman] Quote Link to comment Share on other sites More sharing options...
devries Posted August 31, 2004 Report Share Posted August 31, 2004 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) Quote Link to comment Share on other sites More sharing options...
jimw Posted September 1, 2004 Author Report Share Posted September 1, 2004 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) <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
liquidzoo Posted September 1, 2004 Report Share Posted September 1, 2004 Try linking the java executable to somewhere that is in your $PATH. ex: ln -s /usr/java/j2rexxxx(same as above)/bin/java /usr/bin/java Try that command in a console after you su to root. Java should work with the simple java command from then on. Quote Link to comment Share on other sites More sharing options...
devries Posted September 1, 2004 Report Share Posted September 1, 2004 (edited) 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 Edited September 1, 2004 by devries 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.