1. I need to unpack a jar file to my classpath. Where do I find it?
I am using the standard JDK that came with Mandriva (using KDE 4.1) java-1.6.0-openjdk - OpenJDK Runtime Environment.
2. What does BASH mean? (other than when used as verb in conjunction with cave men and clubs).
3. I used the Software Management tool to install Fortune-mod which should theoretically give me little snippets of wisdom every time I open the Konsole. But it doesn't. Any thoughts?
BASH - Bourne Again SHell - I believe that is correct.
Fortune-mod -> I installed that with the MCC and never saw it under the MENU. Don't think there is a GUI for it, only command-line. If you want it to start at every boot (more than that, every login) check into using the /home/user/.kde/autostart
There is a post on Autostart 2 or 3 before yours....
Want to find where something is? Try the FIND and LOCATE commands from inside Konsole..... Hope this helps a little - Loy
First of all, I couldn't find autostart, even using LOCATE.
I did, however find the classpath, but it gave me
I think the first one is the one I want, but can't seem to get there...
Try this....click on the little house on the taskbar next to the Menu button. Click "view" then check Show Hidden Files. Hit f5 to refresh. Now in this folder, find the .kde folder. Open it. In the .kde folder is another called autostart. All shell scripts in this folder run at Kde start of this user's login....so if you have a file called begin.sh and this file's permissions allow it to be executable, and within this file you have "mcc", then at every login this file will run and the command mcc will run...
As for the java ....
Where is the java classpath? - Ubuntu Forums
is a good place to start...
But Mandriva is a different distro, so maybe put you .jar file in
Well, there is nothing in that folder. I have a whole bunch of Java folders there, all empty.
Do I need to write a shell script that will engage the Fortune mod? how do I do that?
Put the following into .bashrc (the dot at the start of the filename means it's hidden).
Originally Posted by Max2009
if [ -x /usr/games/fortune ]; then
/usr/games/fortune -s # makes our day a bit more fun.... :-)
Ahhh, thank you very much!
Now, I need to set the class path for Java. On their site (here) they said how to do it in Linux using BASH.
Now, I checked, and I don't have those folders....
When I searched for javac all I found was
What should I out in the .bashrc to set the class path so I could compile java from anywhere?
What is vim?
Thanks. That was helpful.
I entered the shell command to set the CLASSPATH, and it worked.
Now, we go back to my original question, where do I store the class files that I want to import into my java apps? That wiki said something about usr/share/java-ext but that didn't work.
The problem is that there are so many java directories scattered all over the place, it would take a little less than forever to try them all.