
Eclipse
普通网友
这个作者很懒,什么都没留下…
展开
-
Eclipse共享项目到SVN版本库
不管是一个人开发,还是一组人开发,我们都应该养成这样一个好的习惯,就是使用版本管理系统。这有什么好处呢? 没有版本控制系统的话,代码可能被别人或自己不小心覆盖或遗失、也不知道是谁因为什么原因改了这段代码、也没办法可以复原回前几天的修改。有了版本控制系统,开发人员只要将每次程式码的变更都纪录(Commit)起来,并且透过版本控制系统中进行更新。 有了版本控制系统,我们可以浏览所有开发的历...原创 2018-07-04 14:47:08 · 2707 阅读 · 0 评论 -
Eclipse EGit - Pull Failed Dirty Worktree
接上篇“Eclipse EGit插件安装使用记录”,用惯SVN的人想一下子接受Git的思想还是比较难的,可能是我太笨,太老,不中用了!Maven类型的项目克隆下来,导入到Eclipse中,没做任何修改,执行Pull的时候就报错了:Pull Failed Dirty Worktree。如下图:对于用惯了SVN的我真是不习惯,一脸的懵逼啊!解决方法:执行 Reset reset命令有3种方式:1、gi原创 2016-09-23 19:08:05 · 13274 阅读 · 1 评论 -
MyEclipse 2016 CI 版本实时预览功能引发的中文乱码的Bug
今天一个加入我的QQ群:IT十年(170273637)的朋友,请教关于MyEclipse 2016 CI 3 JSP页面中文乱码的问题;开始是JSP页面在编辑器中乱码,解决之后又发现在浏览器中查看是乱码,说是该配置的都已经配置了,还问我是不是MyEclipse新版本的问题,我当时还很自信的说应该不是;由于当时是工作时间不方便,我就说晚上帮他看看。中文乱码问题搞Web开发的,特别是Java Web开原创 2016-08-09 22:00:10 · 5198 阅读 · 4 评论 -
Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires
Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.问题描述:OS:Windows 7 x64Eclipse:Eclipse Jav原创 2016-03-14 17:02:23 · 104483 阅读 · 28 评论 -
如何查看eclipse是32位还是64位
如何查看eclipse是32位还是64位?1、如果是在官网下载的,看压缩包名字就可以看出来,只带有win32字样的是32位,带有win32-x86_64字样的是64位的。如果已经安装了很多,安装包已经找不到了怎么办呢?2、找到eclipse安装目录的eclipse.ini文件打开,在launcher.library项下,如果是win32.x86则是32位的,如果是win32.x86_64则是64位原创 2016-03-10 20:48:17 · 9230 阅读 · 0 评论 -
Could not publish to the server. java.lang.NullPointerException
错误信息:publishing to tomcat v8.0 server at localhost has encontered a problemCould not publish to the server. java.lang.NullPointerException产生错误的操作:解决方法:1、找到Tomcat的配置文件“context.xml”,在Context标签中添加两个属性( r原创 2015-11-16 10:44:42 · 34126 阅读 · 11 评论 -
java.lang.UnsatisfiedLinkError: 包名.方法名([BLjava
Tomcat启动时,输出如下错误信息:24-May-2015 18:27:39.057 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleExceptio原创 2015-05-24 18:30:29 · 8165 阅读 · 3 评论 -
Referenced file contains errors (http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_4.xsd).
项目导入后,一个tld文件提示以下错误:Referenced file contains errors (http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_4.xsd). For more information, right click on the message in the Problems View and select “Show原创 2015-05-24 16:18:25 · 13888 阅读 · 2 评论 -
org.apache.tomcat.util.bcel.classfile.ClassFormatException: It is not a Java .class file
Tomcat启动时输出以下错误:24-May-2015 14:47:07.441 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.processAnnotationsJar Unable to process Jar entry [com/auth/spring/listener/SpringLoade原创 2015-05-24 15:04:34 · 23369 阅读 · 8 评论 -
java.io.IOException: invalid header field
Tomcat启动时出现以下错误:24-May-2015 14:15:47.703 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException:原创 2015-05-24 14:43:07 · 15010 阅读 · 2 评论 -
Eclipse EGit插件安装使用记录
好久没搞开发了,昨天接到任务在本地部署环境测试,验证实现是否符合需求,那就装个开发的环境吧。现在公司版本库用的Git,在几个群里问有什么好用的Git插件,结果也没人给个满意的答案!看看这些回复:我用VS,我用AS,Git命令行最好用(敲一长串命令快还是点个菜单快!当然Eclipse的响应速度可能确实不如某些大牛的闪电手)。没有满意的答案,自己上网搜索吧,发现也有EGit被提到的比较多!那好,就装它原创 2016-09-22 21:55:13 · 1488 阅读 · 0 评论 -
macOS 下的 Eclipse.ini 文件在哪?
macOS 下的 Eclipse.ini 文件在哪? 找应用程序中找到 Eclipse.app,在它上面单击鼠标右键,选择:显示包内容 逐层打开文件夹就可以看到它了: macOS 下的 Eclipse.ini 文件内容:-startup../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar--lau原创 2017-12-20 11:01:34 · 8491 阅读 · 0 评论 -
The project was not built due to "Could not delete ''.". Fix the problem, then try refreshing this p
Eclipse修改完Java类文件保存之后,项目上出现了错误提示,如图: 但是项目的文件都没有提示错误, 打开Problems窗口会看到具体的错误信息: The project was not built due to “Could not delete ”.”. Fix the problem, then try refreshing this project and building原创 2015-05-23 15:48:14 · 25786 阅读 · 17 评论 -
Mac OS X 下 Eclipse 安装 SVN 插件 subclipse 及JavaHL 方法
工作环境换了 Mac ,Java Web 项目开发当然用 Eclipse,团队 10 人以内,没有远程办公需求,前期也不需要快速的迭代,所以版本控制选用SVN。Eclipse 的安装,SVN 插件 subclipse 的安装都很简单,但 Mac 下想使用 SVN 的 Native library 是需要安装 JavaHL 的。由于使用 SVNkit 也可以,只是性能上没有使用 JavaHL 好,加原创 2017-04-19 18:55:23 · 14590 阅读 · 0 评论 -
Error: Port subversion-javahlbindings not found
操作系统:mac os sierra 10.12刚刚安装完 MacPorts执行命令“p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}span.s1 {font-variant-ligatures: no-common-ligatures}su原创 2017-03-15 12:30:11 · 2287 阅读 · 0 评论 -
org.apache.subversion.javahl.ClientException: svn: E155021: This client is too old to work with the
org.apache.subversion.javahl.ClientException: svn: E155021: This client is too old to work with the working copy at产生该错误的原因:由于执行的以下操作,所以产生此错误! 升级TortoiseSVN为TortoiseSVN-1.8.0.24401-x64-svn-1.8.0官方原版升级原创 2015-06-11 12:23:53 · 53064 阅读 · 10 评论 -
Eclipse 打开鼠标悬停提示功能
通常我们在使用 Eclipse 编辑 java 类文件时,缺少引用之类的,会在类名下面显示红色的波浪线,鼠标移上去会显示解决此类问题的提示,但今天一个小伙伴的 Eclipse 却怎么也不弹出提示了。解决方法:1、打开 Eclipse 的偏好设置2、在左侧的搜索框搜索“Hovers”或依次展开Java》Editor3、在 Hovers 上点击选中它4、在右侧的选项中勾选:Combined Hover原创 2017-04-10 19:04:48 · 16135 阅读 · 0 评论 -
Incompatible JavaHL library loaded. Subversion 1.8.x required.
Mac OS X 下 Eclipse 安装 SVN 插件 subclipse 和 JavaHL 之后,启动 Eclipse ,使用版本管理相关功能时,第一次会弹出提示:Incompatible JavaHL library loaded. Subversion 1.8.x required.环境描述:操作系统:mac os sierra 10.12p.p1 {margin: 0.0px 0.0p原创 2017-04-07 12:23:32 · 4385 阅读 · 4 评论 -
Eclipse启动报错:JVM terminated. Exit code=2
最初的时候Eclipse是安装在C盘,JDK也是,Workspace也放在C盘,最近由于C盘空间不够用了,所以把它们全部转移到了D盘,启动的时候就报错了:JVM terminated. Exit code=2C:\ProgramData\Oracle\Java\javapath\javaw.exe-Dosgi.requiredJavaVersion=1.6-Xms40m-Xmx512m-原创 2017-01-07 09:12:32 · 6471 阅读 · 0 评论 -
Eclipse Debug Absent Line Number Information
使用 Eclipse main 函数 Debug 时提示:Unable to install breakpoint in sun.security.action.GetPropertyAction due to missing line number attributes. Modify compiler options to generate line number attributes.Rea原创 2017-01-03 11:52:44 · 37889 阅读 · 0 评论 -
org.eclipse.jgit.errors.LockFailedException: Cannot lock D:\xxx\.git\index
用Eclipse+EGit项目开发,Commit 时提示:完整错误日志:eclipse.buildId=4.6.0.I20160606-1100java.version=1.8.0_31java.vendor=Oracle CorporationBootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CNFramework原创 2016-10-23 17:42:00 · 6874 阅读 · 1 评论 -
配置Tomcat以Debug模式启动了,但却只能本地用localhost连接调试
配置Tomcat以Debug模式启动了,但却只能本地用localhost连接调试! 这里只能使用localhost或127.0.0.1, 这是什么原因呢?问题就出在“address=localhost:8000”,如下图: 解决方案:将localhost改为0.0.0.0,如下图:原创 2015-05-23 18:45:24 · 5227 阅读 · 0 评论 -
Failed to connect to remote VM. Connection refused. Connection refused: connect
在使用Eclipse的远程调试功能,启动调试时提示以下信息:Failed to connect to remote VM. Connection refused. Connection refused: connect如图: 这是因为Tomcat还没有启动,或者是没有以Debug模式启动。原创 2015-05-23 10:56:28 · 33652 阅读 · 6 评论 -
Unrecognised tag: 'encoding' (position: START_TAG seen ...</version>\r\n\t\t\t\t<encoding>... @12:15
执行Maven Install打包的时候,出现以下错误信息:[INFO] Scanning for projects...[ERROR] The build could not read 1 project -> [Help 1][ERROR] [ERROR] The project pro.test:pro-test:0.0.1-SNAPSHOT (F:\Workspaces\pro原创 2015-05-10 14:26:56 · 26408 阅读 · 0 评论 -
java.io.IOException: Can't read [proguard.ClassPathEntry@5ef04b5] (Can't process class [WEB-INF/clas
执行Maven Install打包的时候,出现以下错误信息:[proguard] ProGuard, version 4.4 [proguard] Reading input... [proguard] Reading program war [F:\Workspaces\pro-test\target\pro-test-0.0.1-SNAPSHOT.war] (filtered) [prog原创 2015-05-10 18:22:15 · 8994 阅读 · 1 评论 -
Error: Unsupported java version '1.8' in line 2 of file 'proguard.conf'
执行Maven Install打包的时候,出现以下错误信息:[proguard] Error: Unsupported java version '1.8' in line 2 of file 'F:\Workspaces\pro-test\proguard.conf', [proguard] included from argument number 6这是因为在proguard.conf文原创 2015-05-10 17:08:59 · 5168 阅读 · 0 评论 -
java.io.IOException: The same input jar [E:\Jre\lib\rt.jar] is specified twice.
执行Maven Install打包的时候,出现以下错误信息:[INFO] proguard jar: E:\maven\mvnRespo\net\sf\proguard\proguard-base\5.2\proguard-base-5.2.jar [proguard] ProGuard, version 5.2 [proguard] java.io.IOException: The same原创 2015-05-10 18:05:34 · 8818 阅读 · 0 评论 -
Error: The input doesn't contain any classes. Did you specify the proper '-injars' options?
执行Maven Install打包的时候,出现以下错误信息:[proguard] ProGuard, version 4.4 [proguard] Reading program war [F:\Workspaces\pro-test\target\pro-test-0.0.1-SNAPSHOT.war] (filtered) [proguard] Error: The input doesn'原创 2015-05-10 15:07:39 · 8875 阅读 · 2 评论 -
Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
执行Maven Install打包的时候,提示以下警告信息: [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!解决方法: 打开项目属性》Resources,按下图修改就好了。原创 2015-05-08 18:46:49 · 43469 阅读 · 3 评论 -
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
执行Maven Install打包的时候,出现以下错误信息:[ERROR] COMPILATION ERROR : [INFO] -------------------------------------------------------------[ERROR] No compiler is provided in this environment. Perhaps you are runn原创 2015-05-10 15:10:45 · 8007 阅读 · 0 评论 -
java.io.IOException: The input doesn't contain any classes. Did you specify the proper '-injars' opt
问题场景在使用Maven + Proguard打包项目进行混淆时,提示以下错误:[proguard] ProGuard, version 4.4 [proguard] Reading input... [proguard] java.io.IOException: The input doesn't contain any classes. Did you specify the proper原创 2015-05-08 18:03:43 · 10772 阅读 · 0 评论 -
'build.plugins.plugin.version' for com.pyx4me:proguard-maven-plugin is missing. @ line 42, column 12
‘build.plugins.plugin.version’ for com.pyx4me:proguard-maven-plugin is missing. @ line 42, column 12执行Maven Install的时候提示如下警告信息:[WARNING] [WARNING] Some problems were encountered while building the eff原创 2015-05-08 16:34:53 · 6844 阅读 · 0 评论 -
Failed to execute goal com.pyx4me:proguard-maven-plugin:2.0.4:proguard (default) on project xunge-mi
Failed to execute goal com.pyx4me:proguard-maven-plugin:2.0.4:proguard (default) on project xunge-middleware: Execution default of goal com.pyx4me:proguard-maven-plugin:2.0.4:proguard failed: Plugin co原创 2015-05-08 14:25:40 · 5635 阅读 · 0 评论 -
Type name is discouraged. By convention, Java type names usually start with an uppercase letter
在Eclipse中添加类的时候,提示如下信息: Type name is discouraged. By convention, Java type names usually start with an uppercase letter 如下图: 原因是输入的类名“Name”首字母没有大写,把首字母改为大写的就好了。原创 2015-05-10 14:55:55 · 34460 阅读 · 0 评论 -
java.io.IOException: You have to specify '-keep' options for the shrinking step.
执行Maven Install打包的时候,出现以下错误信息:[proguard] java.io.IOException: You have to specify '-keep' options for the shrinking step. [proguard] at proguard.SeedPrinter.write(SeedPrinter.java:60) [proguard]原创 2015-05-11 11:18:39 · 6426 阅读 · 0 评论 -
Eclipse: Error (Bytecode Outline) SOURCE FILE [in PROJECT] is not on its project's build path
JAR creation failed. See details for additional information. spring-core-4.1.4.RELEASE-sources/META-INF/MANIFEST.MF was replaced by the generated MANIFEST.MF and is no longer in the JAR. org/spring原创 2015-05-22 19:07:24 · 6761 阅读 · 0 评论 -
eclipse导入本地项目SVN信息丢失的问题
问题描述Eclipse导入本地WorkSpace中的项目 导入的项目是用1.6.x版本的SVN创建管理的,后来SVN升级为1.8.x 导入成功之后Team菜单中却只有Apply Patch和Share Project 没有更新、提交等功能 解决方案 选择Team菜单中的Share Project》在弹出的对话框中选中SVN,点击下一步: 然后点击完成即可。原创 2015-05-07 12:25:40 · 14079 阅读 · 3 评论 -
Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
执行Maven Install打包的时候,出现以下错误信息:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project pro-test: Error assembling WAR: webxml attribute is required (or原创 2015-05-10 14:50:40 · 15146 阅读 · 1 评论 -
An internal error occurred during: "Loading descriptor for pro-test.".
在执行Maven Update的时候,提示以下错误: An error has occurred. See error log for more details. 详细错误: An error has occurred. See error log for more details. java.lang.NullPointerException重新启动Eclipse之后提示以下两个错误:原创 2015-05-13 10:39:10 · 31897 阅读 · 4 评论 -
Eclipse 分栏同时显示多个文件的内容
使用Eclipse进行项目开发时,有时需要在两个或以上的文件之间频繁切换,比较麻烦。这时我们可以考虑使用:分栏同时显示多个文件的内容的功能。 分栏方法: 需要打开多个文件,只有一个文件的情况下无法分栏。 左右横向分栏后: 上下分栏: 上下分栏后: 调整分栏大小: 但同一个Tab标签中分栏显示同一个文件的功能没有找到设置方法! 参见问题:http://ask.csd原创 2015-03-07 11:44:55 · 23977 阅读 · 6 评论