Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie Max2009's Avatar
    Join Date
    Nov 2008
    Posts
    197

    Konsole Kuestions


    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?
    Cogito ergo surf - I think therefore I network.

    Registered Linux user #481826 Get counted!

  2. #2
    Just Joined! Loy Glenn's Avatar
    Join Date
    Sep 2008
    Location
    Houston,TX
    Posts
    89
    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

  3. #3
    Linux Newbie Max2009's Avatar
    Join Date
    Nov 2008
    Posts
    197
    First of all, I couldn't find autostart, even using LOCATE.
    I did, however find the classpath, but it gave me
    Code:
    /usr/bin/build-classpath
    /usr/bin/build-classpath-directory
    /usr/lib/ooo-3.0/basis3.0/program/java-set-classpath
    /usr/lib/security/classpath.security
    /usr/lib/security/classpath.security.real
    /usr/share/man/man1/build-classpath.1.lzma
    I think the first one is the one I want, but can't seem to get there...
    Cogito ergo surf - I think therefore I network.

    Registered Linux user #481826 Get counted!

  4. #4
    Just Joined! Loy Glenn's Avatar
    Join Date
    Sep 2008
    Location
    Houston,TX
    Posts
    89
    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...

  5. #5
    Just Joined! Loy Glenn's Avatar
    Join Date
    Sep 2008
    Location
    Houston,TX
    Posts
    89
    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

    /usr/lib/java-ext ?

  6. #6
    Linux Newbie Max2009's Avatar
    Join Date
    Nov 2008
    Posts
    197
    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?
    Cogito ergo surf - I think therefore I network.

    Registered Linux user #481826 Get counted!

  7. #7
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    Quote Originally Posted by Max2009 View Post
    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?
    Put the following into .bashrc (the dot at the start of the filename means it's hidden).
    Code:
    if [ -x /usr/games/fortune ]; then
        /usr/games/fortune -s     # makes our day a bit more fun.... :-)
    fi
    Last edited by smolloy; 11-12-2008 at 09:17 PM. Reason: typo :(
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  8. #8
    Linux Newbie Max2009's Avatar
    Join Date
    Nov 2008
    Posts
    197
    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
    Code:
    /usr/share/vim/compiler/javac.vim
    /usr/share/vim/syntax/javacc.vim
    What should I out in the .bashrc to set the class path so I could compile java from anywhere?
    What is vim?
    Cogito ergo surf - I think therefore I network.

    Registered Linux user #481826 Get counted!

  9. #9
    Just Joined! Loy Glenn's Avatar
    Join Date
    Sep 2008
    Location
    Houston,TX
    Posts
    89

  10. #10
    Linux Newbie Max2009's Avatar
    Join Date
    Nov 2008
    Posts
    197
    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.
    Cogito ergo surf - I think therefore I network.

    Registered Linux user #481826 Get counted!

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •