Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
How to delete this for Java
Results 1 to 8 of 8

Thread: How to delete this for Java

  1. #1

    How to delete this for Java

    Hi,

    Just installed JDK with netbeans and tried the following
    Code:
    [root@localhost ~]# alternatives --config java
    
    There are 2 programs which provide 'java'.
    
      Selection    Command
    -----------------------------------------------
    *+ 1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
       2           /pathto/sunjava/java
    
    Enter to keep the current selection[+], or type selection number:
    Now how do I delete the first one here ie /usr/lib/jvm/jre-1.4.2-gcj/bin/java which is no longer needed as JRE has been deleted manually be me only. Thanks...

  2. #2
    Just ignore the previous post here is the latest update.

    Just installed JDK 6u1 with NetBeans 5.5.1 from here

    http://java.sun.com/javase/downloads/index.jsp

    and tried the following

    Code:
    [root@localhost ~]# alternatives --config java
    
    There are 2 programs which provide 'java'.
    
      Selection    Command
    -----------------------------------------------
    *+ 1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
       2           /pathto/sunjava/java
    
    Enter to keep the current selection[+], or type selection number:

    Do I need to delete any of these two at all?

    I did install JRE separately previously and deleteted manually with rpm -e since JDK 6u1 with NetBeans 5.5.1 has got JRE built into it already.

    I also changed the path as Java was not being compiled in the terminal at all. This is what I did, not sure if it is right thing to do, but it does now compile Java programs in the terminal as long as the pc is on.

    Code:
    [root@localhost opt]# cd /opt/jdk1.6.0_01/bin
    [root@localhost bin]# export PATH=/opt/jdk1.6.0_01/bin:$PATH
    This is another piece of info:

    Code:
    [root@localhost ~]# whereis netbeans
    netbeans: /opt/netbeans-5.5.1/bin/netbeans
    [root@localhost ~]# cd /opt
    [root@localhost opt]# ls
    jdk1.6.0_01             jre-6u1-linux-i586-rpm.bin  netbeans-5.5.1
    jre-6u1-linux-i586.rpm  libjavaplugin_oji.so
    [root@localhost opt]#

    One thing here is strange, libjavaplugin_oji.so is flashing in a red background. Is it some kind of error that needs to be corrected? Looks like a broken link to me though.

    Thanks...

  3. #3
    Member omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239
    Quote Originally Posted by tech291083 View Post


    Just installed JDK 6u1 with NetBeans 5.5.1 from here

    http://java.sun.com/javase/downloads/index.jsp

    and tried the following

    Code:
    [root@localhost ~]# alternatives --config java
    
    There are 2 programs which provide 'java'.
    
      Selection    Command
    -----------------------------------------------
    *+ 1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
       2           /pathto/sunjava/java
    
    Enter to keep the current selection[+], or type selection number:

    Do I need to delete any of these two at all?

    I did install JRE separately previously and deleteted manually with rpm -e since JDK 6u1 with NetBeans 5.5.1 has got JRE built into it already.


    I also changed the path as Java was not being compiled in the terminal at all. This is what I did, not sure if it is right thing to do, but it does now compile Java programs in the terminal as long as the pc is on.

    Code:
    [root@localhost opt]# cd /opt/jdk1.6.0_01/bin
    [root@localhost bin]# export PATH=/opt/jdk1.6.0_01/bin:$PATH
    This is another piece of info:

    Code:
    [root@localhost ~]# whereis netbeans
    netbeans: /opt/netbeans-5.5.1/bin/netbeans
    [root@localhost ~]# cd /opt
    [root@localhost opt]# ls
    jdk1.6.0_01             jre-6u1-linux-i586-rpm.bin  netbeans-5.5.1
    jre-6u1-linux-i586.rpm  libjavaplugin_oji.so
    [root@localhost opt]#

    One thing here is strange, libjavaplugin_oji.so is flashing in a red background. Is it some kind of error that needs to be corrected? Looks like a broken link to me though.

    Thanks...
    The first is not the JRE it is the gcc version of Java. I would uninstall it if I were you, because JDK is better for you as a programmer.
    This will be over soon, and then I can ...

  4. #4
    Quote Originally Posted by omidkamangar View Post
    The first is not the JRE it is the gcc version of Java. I would uninstall it if I were you, because JDK is better for you as a programmer.
    Thanks a lot what a relief.....
    Great answer I thought it was JRE and was getting congused. But how did you figure it out?

  5. #5
    Member omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239

    Talking

    Quote Originally Posted by tech291083 View Post
    Thanks a lot what a relief.....
    Great answer I thought it was JRE and was getting congused. But how did you figure it out?
    What does the verb figure out mean? (My English is not very good).
    This will be over soon, and then I can ...

  6. #6
    Quote Originally Posted by omidkamangar View Post
    What does the verb figure out mean? (My English is not very good).
    Apolozies,

    I mean how did you work it out ie conclude or decide.

  7. #7
    Member omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239
    Quote Originally Posted by tech291083 View Post
    Apolozies,

    I mean how did you work it out ie conclude or decide.
    If you look at the two alternate paths you can see the gcj on the first one. I think that is the gcc version of Java.
    This will be over soon, and then I can ...

  8. #8
    Quote Originally Posted by omidkamangar View Post
    If you look at the two alternate paths you can see the gcj on the first one. I think that is the gcc version of Java.
    Excellent, thanks...

Similar Threads

  1. Can I delete these
    By mojo jojo in forum Linux - General Topics
    Replies: 2
    Last Post: 10-29-2003, 01:59 PM
  2. java and opera... always says invalid java directory
    By sujoki in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 08-26-2003, 03:54 PM
  3. delete all of these?
    By t048 in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 11-05-2002, 08:41 AM
  4. Please delete me.........................
    By in forum Announcements and Suggestions
    Replies: 8
    Last Post: 09-03-2002, 05:17 PM
  5. Java & Mozilla (formerly Java and Netscape)
    By papanohair in forum Linux - General Topics
    Replies: 2
    Last Post: 01-07-2002, 08:21 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
  •