Dnia pią 23. lipca 2004 18:09, Marco Verheul napisał:
> On Fri, 2004-07-23 at 02:57, Dan Gordon wrote:
> > On Thursday 22 July 2004 03:38 pm, Marco Verheul wrote:
> > > On Thu, 2004-07-22 at 11:20, Thereidos wrote:
> > > > Dnia czw 22. lipca 2004 00:44, Todd Slater napisał:
> > > > > On Thu, Jul 22, 2004 at 12:34:13AM +0200, Marco Verheul wrote:
> > > > > > Hi all,
> > > > > >
> > > > > > I want to install a platform independent font viewer (Opcion). On
> > > > > > their website ( http://opcion.sourceforge.net/help.htm ) they
> > > > > > say:
> > > > > >
> > > > > > Execute Opcion Font Viewer
> > > > > > ... For Linux users use the command "java -jar Opcion_v1.1.1.jar"
> > > > > > in console/terminal/shortcut.
> > > > > >
> > > > > > When I fire that command in the command line, I get:
> > > > > >
> > > > > > "bash: java: command not found"
> > > > > >
> > > > > > I have Java installed and tested. It's there. Does anybody know
> > > > > > how to install/use these kind of applications?
> > > > >
> > > > > Java is probably not in your path so you'll have to give the full
> > > > > path to its location; on my machine it's
> > > > > /usr/java/j2re1.4.2_01/bin/java. You could probably set up a link
> > > > > in ~/bin or /usr/bin if you wanted.
> > > > >
> > > > > Todd
> > > >
> > > > Or simply add /usr/java/j2re1.4.2_04/bin (or whathever java version
> > > > you have) to your PATH variable in ~/.bash_profile...
> > > > You could also do
> > > > export PATH=$PATH:/usr/java/j2re1.4.2_04/bin
> > >
> > > Sorry guys, but I'm missing the point here. I have java installed in
> > > /usr/java/j2re1.4.2_05.
> > > In /home/<user>/.bash_profile I added the path. It looks like this:
> > >
> > > PATH=$PATH:$HOME/bin:/usr/java/j2re1.4.2_05/bin
> > >
> > > I did the check with Mozilla if Java was running and it did. This is
> > > all I did. Now i downloaded Opcion_v1.1.1.jar and it is somewhere in my
> > > downloads directory. What should I do to use it. Should I place it in a
> > > java path (if so, where exactly)? Should I type the command "java -jar
> > > Opcion_v1.1.1.jar" in the command line?
> > >
> > > I'm afraid you have to spell it out to me...
> >
> > Open a terminal and cd to the directory where the file is and type,
> > java -jar the_name_of_file.jar
> > HTH
> >
> > Regards,
> > Dan Gordon
>
> Dan,
>
> I did that, but probably I had to reboot my system after installing
> java... This time it works like a charm! Thanks.
>
> Cheers, Marco
For the record: If you have made any changes to ~/.bash_profile you simply
needed to log again to your account (logout, login)...
--
Cezary 'Thereidos' Morga <[EMAIL PROTECTED]>
GG# 169903 ICQ# 328-700-565
Jabber: [EMAIL PROTECTED]
[EMAIL PROTECTED]
____________________________________________________
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________