Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 7 of 7
  1. #1
    Baris Guest

    Default Java6 and Debian Etch

    Hi,



    I have a problem with java.

    I need install Open XChange on Debian Etch. But before i need java.

    the package sun-java5-jre didn't work. i dont know why!

    i know that java 5 is now EOSL:

    http://www.infoq.com/news/2009/11/java5_eosl

    So i used sun-java6-jre.

    But with following the install guide for Debian Etch,

    i always cannot continue configure open xchange because he cannot find java



    Code:
    update-alternatives --config java
    
    Il y a 3 alternatives fournissant « java ».
    
      Sélection    Alternative
    -----------------------------------------------
              1    /usr/bin/gij-wrapper-4.1
     +        2    /usr/lib/jvm/java-6-sun/jre/bin/java
    *         3    /usr/lib/jvm/java-1.5.0-sun/jre/bin/java

    In fact it is a problem with java, but i want to know if we can use java6 with Etch or it is necessarily to have java5 for Etch.

    Else, i need upgrade my Etch in Lenny. Not kewl :/

    Greetings,


    Baris

  2. #2
    Carsten Hoeger is offline Open-Xchange Professional Services
    Join Date
    Mar 2007
    Posts
    703

    Default

    OXpedia.org - the answer to almost all questions.

  3. #3
    Baris Guest

    Default

    i 'm looking these guides.

    It is strange. I choose alternative 3 but it didn't work.

    Code:
    # update-alternatives --config java
    
    Il y a 3 alternatives fournissant « java ».
    
      Sélection    Alternative
    -----------------------------------------------
              1    /usr/bin/gij-wrapper-4.1
     +        2    /usr/lib/jvm/java-6-sun/jre/bin/java
    *         3    /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
    
    Appuyez sur Entrée pour conserver la valeur par défaut[*] ou choisissez le numéro sélectionné :3
    Utilisation de « /usr/lib/jvm/java-1.5.0-sun/jre/bin/java » pour fournir « java ».
    
     # java -version
    java version "1.4.2"
    gij (GNU libgcj) version 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)
    
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  4. #4
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    3,695

    Default

    Have you tried uninstalling GCJ? Seems to be some spooky stuff with update-alternatives.

    Greetings

  5. #5
    Baris Guest

    Default

    i tried, but when i did update-alternatives --config java and chose sun java and then java -version , he found nothing

  6. #6
    Baris Guest

    Default

    omg i think update-alternatives is dead !!!

    i install manually java following this guide:

    Code:
    wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=37391
    
    mv jre-6u18* jre-6u18-linux-i586.bin
    
    sudo mv ./jre-6u18-linux-i586.bin /opt/
    
    cd /opt/
    
    chmod +x jre-6u18-linux-i586.bin
    
    sudo ./jre-6u18-linux-i586.bin
    
    sudo ln -fs /opt/jre1.6.0_18/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
    
    sudo update-alternatives --install /usr/bin/java java /opt/jre1.6.0_18/bin/java 1
    sudo update-alternatives --config java
    
    sudo rm -fr jre-6u18-linux-i586.bin
    on my alternatives i have jre-6u...

    i chose him but ...

    always gcj on java -version :s

  7. #7
    Baris Guest

    Thumbs up

    Code:
    update-java-alternatives -s java-6-sun in /usr/lib/jvm/
    mode auto didn't work, manually it's work !

    I don't understand all mysteries of Linux >_<

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
  •