73
votes
7answers
26k views

How to use an existing database with an Android application [duplicate]

I have already created an SQLite database. I want to use this database file with my Android project. I want to bundle this database with my application. Instead of creating a new database, how can ...
73
votes
7answers
103k views

How do I import the javax.servlet API in my Eclipse project?

I want to develop with Servlets in Eclipse, but it says that the package javax.servlet cannot be resolved. How can I add javax.servlet package to my Eclipse project?
614
votes
14answers
138k views

What is a serialVersionUID and why should I use it?

Eclipse issues warnings when a serialVersionUID is missing. The serializable class Foo does not declare a static final serialVersionUID field of type long What is serialVersionUID and why is ...
136
votes
20answers
65k views

NoClassDefFoundError - Eclipse and Android

I'm having a problem trying to run an Android app which, up until adding a second external library to its build path, was working fine. Since having added the scoreninja jar, I now get a ...
244
votes
9answers
188k views

Access restriction on class due to restriction on required library rt.jar?

I'm attempting to compile Java 1.4 code that was created by IBM's WSDL2Java on Java5 without recreating the stubs and saw this error in Eclipse. I'm under the assumption that the stubs created should ...
102
votes
11answers
175k views

How to set the java.library.path from Eclipse

How can I set the java.library.path for a whole Eclipse Project? I'm using a Java library that relies on OS specific files and need to find a .dll/.so/.jnilib. But the Application always exits with an ...
539
votes
7answers
114k views

'Must Override a Superclass Method' Errors after importing a project into Eclipse

Anytime I have to re-import my projects into Eclipse (if I reinstalled Eclipse, or changed the location of the projects), almost all of my overridden methods are not formatted correctly, causing the ...
269
votes
41answers
73k views

Useful Eclipse Java Code Templates

You can create various Java code templates in Eclipse via the Window->Preferences->Java -> Editor -> Templates e.g. sysout is expanded to: ...
280
votes
28answers
310k views

Failed to load the JNI shared Library (JDK)

When I try opening Eclipse, a pop-up dialog states: Failed to load the JNI shared library "C:/JDK/bin/client/jvm.dll"`. Following this, Eclipse force closes. Here's a few points I'd like to ...
73
votes
11answers
76k views

Good free UML tool for Java/Eclipse? [closed]

I'm looking for a free and easy-to-use UML diagramming tool for Java. In particular I'd looking for something that would integrate with Eclipse, as most of my codebase is in Eclipse. Any ...
50
votes
12answers
7k views

Do you keep your project files under version control? [closed]

Do you keep project files like Eclipse's .project, .classpath, .settings under version control (e.g. subversion)?
102
votes
21answers
360k views

Eclipse - no Java (JRE) / (JDK) … no virtual machine

I am trying to get Eclipse Galileo to re-run on my computer - i have run it before with no problems but now i keep getting this error: A java Runtime Environment (JRE) or Java Development kit ...
92
votes
23answers
78k views

Android Eclipse - Could not find *.apk [closed]

I know this question has been asked before and I have seen a plethora of solutions out there, yet none seem to work for me. I was able to build my apk without issues until this error started cropping ...
55
votes
4answers
8k views

What is the difference between javac and the Eclipse compiler?

Is Eclipse's Java compiler just a wrapper around the same core that the javac program is wrapped around, or is it a separate compiler altogether? If the latter, why would they reinvent the wheel?
196
votes
5answers
86k views

Eclipse/Java code completion not working

I've downloaded, unzipped and setup Eclipse 3.4.2 with some plugins (noteable, EPIC, Clearcase, QuantumDB, MisterQ). Now I find when I'm editing Java projects the code completion is not working. If ...

15 30 50 per page