installing gGo-problems??
Hello all.. I'm newbie here and with linux too and wouldn't wan't to trouble anyone here without trying to find solution myself first, but..
I tried to install gGo game (from http://igs.joyjoy.net/java/gGo/index.html) and when I tried to run it I got this message: [starquake@localhost starquake]$ ggo which: no java in (/usr/X11R6/bin:/usr/local/bin:/bin:/usr/bin:/usr/games:/home/starquake/bin) Your JAVA_HOME environment variable is not set. Either add the java command to your path, or set the JAVA_HOME environment variable: export JAVA_HOME=/path/to/java/installation Best modify your .bashrc file to have this set permanently. [starquake@localhost starquake]$ so , did I miss something while installing java? What/how should I do this adding java command to a path? I've got linux mandrake for a week and have no previous experience with command line at all (didn't need it with xp) I followed instructions on thread 51748 by nakkaya,but couldn't properly do this: "4) * Linking the plugin to Mozilla and Galeon (Galeon uses Mozilla plugins). * We should still be in super user mode. If not than become super user again: su (password). * ln -s /usr/java/j2sdk1.4.1_01(2 in my case)/jre/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla-1.1/plugins/ (here I got error message no such path..) * Now your browers (Mozilla and Galeon) will display Java2 1.4.1 websites. * Exit as super user. Type: exit" java seems to work with mozilla though.. Could someone help out and tell me what to do? I really wish not to install windows again just for one silly boardgame I'm addicted to.. Also, I'd love to know how to make a clickable icon to that ggo-game..(esp. how to set the path.?) thank you for your time, starquake |
I guess the answer is obvious, but I can'tt see it..
|
Here's what seems to be happening. Yes, you have Java installed, but your system's path does not show where it is. You may be familiar with the path concept from DOS: it's a text file that various applications use to see where other applications are located. Since gGo needs Java to work, it needs to know where to find Java, and it looks to the path file for the location.
First, type: which java If the path variable for Java is correctly set, the path to Java will be displayed, for example /usr/local/jdk1.2.2/bin/. If it is not, you will see: java: Command not found. You'll need to find the correct path to Java, which you should be able to do with: locate java Now you are ready to do your export. Using the path that locate showed you, follow the instruction gGo gave you and type: export JAVA_HOME=/path/that/locate/showed/you And that should take care of it (I hope -- I'm not exactly an old hand myself). |
Millions of thanks Dave!!!
Works like a dream now..I just can't believe how handicapped one can become using windoze so long, but afterall linux is a new OS to me..It took time to learn W. too.. Great to have helpful people like you around (there must be scores of others too here..) No need to get back to Windoze now, all my needs are covered more than well with Mandrake 9.1 bamboo.. I'm sure I'll find info on how to make a desktop icon to gGo from here somewhere.. Thank you again,
starquake cool, I found out how to make desktop icons to programs too, installing gGo!!:D |
Ok im having the same problem you were having, but unfortuantly I have yet to solve it. I did the export to the path my java is in /usr/lib/linuxconf/java (well this is where i believe its at) anyways i have mandrake 9.1 also so our java's should be the same. What did you type to export to get it working?
|
You're doing fine. It only becomes easier with time. And you're right, there are many helpful people here whose input has benefitted me time and time again. Glad I was able to help. :)
|
Quote:
export JAVA_HOME=/usr/java/j2sdk1.4.1_02/bin/java hope this helped |
Craneology, if you're getting the same messages that starquake listed above, then my best guess is that Java still isn't in the path. First, you should make sure you have Java installed, because I don't know whether Mandrake installs it by default or not.
It may not do to assume that the path will be the same as starquake's -- you should use locate to find out for sure. If locate java didn't give you a clear path to use, you could try locate javac (this will only work for the SDK, not for the JRE). |
Ok im happy now. Java wasnt installed. Got that installed, tweaked around wth the export thing and it works now. Thnx. Now ill be on linux even more now (had to play go in windows) thnx for the help.
|
I've noticed that Java is rarely, if ever, included with standard distro installs. I'm not sure why, unless it's for licensing reasons (as it certainly is for Debian, but it seems most of the other distros are not as strict about licensing). Anyway, I'm glad you got things working.
|
All times are GMT -5. The time now is 05:21 PM. |