This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to refer the jar for -javaagent

 
Bala Gangadhar
Ranch Hand
Posts: 103
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
To run my testcase i have to provide two jars as -javaagent as VM arguments.
I am running the test case in eclipse.
If i have copied the jars to current project directory and MyProject/lib/my.jar and refer them as -javaagent lib/my.jar its working fine.
But i have the jars in another project in same eclipse workspace. but when i try refer them as -javaagent otherproject/lib/my.jar its giving an error "The jar file is not found: javaagent: otherproject/lib/my.jar" even i tried to give the exact path like..
-javaagent c:/somepath/workspace/otherproject/lib/my.jar still its not working.. is there any workaround for this. Due to some constraint i can not copy my.jar into current project...

Hope I am clear in explaining the problem...

 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe, you can set a project being dependent on another project in Eclipse. Please see the Project settings.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic