installation of java on mandriva - 2007

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanjay123456
    New Member
    • Sep 2006
    • 125

    installation of java on mandriva - 2007

    Dear Friends ,

    i am using mandriva - 2007 in this i have in cd /usr/java/jre1_5_0_08/


    in this jre its have all bin ,lib and so on

    when i give folowing command on command prompt

    javac

    its said that no command found

    so tell how can i run java programe on mandriva - 2007

    is there any extra installation required for that or not ?

    sanjay
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sanjay123456
    Dear Friends ,

    i am using mandriva - 2007 in this i have in cd /usr/java/jre1_5_0_08/


    in this jre its have all bin ,lib and so on

    when i give folowing command on command prompt

    javac

    its said that no command found

    so tell how can i run java programe on mandriva - 2007

    is there any extra installation required for that or not ?

    sanjay
    You need to set the path variable.

    Comment

    • sanjay123456
      New Member
      • Sep 2006
      • 125

      #3
      Dear ,

      how can i set path
      pz tell me detail

      sanjay

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by sanjay123456
        Dear ,

        how can i set path
        pz tell me detail

        sanjay


        Create a file called java.sh in /etc/profile.d add the contents below,

        #!/bin/sh
        export JAVA_HOME=/usr/java/jre1.5.0_09
        export MANPATH=$MANPAT H:/usr/java/jre1.5.0_09/man
        export PATH=$PATH:/usr/java/jre1.5.0_09/bin

        Comment

        • sanjay123456
          New Member
          • Sep 2006
          • 125

          #5
          dear sir ,

          #!/bin/sh
          export JAVA_HOME=/usr/java/jre1_5_0_08
          export MANPATH=$MANPAT H:/usr/java/jre1_5_0_08/man
          export PATH=$PATH:/usr/java/jre1_5_0_08/bin


          i have written above code java.sh which is locate in /etc/profile.d

          but its give again javac not found now what i am do sir

          plz help me sir

          sanjay

          Comment

          Working...