系统升级win10后,eclipse打开图片都默认使用txt文本打开,结果肯定乱码。解决方案一:将图片拖到桌面->打开方式->其他->使用图片打开(下面勾选以后都这样打开)。解决方案二:点击Window- preference-general-editors-file associations,上面添加.JPG(图片格式为png就为.PNG,以此类推),下面添加打开方式PhotoViewer.FileAssoc.Tiff,就可以打开jpg不乱码了原文:http://www.cnblogs.com/yshengz/p/yshengz-java-1.html
Eclipse项目上存在红叉,但是又不影响运行,同时展开项目未指明任何内容出错,可以按如下步骤进行处理: 0.查看Problems视图,定位错误,发现处理之;1.检查Build Path中的各个依赖jar及library是否有warning的标志,若有,处理之; 2.project->clean 工程; 3.window->preference->java->complier->building->build path problems->cirluar dependency设置成warning4.对于安装有Maven插件的,可以右键项目->Maven->Update Project...
Multiple annotations found at this line:
- Execution default-testResources of goal org.apache.maven.plugins:maven-resources- plugin:2.4.3:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3 () (org.apache.maven.plugin...
Android开发的时候经常会出现eclipse devices中不显示手机或模拟器的情况网上有很多方法,但是都不实用。这里我提供一种方法:如果手机连接上了不显示的话首先我们要确定我们手机的驱动是否安装成功了,验证是否安装成功的方法就是打开控制面板,然后打开设备管理器如果没有安装手机的驱动没有安装成功就会像下面一样,其他设备的位置显示一个自己手机的惊叹号,如图:解决办法就是在电脑上安装一些手机助手之类的软件,推荐安装豌...
Open the eclipse folder and edit the eclipse.ini file: Please check if the file has the -vm parameter, if not, then add it. -vmC:\Program Files\Java\jdk1.6.0_10\bin\javaw.exe Note: It should be add before the -vmargs parameter. See my eclipse.ini, just like the following:-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.w...
问题:电脑突然断电,myeclipse非正常关闭,“Package Explorer”非正常显示,出现错误“Could not create the view: An unexpected exception was thrown.”。但是项目中的文件可以通过命令查看。解决方式:关闭myeclipse -- 删除文件“.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs” -- 重新启动myeclipse即可原文:http://www.cnblogs.com/cz-xjw/p/4200371.html
最近,苹果发布了macOS High Sierra,版本为10.13,专门针对mac pro的用户来着,至于好处大家到苹果官网看便是,我就是一个升级新版本系统的受益者,同时也变成了一个受害者:打开eclipse后去菜单看,发现傻眼了,所有菜单栏选项全部变成灰色,完全不可用了,如下图:解决办法步骤如下: 1.关闭eclipse,找到eclipse启动程序Eclipse.app ; 2.在Eclipse.app右击选择“显示包内容”; 3.打开Contents文件夹,对Info.plist进...
打开SDK Manager,停止更新连接;在界面上方找Tools->Options打开了SDK Manager的Settings,选中“Force https://… sources to be fetched using http://…”,强制使用http协议。Windows在C:\WINDOWS\system32\drivers\etc打开/etc/hosts文件,添加下面两个地址:203.208.46.146 dl.google.com203.208.46.146 dl-ssl.google.com修改Hosts文件Windows系统:C:\WINDOWS\system32\drivers\etc\hostsMac ox:/etc/hosts 原文:http:/...
问题描述:在Eclipse中运行ant批量打包工具出错,日志信息如下: D:\Android\android-sdk-windows\tools\ant\build.xml:601: The following error occurred while executing this line: D:\Android\android-sdk-windows\tools\ant\build.xml:720: The following error occurred while executing this line: D:\Android\android-sdk-windows\tools\ant\build.xml:734: Unable to find a javac compiler; com.sun.tool...
1. Eclipse 中运行Java 出现报错 Editor does not contain a main type,这里以 Hello world 程序为例 2. 执行的Java程序所在目录没有被认定为源文件包,换句话说,该程序所在的目录不能被正常编译运行可能是不小心将src源文件包转换成了普通包可能是新建了一个包,没有转换成源文件包 3. 点击右键,选择 Build Path 将该文件夹作为源文件夹 4. 转换成功后,文件夹的右上角有个“田”字一样的包的样式 5. 再运行Java程序就可以运行...
Eclipse中jsp、js文件编辑时,卡死现象解决汇总使用Eclipse编辑jsp、js文件时,经常出现卡死现象,在网上百度了N次,经过N次优化调整后,卡死现象逐步好转,具体那个方法起到作用,不太好讲。将所有用过的方法罗列如下: 1、取消验证windows–>perferences–>validation把 除了manual 下面的全部点掉,build下只留 classpath dependency Validator 2、关闭拼写检查windows–>perferences–>general–> editors->Text Editors->spel...
原文:You must restart adb and Eclipse多种情形分析与解决方案
一:错误提示The connection to adb is down, and a severe error has occured.You must restart adb and Eclipse.Please ensure that adb is correctly located at ‘D:\xxx\xxx\adb.exe’and can be executed.
二: 5037端口被占用
a: 开始菜单 → 运行 → cmd → 回车执行 b: netstat -aon|findstr "5037" → 回车执行 → 得到5037端口运行程序PID c...
Eclipse 编译错误 Access restriction:The type *** is not accessible due to restriction on... 解决方案
Eclipse 编译时报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:/Program Files/Java/jre6/lib/rt.jar 解决方法: Project -> Properties -> libraries, 先 remove 掉 JRE System Library,然后再 Add Library 重新加...
1、Mysql安装时或按装后选择服务器配置时即MySQL Server Instance Config Wizard在选择编码时,默认是latin1选择成gbk,之后再重建数据库、表等。 2、为JSP加编码过滤器。 public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg1、Mysql安装时或按装后选择服务器配置时即MySQL Server Instance Config Wizard在选择编码时,默认是latin1选择成gbk,之后再重建数据库、表等。
2、为JSP加编码过滤器。pu...
1、错误描述,就是导入eclipse构建的maven项目,eclipse的Problem报下面的错误。解决方法,在pom.xml配置下面,如下所示: 1 <build>2 <finalName>项目名称</finalName>3 <plugins>4 <plugin>5 <groupId>org.apache.maven.plugins</groupId>6 <artifactId>maven-compiler-plugin</artifactId>7 <version>3.1</version>8 <configuration>9 <!--如...