Announcement

Collapse
No announcement yet.

64 bit and java

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    64 bit and java

    I tried to install with the universe and multiverse repositories.
    Negative, apt-get install sun-java5-jre or sun java5-jdk never heard of it.

    here is my repositories.

    deb http://ca.archive.ubuntu.com/ubuntu/ dapper main restricted
    deb-src http://ca.archive.ubuntu.com/ubuntu/ dapper main restricted

    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://ca.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
    deb-src http://ca.archive.ubuntu.com/ubuntu/ dapper-updates main restricted

    ## Uncomment the following two lines to add software from the 'universe'
    ## repository.
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## universe WILL NOT receive any review or updates from the Ubuntu security
    ## team.
    deb http://ca.archive.ubuntu.com/ubuntu/ dapper universe
    deb-src http://ca.archive.ubuntu.com/ubuntu/ dapper universe

    ## Uncomment the following two lines to add software from the 'backports'
    ## repository.
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://ca.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
    deb-src http://ca.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

    deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
    deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
    # deb http://security.ubuntu.com/ubuntu dapper-security universe
    # deb-src http://security.ubuntu.com/ubuntu dapper-security universe

    #deb http://security.ubuntu.com/ubuntu dapper-security multiverse
    #deb-src http://security.ubuntu.com/ubuntu dapper-security multiverse

    deb http://bertram.ifrance.com ./
    deb-src http://bertram.ifrance.com ./


    now I also downloaded the 64 bit version from www.java.com says to use the 32 bit version. figure the 64 has to be the 32.

    follow sun's instruction and put it in /usr/local. its all there down to the word DONE when it was finished.

    I logged out and back in just in case.

    here is the command to see the version I have installed.
    root@krynn:/home/michelle# java -version
    java version "1.4.2"
    gij (GNU libgcj) version 4.1.0 (Ubuntu 4.1.0-1ubuntu8)

    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.
    root@krynn:/home/michelle#


    I install version 1.5.0.07

    I used the command
    root@krynn:/home/michelle# update-alternatives --config java

    to choose the new version but its not there.

    Typing aboutlugins in firefox says no plugin at all.

    So what do I do?

    Thanks for all the help I get in advance.

    #2
    Re: 64 bit and java

    Hello,
    I new in the kbuntu world(but not in linux), I supose that finding a propìery implementation of java like the sun's one in a repository is not easy. Only very few repositoies include propietary software.

    In the other hand It's very easy to find a free implementation of java like kafeine ....

    If you want sun's java, download it (jre and jdk) from sun.com, It's very easy to install and free of charge (I think that source code is not free but there is not limitations ).

    If you have installed jdk javac -version should tell you which version of the compiler you are using.

    The problem is that you have already installed a free implementation of java. (ubuntu did it for you)
    If you go to /usr/bin you probably find a simbolic link pointing to the free implementation of java.
    Go there and put in the console ls -l javac if this link does not point to the diretory where you have installed java, you have found the problem.

    To fix it you can rename /usr/bin/javac to /usr/bin/whateveryouwant and create a new simbolic link javac pointing to your java installation(compiler). That would be enought. (there is no need of uninstalling old java but I think it would be better).

    java2 -> /etc/alternatives/java
    javac -> /usr/local/jdk1.5.0_07/bin/javac

    I renamed javac to java2 and then I created a new simbolic link pointing to the sun's java

    To install the plugins is a easy task too.
    If you have installed jre you can find a directory named plugins.
    You have to create a simbolic link into firefox/mozilla plugin's directory pointing to the pluglin you need in that directory(jre).

    libjavaplugin_oji.so -> /usr/local/jre1.5.0_07/plugin/i386/ns7/libjavaplugin_oji.so

    Don' t forget paths

    example:

    #variables de entorno
    export JAVA_HOME=/usr/local/jre1.5.0_07
    export PATH=$PATH:/usr/local/jre1.5.0_07/bin
    export PLUGIN_HOME=/usr/local/jre1.5.0_07/plugin
    export CLASSPATH=$CLASSPATH:/$PWD:/usr/local/jre1.5.0_07/lib/ext/mysql-connector-java-3.1.13-bin.jar
    :/usr/local/tomcat/common/lib/servlet-api.jar



    I hope you find this information usefull.

    bye

    Comment


      #3
      Re: 64 bit and java

      If you still want to install java from a repository you can find it at https://wiki.ubuntu.com/SeveasPackages

      Comment

      Working...
      X