Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Environment Variables

    Hi everyone, hope you are all happy with your linux distros

    My problem for today:

    I installed the java sdk, configured the path in sun one and everything is working fine.

    What I would like to do is to type in the shell, java {class name} and the program should then run.(I don't want to go in to the sun one all the time to run my apps, I like to use KWrite for java as well)

    This can be easily done in windows using Environment Variables, but how can I do this in Mandrake 9.1?

    Please let me know if you need more info

    Thank You

  2. #2
    Linux User
    Join Date
    Jul 2004
    Is it all about setting PATH variable? I've added java directory to it and everything works fine, i.e.:
    export PATH=$PATH:/usr/local/j2re1.4.2_05/bin
    Write it to your ~/.bashrc to make the change permament for a particular user.
    "I don't know what I'm running from
    And I don't know where I'm running to
    There's something deep and strange inside of me I see"

Posting Permissions

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