This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes AbstractTransactionalJUnit4SpringContextTests cannot be resolved to a type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "AbstractTransactionalJUnit4SpringContextTests cannot be resolved to a type" Watch "AbstractTransactionalJUnit4SpringContextTests cannot be resolved to a type" New topic
Author

AbstractTransactionalJUnit4SpringContextTests cannot be resolved to a type

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
I download the petclinic samples program.
I installed java 1.6.0_18, junit 4.8.2, Spring 2.5.6 and eclipse-rcp-galileo-SR2-win32.
CLASSPATH=C:\Program Files\squirrel-sql-3.1\plugins\h2.jar;C:\junit4.8.2\junit.jar;.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
JUNIT_HOME=C:\junit4.8.2
This is the compile error.
AbstractTransactionalJUnit4SpringContextTests cannot be resolved to a type AbstractClinicTests.java /org.springframework.config.java.samples.petclinic/src/test/java/org/springframework/samples/petclinic line 99 Java Problem
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

So put it on the classpath--you neglect to mention how you're compiling or anything (I find setting the CLASSPATH environment variable to be irksome, usually), but obviously the Spring library with that class isn't on the classpath.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AbstractTransactionalJUnit4SpringContextTests cannot be resolved to a type
 
Similar Threads
Spring 2.5 / AbstractTransactionalJUnit4SpringContextTests/ datasource
Compilation error
Integration test on JDBC (No Hibernate !) and Spring AbstractTransactionalJUnit4SpringContextTests
running Spring project in Eclipse
class library files - where are they?