Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AbstractTransactionalJUnit4SpringContextTests cannot be resolved to a type

 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic