Results 1 to 6 of 6

Thread: Installing JDK for Redhat Linux 8.0

  1. #1
    Associate
    Join Date
    Feb 2003
    Posts
    39

    Installing JDK for Redhat Linux 8.0



    I remember installing this when I ran Limewire under RH 7.3, but I am having problem with this one.

    I've put the the file: j2sdk-1_4_1_02-linux-i586-rpm.bin under /usr/loca/jdk

    I type sh ./j2sdk-1_4_1_02-linux-i586-rpm.bin

    I answer yes to the question and then this file appears

    j2sdk-1_4_1_02-fcs-linux-i586.rpm, this file shows -rw-r--r--, should I chmod u+x for it so I can execute it as root.

    And yes I am doing all of this as root.

    thanks


  2. #2
    Mentor
    Join Date
    Jul 2001
    Posts
    1,666

    Re:Installing JDK for Redhat Linux 8.0

    once you have it as an RPM, you can install it using the command
    rpm -ivh j2sdk.... ( I think, its been a while since I used redhat)
    You don't need to execute the rpm file itself you just use the rpm program to install it for you.
    CP

  3. #3
    Associate
    Join Date
    Feb 2003
    Posts
    39

    Re:Installing JDK for Redhat Linux 8.0

    [quote author=CP link=board=2;threadid=6857;start=0#64017 date=1050722784]
    once you have it as an RPM, you can install it using the command
    rpm -ivh j2sdk.... ( I think, its been a while since I used redhat)
    You don't need to execute the rpm file itself you just use the rpm program to install it for you.
    CP
    [/quote]

    Ok, when doing rpm -qa | grep j2sdk, I get a response showing that the package is installed.

    I am going to teach myself java, do you know of a simple java program that I could do to test this.

    Also, I am interested in running Eclipse to play around with. Any thoughs there?

    thanks


  4. #4

    Re:Installing JDK for Redhat Linux 8.0

    type java on the command line.

  5. #5
    Associate
    Join Date
    Feb 2003
    Posts
    39

    Re:Installing JDK for Redhat Linux 8.0

    [quote author=trickster link=board=2;threadid=6857;start=0#64034 date=1050769071]
    type java on the command line.
    [/quote]

    When as normal user and as root, when typing java, I get:

    -bash: java: command not found

    Here is another thing. When slocate for javac, I found gccjava and then a directory under /usr/java that has the following:

    -rwxr--r-- 1 root root 110 Apr 19 09:52 bin
    drwxr-xr-x 6 root root 4096 Apr 13 22:46 j2re1.4.1_02
    drwxr-xr-x 8 root root 4096 Apr 18 23:08 j2sdk1.4.1_02
    drwxr-xr-x 9 root root 4096 Apr 13 17:19 jdk1.3.1_07

    Will this cause any problems?

    thanks



  6. #6
    Junior Member
    Join Date
    Nov 2002
    Posts
    92

    Re:Installing JDK for Redhat Linux 8.0

    Did you ever get this working? There's a PET for installing Java so you shouldn't have any problems there. I'm not quite sure what .rpm install you used but it doesn't really matter so long as you're using Sun's JDK. It's the standard and is supposedly the best one to learn with.

    Getting Eclipse to work doesn't take much more work but getting it to launch can confuse some users (it did me anyway).

    Let us know if you're still having problems.


Similar Threads

  1. Problem installing Squid server on vmware redhat machine
    By rukender in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 12-02-2011, 08:16 AM
  2. Question about installing GD on Linux Redhat
    By mlofgren in forum Redhat / Fedora
    Replies: 5
    Last Post: 09-27-2006, 09:27 AM
  3. Installing RedHat 8.0
    By cloverm in forum Linux - General Topics
    Replies: 3
    Last Post: 02-25-2003, 01:16 AM
  4. Help Installing Linux!!
    By LinuxNewbie1 in forum Linux - General Topics
    Replies: 16
    Last Post: 10-18-2002, 08:17 AM
  5. non-linux: installing 98 after 2k
    By phpgeek in forum General Chat
    Replies: 4
    Last Post: 03-22-2002, 12:11 AM

Bookmarks

Posting Permissions

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