help using @library

Alex Schenkman alex.schenkman at
Wed Oct 17 05:50:56 PDT 2012

Hi list,

I'm trying to use the @library tag.
Here follows my JTREG definition:

  *  @test
  *  @library ./junit-4.jar
  *  @build Bar
  *  @run main/othervm

Here is the failing output (shortened):

#Test Results (version 2)
run=USER_SPECIFIED build Bar\nUSER_SPECIFIED main/othervm\n

command: compile /workspace/test/com/oracle/foo/
reason: .class file out of date or does not exist
elapsed time (seconds): 0.4
/workspace/test/com/oracle/foo/ error: package org.junit does not exist
import static org.junit.Assert.*;

The file /workspace/test/junit-4.jar exists.

Thanks in advance!

PS: If you are inside Oracle, look at this test:

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the jtreg-use mailing list