eclipse

Eclipse Juno Loading descriptor error

纵然是瞬间 提交于 2021-02-06 10:47:09
问题 I just updated my Eclipse from Galileo to Juno. I created a new workspace and imported a Java Spring MVC based project. When I open it, it begins 'Loading descriptor' and then an error message pops up: An internal error occurred during: "Loading descriptor for mta_pfm.". If I open it using Galileo, there is no error. I tried to disable the validation of XML file in Juno, but it does not work. I have no idea how to fix it now. Please help. Thanks org.eclipse.emf.ecore.resource.impl

Why does Android Lint warn about String.format using default locale when explicitly using Locale.US?

不打扰是莪最后的温柔 提交于 2021-02-05 20:40:12
问题 I originally called String.format this way: return String.format("%s %f %f", anotherString, doubleA, doubleB); Which made Android Lint generate this warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead So I changed it to use Locale.US explicitly, based on what I read at http://developer.android.com/reference/java/util/Locale.html under the "Be wary of the default locale" section: return String.format(Locale.US, "%s %f %f",

Why does Android Lint warn about String.format using default locale when explicitly using Locale.US?

心已入冬 提交于 2021-02-05 20:40:03
问题 I originally called String.format this way: return String.format("%s %f %f", anotherString, doubleA, doubleB); Which made Android Lint generate this warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead So I changed it to use Locale.US explicitly, based on what I read at http://developer.android.com/reference/java/util/Locale.html under the "Be wary of the default locale" section: return String.format(Locale.US, "%s %f %f",

Android Lint erroneously thinks min SDK version is 1

自作多情 提交于 2021-02-05 19:57:55
问题 Eclipse refuses to build my Android project. In the package explorer, the project root node has the little red error symbol, but nothing else inside of it has this symbol. The Problems tab shows errors detected by Lint: Call requires API level 3 (current min is 1): android.os.AsyncTask#<init> Call requires API level 3 (current min is 1): android.view.GestureDetector#<init> Call requires API level 3 (current min is 1): android.view.inputmethod.InputMethodManager#hideSoftInputFromWindow Call

How to install JDBC driver in Eclipse web project without facing java.lang.ClassNotFoundexception

折月煮酒 提交于 2021-02-05 11:48:24
问题 There is a VERY similar question to mine but in my case I don't have any duplicate jars in my build path, so the solution does not work for me. I've searched google for a couple of hours now, but none of the solutions I've found there actually resolve my issue. I'm creating a web site with some database connectivity for a homework. I'm using a MySQL database, developing in Eclipse and running on Windows. I keep getting java.lang.ClassNotFoundException: com.mysql.jdbc.Driver with the following

How to install JDBC driver in Eclipse web project without facing java.lang.ClassNotFoundexception

不问归期 提交于 2021-02-05 11:48:01
问题 There is a VERY similar question to mine but in my case I don't have any duplicate jars in my build path, so the solution does not work for me. I've searched google for a couple of hours now, but none of the solutions I've found there actually resolve my issue. I'm creating a web site with some database connectivity for a homework. I'm using a MySQL database, developing in Eclipse and running on Windows. I keep getting java.lang.ClassNotFoundException: com.mysql.jdbc.Driver with the following

Error only with maven: NoClassDefFoundError: feign/codec/Encoder

白昼怎懂夜的黑 提交于 2021-02-05 11:26:27
问题 I created a project in Eclipse with the Maven wizard and edited the pom.xml file to include my dependencies. My project, which uses Open Feign, builds and runs in Eclipse, but I get the following runtime error when I build it at the command line with Maven: Error: Unable to initialize main class edu.mills.cs180a.BookRepositoryImplFeign Caused by: java.lang.NoClassDefFoundError: feign/codec/Encoder Here is my pom.xml file: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/

Error only with maven: NoClassDefFoundError: feign/codec/Encoder

别说谁变了你拦得住时间么 提交于 2021-02-05 11:26:10
问题 I created a project in Eclipse with the Maven wizard and edited the pom.xml file to include my dependencies. My project, which uses Open Feign, builds and runs in Eclipse, but I get the following runtime error when I build it at the command line with Maven: Error: Unable to initialize main class edu.mills.cs180a.BookRepositoryImplFeign Caused by: java.lang.NoClassDefFoundError: feign/codec/Encoder Here is my pom.xml file: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/

Is it possible to limit the memory in Tomcat for a single WAR app?

狂风中的少年 提交于 2021-02-05 10:50:13
问题 I have a vaadin app where if I don't limit the RAM, the WAR will run it up to 2.5+gb in Tomcat but if I limit it to 1gb in eclipse using this the program will stay steady around 700mb(when no action)-1.2gb (when running a large dataset). Is there a way to export this war with the memory constraint? I have other war apps on the same Tomcat server, but this one is the only one that runs rampant. Or is it better practice to create a separate virtual server and set the memory constraint in Tomcat

What is “ECLIPSE SDK”?

冷暖自知 提交于 2021-02-05 09:53:35
问题 I assumed "Eclipse SDK" was installed by default with Eclipse, I am using eclipse JEE. But when I go try to intall via the update site, I have to option to install it, meaning it is not installed already. Can someone please help me to figure this out ? 回答1: Eclipse SDK is the plug-ins for the core of Eclipse and includes the source code plug-ins. You probably already have the normal plug-ins but not the source code. With the source code plug-ins installed it is easy to read the Eclipse source