-
Jul 31st, 2009, 01:14 PM
#1
Using spring-agent.jar from Command Line
I have a Spring JPA desktop application that works just fine in Eclipse 3.5. The app uses load-time-weaving and loads spring-agent.jar at run time. I export the project to a jar file and I can't get it to work. I'm trying this command line:
java -javaagent:C:\path\to\spring-agent.jar -jar MovieVideosSpringJPA.jar
The error output mentions the DAO, the EMF, then what I believe is the real problem:
nested exception is java.lang.IllegalStateException: Must start with Java agent to use InstrumentationLoadTimeWeaver. See Spring documentation.
I've double and triple checked the path to spring-agent.jar which was cut and pasted anyway to prevent any error. I think I'm doing something fundamentally wrong on the command line. Any help appreciated.
Mike
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules