LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2002, 01:45 AM   #16
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69

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
 
Old 10-18-2002, 01:48 AM   #17
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Original Poster
Rep: Reputation: 30
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
 
Old 10-18-2002, 01:49 AM   #18
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I would simply ignore that for now...
 
Old 10-18-2002, 01:52 AM   #19
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Original Poster
Rep: Reputation: 30
So everything is cool?, i just run java by typing 'java'? and also in the java directory what is that install script for?

Garry
 
Old 10-18-2002, 01:54 AM   #20
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Original Poster
Rep: Reputation: 30
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
 
Old 10-18-2002, 01:55 AM   #21
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 10-18-2002, 01:57 AM   #22
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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.
 
Old 10-18-2002, 02:00 AM   #23
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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

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
 
Old 10-18-2002, 02:07 AM   #24
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Original Poster
Rep: Reputation: 30
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]#
 
Old 10-18-2002, 02:11 AM   #25
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 10-18-2002, 02:17 AM   #26
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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.
 
Old 10-18-2002, 02:20 AM   #27
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Original Poster
Rep: Reputation: 30
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?
 
Old 10-18-2002, 02:26 AM   #28
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 10-18-2002, 02:28 AM   #29
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

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

Don't forget the -jar after java

Cool
 
Old 10-18-2002, 02:29 AM   #30
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Original Poster
Rep: Reputation: 30
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
 
  


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 .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
Java2 SDK doesn't work? ganninu Debian 7 09-13-2005 05:32 PM
Having trouble installing java2 runtime anc6802 Linux - Newbie 1 03-10-2005 12:35 PM
mozilla 1.4.1 no sound with java2 eeverde Linux - Newbie 1 08-07-2004 02:30 AM
Newbie needs help Installing j2sdk-1_4_2-nb_3_5_1-bin-linux.bin bendoku Linux - Newbie 5 10-11-2003 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:27 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