LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing Java2 RE from .bin (https://www.linuxquestions.org/questions/linux-newbie-8/installing-java2-re-from-bin-33091/)

MasterC 10-18-2002 01:45 AM

Looks good, I'd put a space between fi and PATH but that's just for eye pleasure, not anything more.

Anyway, cool. Now, you need to source the file so open up a terminal and type:
source /etc/profile

And that should be it. Now you should have java installed.

Cool

GT I.N.C 10-18-2002 01:48 AM

Hmmm after i was getting happy, this happened....
Code:

[root@localhost etc]# source /etc/profile
bash: id: command not found
bash: dircolors: command not found
bash: locale: command not found
bash: grep: command not found
bash: tty: command not found
bash: TMOUT: readonly variable
bash: id: command not found
[: -ge: unary operator expected
bash: tty: command not found
bash: id: command not found
[: : integer expression expected


MasterC 10-18-2002 01:49 AM

I would simply ignore that for now...

GT I.N.C 10-18-2002 01:52 AM

So everything is cool?, i just run java by typing 'java'? and also in the java directory what is that install script for?

Garry :D

GT I.N.C 10-18-2002 01:54 AM

Oh, i just remembered, that install script was from a .zip file in the java directory, i don't think it matters then....ok thanks alot MasterC!!!....just one more thing...what was thet stuff when i did a source /etc/profile

Garry :D

MasterC 10-18-2002 01:55 AM

Everything should be cool now yes.

What script? Post the conents of your /usr/local/bin/java directory, and also the contents of your /usr/local/bin/java/bin directory.

Cool

MasterC 10-18-2002 01:57 AM

I believe it was setting variables for your terminal. Shouldn't matter as far as all this is going, and actually shouldn't matter overall, as it's just for things that are probably setup somewhere else.

MasterC 10-18-2002 02:00 AM

Whoa, I never saw that src.zip file before, now I am curious. I unzipped elsewhere and am wondering what it's for. Looks like good stuff :confused:

If you find out, let me know, cause that looks important maybe but I haven't had any problems with java on my system :)

Cool

GT I.N.C 10-18-2002 02:07 AM

Geeeez, i love Linux but sometimes it pisses me off just trying to get programs to run...after all that time when i try running the program this prints:
Code:

[root@localhost JPhotoBrush]# java JPhotoBrush.jar
Exception in thread "main" java.lang.NoClassDefFoundError: JPhotoBrush/jar

And here are the contents of those folders...:

Ok i can't show the contents of the folder...because ls or dir couldn't be found....heres proof...unless i'm typing them wrong lol...
Code:

[root@localhost java]# ls
bash: ls: command not found
[root@localhost java]# dir
bash: dir: command not found
[root@localhost java]#


MasterC 10-18-2002 02:11 AM

Ok, so I just decided to unzip it in the java directory, it didn't mess with LimeWire, so I guess it didn't do any harm...

Hmm, I wonder if it's mentioned in the README or INSTALL files?

Anyway, any luck?

Cool

MasterC 10-18-2002 02:17 AM

logout of root and backin

And also source your bash_profile:
source ~/.bash_profile

Ok, so looks like you might need to specify it elsewhere, ok do this:
echo $PATH

If you don't see /usr/local/bin/java/bin

Then our efforts above in /etc/profile didn't work. You will instead need to place that into your bash_profile (and now I am gun-shy, so post the contents of your bash_profile and your bashrc file so I know I am telling you the correct file)

And you will also want to remove the entry we made in /etc/profile for java path.

GT I.N.C 10-18-2002 02:20 AM

Ok ls works, now i just want to know why are we taking out the stuff from profile and now using the bash profile? Java is working i think...it's just that program? is it?

MasterC 10-18-2002 02:26 AM

If java is working now, then that's cool. But no, from that error message it reads as java's problem, not the programs.

Now that ls is working, post the contents.

Cool

MasterC 10-18-2002 02:28 AM

Oh and 1 more thing, to execute that file it's:
java -jar JPhotoBrush.jar

Don't forget the -jar after java

Cool

GT I.N.C 10-18-2002 02:29 AM

Code:

[root@localhost java]# ls
bin/                              LICENSE        readme_ja.html
CHANGES                          man/            readme_ko.html
ControlPanel.html                plugin/        readme_sv.html
COPYRIGHT                        README          readme_zh_CN.html
install.sh*                      readme_de.html  readme_zh_TW.html
javalogo52x88.gif                readme_es.html  sunlogo64x30.gif
javaws/                          readme_fr.html  Welcome.html
javaws-1_2_0_01-linux-i586-i.zip  readme.html
lib/                              readme_it.html

Code:

[root@localhost bin]# ls
arch*          dnsdomainname@  id*        netstat*        stty*
awk@          doexec*        igawk*      nice*          su*
basename*      domainname@    ipcalc*    nisdomainname@  sync*
bash*          echo*          ipv6calc*  open*          tar*
bash2@        egrep@          kill*      ping*          tcsh*
cat*          ex@            linuxconf*  progress*      touch*
chgrp*        false*          ln*        ps*            true*
chmod*        fbresolution*  loadkeys*  pwd*            umount*
chown*        fgrep@          login*      rbash@          uname*
consolechars*  find*          ls*        rm*            usleep*
cp*            gawk*          mail*      rmdir*          vi@
cpio*          gawk-3.1.0*    mkdir*      rpm*            view@
csh@          gettext*        mknod*      rvi@            vim@
cut*          grep*          mktemp*    rview@          vim-minimal*
date*          gtar@          more*      sed*            ypdomainname@
dd*            gunzip*        mount*      sh@            zcat*
df*            gzip*          mv*        sleep*
dmesg*        hostname*      netconf@    sort*

Ok i will do what you said with bash_profile and all that now...

Garry


All times are GMT -5. The time now is 06:55 AM.