eclipse问题

1.//Could not publish server configuration for Tomcat v7.0 Server at localhost. Multiple Contexts have a path of "/XXX".

需要把Servers中server.xml更正一下,去掉重复的context或重命名path

2. liunx 双击无法打开,通过终端命令行方式正常

用pstree来看,发现直接双击打开的程序都是在init下,so在/etc/environment中补充PATH,重启,就可以双击打开ECLIPSE了.

或者因为eclipse默认在自己的目录下找jre,so建立一个软连接就可以解决: 
$ cd <eclipse dir> 
$ ln -sf $JAVA_HOME/jre jre

用方法2,在Eclipse中启动Android SDK Manager时,遇到错误:android-sdk-linux/tools/android: java: not found,解决方法:A. 把tools/android脚本文件里的代码`java_cmd="java"`改成java的绝对路径;B:sudo ln -s /usr/java/jdk/bin/java /usr/bin/java

3.java环境变量配置

只需配置JAVA_HOME,PATH即可(jdk1.6以上就不需要配置classpath了;系统会自动帮你配置好).

4. Eclipse(4.4)安装旧版本插件

  Help -> Install New Software... -> Work with 选择“The Eclipse Project Updates - http://download.eclipse.org/eclipse/updates/4.4”  -> 勾选"Eclipse Tests, Examples, and Extras" 下的 "Eclipse 2.0 Style Plugin Support",安装重启即可(但有时插件还是会在x64上出错).

5. Eclipse 本地安装android ADT时路径不可有非ascii编码,而且需要先解压.

//启动Eclipse出错:Failed to load the JNI shared library...jvm.dll

eclipse版本的位数与jre或者jdk版本不一致

//A java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations……

确定JDK已经安装好,环境变量也已经配置无误,一般错在java环境变量的路径

//FrameworkEvent ERROR org.osgi.framework.BundleException: Could not resolve module: com.android.ide.eclipse.ndk 

可能是eclipse版本的位数与jre或者jdk版本不一致

//Eclipse4.4.1启动报错:java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String]

参考:https://www.liferay.com/community/forums/-/message_boards/message/45837395

 Install New Software - http://download.eclipse.org/eclipse/updates/4.4/ -  安装"Eclipse 4.4.1 Patches for bug 445122"

你可能感兴趣的:(eclipse问题)