buildpath

How can I add a .jar to my build path in Eclipse?

别等时光非礼了梦想. 提交于 2019-11-30 21:40:48
I try to do it the following way: Right click on the name of the project. Click on Build Path in the drop dawn menu. Click on "Configure Build Path" And then I do not know what to do. Should I select "Source", "Projects", "Libraries", "Order and Export"? In "Libraries" I have "Add JARs..." and "Add External JARs...". What should I select? (I have already a .jar file in the lib folder of my project.) ADDED: If I click on "Add JARs" in the "Libraries" tab, I see the "lib" sub-folder but if I go there I do not see my .jar file there (and I know that it is there). Right click on the jar you want

Maven: How to include jars in Eclipse, which are not available in repository?

对着背影说爱祢 提交于 2019-11-30 08:07:31
问题 I have copied the JARs into src\main\webapp\WEB-INF\lib . I use eclipse. If I add the jars one-by-one to Project-> Java Build Path-> Add jars, then I do Project-> Maven-> Update Project Configuration, they are removed by Maven. And Eclipse shows errors, which contain " xxx cannot be resolved". Env: Eclipse Java EE IDE for Web Developers. Version: Indigo Service Release 1 Build id: 20110916-0149 m2e - Maven Integration for Eclipse 1.0.100.20110804-1717 Note: I don't want to create my own Maven

What is Android Dependencies? Remove it from Build Path, ClassNotFoundException occurs

流过昼夜 提交于 2019-11-30 07:15:59
I'm working on a team project. I included a .jar file in Build Path and committed to SVN. When I updated code in my working directory, a new folder appears in Eclipse called "Android Dependencies". If I let it be there, my program runs; If I remove it, my program reports a ClassNotFoundException . Now how to fix this ClassNotFoundException ? Android Dependencies is a virtual folder where Eclipse shows what JAR files the project depends on. It's not a physical folder; you won't find it on your hard disk. And the folder is not checked in into Subversion. Do not delete that folder. You will

Glassfish Server Library not available in Eclipse Kepler?

此生再无相见时 提交于 2019-11-30 03:10:46
问题 I'm setting up a new dev machine with Eclipse Kepler to deploy on a Glassfish 3.1.2.2 instance. When I go to project properties > java build path > libraries > add library > server runtime There is no option to add the Glassfish server libraries. Some other notes of what I've done (whether they help or not...): Manually installed GF Installed OEPE for Juno GF Server already added GF Server starts / stops no problem (from Eclipse) I pretty much had the same setup on my other machine with the

The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

牧云@^-^@ 提交于 2019-11-29 22:22:57
I'm a beginner and learning spring and hibernate (utilizing maven in project)and came across this problem and got stuck here. tried finding solution but ended up no where. Please help. thanks a lot Error: "Can not find the tag library descriptor for " http://java.sun.com/jsp/jstl/core " Code: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %> <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> Tried the solutions given in The superclass "javax.servlet.http.HttpServlet" was not found on

why xml files in eclipse project's source directory is not copied to target/classes directory?

老子叫甜甜 提交于 2019-11-29 07:43:38
this issue is not the same as MyBatis 3.0.5 and mappers loading problem and How to suppress Maven "Unable to find resource" messages? i have xml files in org.org.wpse.db.config.db.config package, but why i cannot find these xml files in target/classes/org/wpse/db/config/ directory even after i run mvn compile. this error leads to the following faillure when i use mybatis: Could not find resource the issue which lead to this error is that the .xml files are not copied to the build dir, even i when i used mvn compile explicitly yorkw Maven is by default looking for resource files i.e. *.xml, *

android-support-v7-appcompat library project won't work

自古美人都是妖i 提交于 2019-11-28 13:48:24
I am trying to add Support Library v7 to my clean android project as support library (with resources). I followed every instruction here: http://developer.android.com/tools/support-library/setup.html#download and android.support.v7.* package is not visible in my main project. Here is library reference in main project: Support library project tree: Support library project build path: And finally, my main project tree I don't see any errors in Problems tab, app compiles and runs normally but i cannot import android.support.v7 package which apparently isn't in build path in main project. I went

Didn't find class on path: dexpathlist

爱⌒轻易说出口 提交于 2019-11-28 09:50:59
Seriously, i don't know what to do to solve this problem. My android project was working fine, until i needed to import a library with Maven. Since that, everything started to collapse. What is happening: When i start my application, the following error appears on LogCat and android tells that my app stopped working. I've searched for this similar error here AND on the rest of the internet, but everything people did haven't worked for me. Error: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.buscaserra/com.buscaserra.main.ActivitySplash}: java.lang

The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files

本秂侑毒 提交于 2019-11-28 09:36:12
I have downloaded Eclipse and tried to create a sample servlet program but I got following error The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files I have configured build path correctly. I am using Java 8 and Apache Tomcat 7 and libraries for both are referenced correctly. Problem is specifically for Java EE only. Ordinarily Java SE projects are running fine. mzjn Something happened in Java 8 Update 91 that broke existing JSP code. That seems pretty clear. Here is a sample of similar questions and bug reports: Unable to compile JSP

why xml files in eclipse project's source directory is not copied to target/classes directory?

强颜欢笑 提交于 2019-11-28 01:21:54
问题 this issue is not the same as MyBatis 3.0.5 and mappers loading problem and How to suppress Maven "Unable to find resource" messages? i have xml files in org.org.wpse.db.config.db.config package, but why i cannot find these xml files in target/classes/org/wpse/db/config/ directory even after i run mvn compile. this error leads to the following faillure when i use mybatis: Could not find resource the issue which lead to this error is that the .xml files are not copied to the build dir, even i