Professional Web Applications Themes

Newbie. How do I uninstall Java? - Linux Setup, Configuration & Administration

I've just installed a Java2sdk .bin file, but in the wrong directory. Would anyone know how to uninstall a .bin file? Thanks, Rick...

  1. #1

    Default Newbie. How do I uninstall Java?

    I've just installed a Java2sdk .bin file, but in the wrong directory. Would
    anyone know how to uninstall a .bin file?
    Thanks,
    Rick


    Rick Guest

  2. #2

    Default Re: Newbie. How do I uninstall Java?

    On Sat, 6 Dec 2003 22:42:33 -0000, Rick wrote: 

    Did you look in that directory
    Maybe there is a directory something like _uninst
    Maybe there is something like custom-uninstall
    Bit Guest

  3. #3

    Default Re: Newbie. How do I uninstall Java?

    There isn't with this version and doesnt say anything in its directory about
    how to uninstall it. i couldnt find anything in Java's site either.
    Rick

    "Bit Twister" <localdomain> wrote in message
    news:home... [/ref]
    Would 
    >
    > Did you look in that directory
    > Maybe there is a directory something like _uninst
    > Maybe there is something like custom-uninstall[/ref]


    Rick Guest

  4. #4

    Default Re: Newbie. How do I uninstall Java?

    On Sat, 6 Dec 2003 23:00:36 -0000, Rick wrote: 

    Ok, that is in the one I installed today.

    Worse comes to worse: Read the last 4 lines, I'll wait. . . . . . . . .

    cd /bad/install_dir
    pwd # make damn sure that is where you want to delete
    rm -r *

    --
    The warranty and liability expired as you read this message.
    If the above breaks your system, it's yours and you keep both pieces.
    Practice safe computing. Backup the file before you change it.
    Do a, man command_here or cat command_here, before using it.
    Bit Guest

  5. #5

    Default Re: Newbie. How do I uninstall Java?

    Bit Twister wrote:
     
    >
    > Ok, that is in the one I installed today.
    >
    > Worse comes to worse: Read the last 4 lines, I'll wait. . . . . . . . .
    >
    > cd /bad/install_dir
    > pwd # make damn sure that is where you want to delete
    > rm -r *
    >[/ref]
    I have in the past just moved the j2sdk* dir to the right place. Check
    ..bash_profile, .bashrc for all relevant users.

    Doug.
    --
    Where they make a desert, they call it peace
    -- Tacitus, 1st century.

    Doug Guest

  6. #6

    Default Re: Newbie. How do I uninstall Java?


    "Rick" <co.uk> wrote in message
    news:bqtm0i$262nu9$news.uni-berlin.de... 
    Would 

    As this is distribution independant, it doesnt get listed in the
    distributions database for packages installed.

    Deleting the old installation directory ( " rm -rf /path/to/directory " )
    and installing again should solve the problem nicely.

     


    Leon. Guest

  7. #7

    Default Re: Newbie. How do I uninstall Java?

    On Sat, 6 Dec 2003 22:42:33 -0000, "Rick" <co.uk> wrote:
     

    .... the '*.bin' file is nothing more than an executable
    script, which downloads the appropriate *.rpm. why
    not run 'rpm' to uninstall it?
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    fortune: cpu time/usefulness ratio too high -- core dumped.
    mjt Guest

  8. #8

    Default Re: Newbie. How do I uninstall Java?

    Are you 100% sure?
    I found the packages in a magazine CD. There are both versions: .bin and
    ..rpm. What is the point in having a .bin file as a wrapper script when they
    also provide the .rpm? The size of the .bin is ~23Mb, meanwhile the .rpm is
    ~20Mb.
    Rick


    "mjt" <com> wrote in message
    news:SeHAb.3127$news.atl.earthlink.net... 
    wrote: [/ref]
    Would 
    >
    > ... the '*.bin' file is nothing more than an executable
    > script, which downloads the appropriate *.rpm. why
    > not run 'rpm' to uninstall it?
    > .
    > --
    > /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    > \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    > fortune: cpu time/usefulness ratio too high -- core dumped.[/ref]


    Rick Guest

  9. #9

    Default Re: Newbie. How do I uninstall Java?

    On Sun, 7 Dec 2003 15:17:47 -0000, "Rick" <co.uk> wrote:
     

    .... i wouldnt say so without being sure - otherwise all the
    other regulars out here would hammer me :) how about
    we check it out ...

    mtoblerstimpy:~> more j2sdk-1_4_2_02-linux-i586.bin
    #!/bin/sh
    PATH=/usr/bin:/bin
    NODOT_VERSION=142_02
    javahome=j2sdk1.4.2_02
    PACKED_JARS="lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar jre/lib/chts.jar jre/lib/ext/localedata.jar jre/lib/pl
    ugin.jar jre/javaws/javaws.jar"
    LINUX_RPM=
    JAVAWS_BIN=jre/javaws/javaws
    libthread_path=
    localinstall=$1
    diskSpaceRequired=103468
    MIME_TYPE=application/x-java-jnlp-file
    more <<"EOF"
    Sun Microsystems, Inc.
    Binary Code License Agreement

    for the

    JAVATM 2 SOFTWARE DEVELOPMENT KIT (J2SDK), STANDARD EDITION, VERSION 1.4.2_X

    SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE SOFTWARE IDENTIFIED
    BELOW TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS
    ....

    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    "When in doubt, tell the truth." - Mark Twain
    mjt Guest

  10. #10

    Default Re: Newbie. How do I uninstall Java?

    On Sun, 07 Dec 2003 16:04:55 GMT, mjt <com> wrote:
     
    >
    > ... i wouldnt say so without being sure - otherwise all the
    > other regulars out here would hammer me :) how about
    > we check it out ...[/ref]

    .... it's actually a hybrid - part script, part binary

    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    mjt Guest

  11. #11

    Default Re: Newbie. How do I uninstall Java?

    On Sun, 07 Dec 2003 16:04:55 GMT, mjt wrote: 
    >
    > ... i wouldnt say so without being sure - otherwise all the
    > other regulars out here would hammer me :)[/ref]

    Well if you insist :)
     

    Ok, more j2sdk-1_4_2-nb-3_5_1-bin-linux.bin

    ******** j2sdk-1_4_2-nb-3_5_1-bin-linux.bin: Not a text file ********

    Agree, not same file, just a warning, sun appears to be changing their bins. :)
    Bit Guest

  12. #12

    Default Re: Newbie. How do I uninstall Java?

    Rick wrote: 

    I've read all the other threads....

    The .bin file SHOULD be a file that will ask you to accept an agreement then
    simply unzip/tar the JAVA distribution. I did not think that .bin's where
    bundled with RPMs embedded. Just move the whole unzipped directory where
    you want it and update the environment for your users (as mentioned in other
    thread). If you want it globally set up, then put it in /etc/profile:

    export JAVA_HOME=<path to java root directory>
    export PATH=$PATH:$JAVA_HOME/bin

    Define JAVA_HOME because many applications will use that. People can always
    override your global default by putting it in their local profile startup
    script (ie. .bash_profile).

    ken k


    Ken Guest

Similar Threads

  1. LWP and java servlet error (newbie)
    By ArKane in forum PERL Modules
    Replies: 0
    Last Post: October 29th, 06:03 PM
  2. newbie to java oracle
    By bigbinc in forum Oracle Server
    Replies: 4
    Last Post: November 5th, 01:12 PM
  3. Replies: 0
    Last Post: August 8th, 11:18 AM
  4. Replies: 0
    Last Post: August 2nd, 08:07 PM
  5. [newbie]Calling .net from Java
    By Breeze in forum ASP.NET Web Services
    Replies: 1
    Last Post: July 10th, 03:14 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139