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

    problem compiling java!

    i have installed JDK 5.0 rpms...for my distro redhat 9.0. but when i compile using 'javac' command it reports that certain package(such as swing package) can't be found. i think there something i need to do to the environment variable to set the path so that when compiled it look for the directories of java to take certain API. but i dont know how to do it...
    please help!

  2. #2
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    try adding the java's path to your path variable by editing the ./.bashrc file, add this line:
    export PATH=$PATH:/usr/java/jre-1_5_0_01
    replace /usr/java/... with the actual path to java.
    Life is complex, it has a real part and an imaginary part.

Posting Permissions

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