LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2003, 12:04 PM   #1
starquake
LQ Newbie
 
Registered: Mar 2003
Location: Finland
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
Question 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

Last edited by starquake; 03-28-2003 at 12:16 PM.
 
Old 03-28-2003, 12:39 PM   #2
starquake
LQ Newbie
 
Registered: Mar 2003
Location: Finland
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
I guess the answer is obvious, but I can'tt see it..
 
Old 03-28-2003, 01:31 PM   #3
Dave Skywatcher
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 127

Rep: Reputation: 16
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).
 
Old 03-28-2003, 02:40 PM   #4
starquake
LQ Newbie
 
Registered: Mar 2003
Location: Finland
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
Talking 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!!

Last edited by starquake; 03-28-2003 at 02:51 PM.
 
Old 03-28-2003, 02:57 PM   #5
Craneology
LQ Newbie
 
Registered: Mar 2003
Location: Texas
Distribution: Mandrake 9.1
Posts: 29

Rep: Reputation: 15
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?
 
Old 03-28-2003, 03:07 PM   #6
Dave Skywatcher
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 127

Rep: Reputation: 16
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.
 
Old 03-28-2003, 03:20 PM   #7
starquake
LQ Newbie
 
Registered: Mar 2003
Location: Finland
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Craneology
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?
all I did was to follw Dave's advise (see above):
export JAVA_HOME=/usr/java/j2sdk1.4.1_02/bin/java
hope this helped
 
Old 03-28-2003, 03:49 PM   #8
Dave Skywatcher
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 127

Rep: Reputation: 16
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).
 
Old 03-28-2003, 05:33 PM   #9
Craneology
LQ Newbie
 
Registered: Mar 2003
Location: Texas
Distribution: Mandrake 9.1
Posts: 29

Rep: Reputation: 15
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.
 
Old 03-28-2003, 06:00 PM   #10
Dave Skywatcher
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 127

Rep: Reputation: 16
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Mono-got stuck while installing gtk-sharp chutsu Linux - Software 11 01-18-2005 08:25 PM
installing from iso9660 - restarts installation without installing anything scuzzman Slackware 1 10-24-2004 07:46 PM
installing windows without re-installing FC ur-unholyness Linux - Software 1 10-17-2004 06:48 PM
Installing Windows XP after installing Red Hat 9 BluePyre Linux - General 7 03-09-2004 03:37 PM
Installing RAID Drivers before Installing RH 9 kwright Linux - Newbie 3 08-25-2003 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration