Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[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
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
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.
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]#
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.