Top "Classpath" questions

In Java, the classpath tells the Java Virtual Machine where to look for user-defined classes and packages when running Java programs.

How do I define a compile-time *only* classpath in Gradle?

Can someone please give me a simple build.gradle example of how I can specify compile-time-only classes that are not …

compilation classpath gradle
JPA with TopLink: No META-INF/persistence.xml was found in classpath

public class LoginTest { public static void main(String[] args) { EntityManagerFactory emf = Persistence.createEntityManagerFactory("IRCBotPU"); EntityManager em = emf.createEntityManager(); em.getTransaction().…

java jpa persistence classpath toplink
How to configure the bootstrap classpath of an Eclipse plug-in?

I'd like to replace some of the classes (javax.tools.*) of rt.jar that my Eclipse plug-in depends on by …

java eclipse classpath bootclasspath
@PropertySource in a Jar for an external file on the classpath

I'm trying to use the Spring framework's @PropertySource annotation in a Jar to load a properties file from outside the …

java spring jar classpath properties-file
Dynamically loading plugin jars using ServiceLoader

I'm trying to create a plugin system for my application, and I want to start with something simple. Every plugin …

java jar classpath serviceloader
How to set eclipse to ignore the "Classpath Dependency Validator Message" Warning

I would like it to have no warnings in my eclipse projects, but I get this one warning: Classpath entry …

eclipse classpath warnings liferay ignore
How to read a file from classpath without external dependencies?

Is there a one-liner in Scala to read a file from classpath without using external dependencies, e.g. commons-io? IOUtils.…

string scala classpath
Spring startup performance issues

I'm trying to integrate Spring in a pretty large application with thousands of classes, and i'm experiencing huge delays starting …

java spring spring-mvc classpath bootstrapping
Too long line in manifest file while trying to create jar

I am getting a too long line error while trying to build a jar. the long line in the manifest …

java jar classpath manifest
IntelliJ 13 Tomcat Error configuring application listener of class org.springframework.web.util.Log4jConfigListener

I'm attempting to run a Java/Spring/Hibernate/Ivy application using IntelliJ 13 and its built in Tomcat deployment plugin. I'm …

java tomcat intellij-idea classpath classnotfoundexception