zoukankan      html  css  js  c++  java
  • manually install java and eclipse and setup eclimd vim

    Follow the tip from elimd we need to those requriement

    Install jdk

      1. download jdk
      2. unzip this tarball using "tar -zxvf tarball_name
      3. create a folder name java in /usr/lib, you need root permission
      4. mv the extracted folder to /usr/lib/java/
      5. next run these below scripts in terminal
        sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/java/jdk1.7.0_65/bin/java" 1
        sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/java/jdk1.7.0_65/bin/javac" 1
        sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/java/jdk1.7.0_65/bin/javaws" 1
      6. verify your installtion             
      7. update the JAVA_HOME in your ~/.bashrc
        export JAVA_HOME=/usr/lib/java/jdk1.7.0_65
        set PATH="$PATH:$JAVA_HOME/bin"
        export PATH

     vdrify java has been succefully configure by runing

    update-alternatives --disaply java && update-alternatives --display javac

    the output should look like this 

     java - auto mode
        link currently points to /opt/jdk/jdk1.8.0_05/bin/java
        /opt/jdk/jdk1.8.0_05/bin/java - priority 100
        Current 'best' version is '/opt/jdk/jdk1.8.0_05/bin/java'.
    
        javac - auto mode
        link currently points to /opt/jdk/jdk1.8.0_05/bin/javac
        /opt/jdk/jdk1.8.0_05/bin/javac - priority 100
        Current 'best' version is '/opt/jdk/jdk1.8.0_05/bin/javac'.

    or you can change the file /var/lib/dpkg/alternatives/java && /var/lib/dpkg/alternatives/javac



    Install eclipse4.4.x

    1.download and tar -xzvf eclipse*.*.gz

    2.mv eclipse  /opt/eclipse

    3 ./eclipse

    now you can run eclipse in the floder with this command in normal user mode,but there is bug in Eclipse within debian wheezy

    Eclipse 4.4 Luna is affected by Bug 430736, which makes it unable to start Eclipse Luna under debian wheezy.

    In fact, the crash occurs during the detection of an appropriate GTK+ library version and triggers a segmentation fault with glibc versions ≤ 2.13.

    In order to allow running Eclipse Luna under debian wheezy, add the following lines to your eclipse.ini file:

    --launcher.GTK_version

    2

    Lines to activate GTK+2-only mode in eclipse.ini
    --launcher.GTk_version
    2
    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326
    -product
    org.eclipse.epp.package.standard.product
    --launcher.defaultAction
    openFile
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    --launcher.appendVmargs
    -vmargs
    -Dosgi.requiredJavaVersion=1.7
    -XX:MaxPermSize=256m
    -Xms40m
    -Xmx512m
     

    Using -noSplash or setting SWT_GTK3=0 may help, too.

    Install eclimd and run it

    if you loging in root and build eclimd with root ,you can't startup eclimd .To slove this problem 

    edit the eclimd file in you /opt/ecliped  and change the first line .I don't get any trouble with doing that .

    you need to edit you .classpath file or maybe you want to import you own library .There is some notes you must create you won lib folder and put you xxx.jar into it.

    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
        <classpathentry kind="src" path="src"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
        <classpathentry kind="output" path="bin"/>
        <classpathentry kind="output" path="lib"/>
    
        <classpathentry kind="lib" path="lib/algs4.jar" sourcepath="lib/algs4.jar"/>
    </classpath>
     
  • 相关阅读:
    Mycat读写分离+高可用笔记
    MyCAT基础安装笔记
    C# Winform中DataGridView的DataGridViewCheckBoxColumn CheckBox选中判断
    C# winform DataTable 批量数据处理 增、删、改 .
    选中CheckBoxList的值放到TextBox中,再次选中从textBox中删除
    dede后台删除文章后台还有分页显示解决方法
    dedecms数据库表说明大全
    织梦自增函数[field:global name=autoindex/]常见用法
    http协议的状态码——400,401,403,404,500,502,503,301,302等常见网页错误代码
    web.config设置之system.webServer 详细介绍,为网站设置默认文档
  • 原文地址:https://www.cnblogs.com/been/p/3953842.html
Copyright © 2011-2022 走看看