diff --git a/annotations/AtUnitComposition.java b/annotations/AtUnitComposition.java index e075589b..00e122da 100644 --- a/annotations/AtUnitComposition.java +++ b/annotations/AtUnitComposition.java @@ -18,7 +18,7 @@ public class AtUnitComposition { } public static void main(String[] args) throws Exception { OSExecute.command( - "java onjava.atunit.AtUnit AtUnitComposition.class"); + "java -cp .. onjava.atunit.AtUnit AtUnitComposition.class"); } } /* Output: diff --git a/annotations/AtUnitExample1.java b/annotations/AtUnitExample1.java index ee204d9c..295dc199 100644 --- a/annotations/AtUnitExample1.java +++ b/annotations/AtUnitExample1.java @@ -24,7 +24,7 @@ public class AtUnitExample1 { @Test boolean anotherDisappointment() { return false; } public static void main(String[] args) throws Exception { OSExecute.command( - "java onjava.atunit.AtUnit AtUnitExample1.class"); + "java -cp .. onjava.atunit.AtUnit AtUnitExample1.class"); } } /* Output: diff --git a/annotations/AtUnitExample2.java b/annotations/AtUnitExample2.java index 001d0425..1c5cc920 100644 --- a/annotations/AtUnitExample2.java +++ b/annotations/AtUnitExample2.java @@ -32,7 +32,7 @@ public class AtUnitExample2 { } public static void main(String[] args) throws Exception { OSExecute.command( - "java onjava.atunit.AtUnit AtUnitExample2.class"); + "java -cp .. onjava.atunit.AtUnit AtUnitExample2.class"); } } /* Output: diff --git a/annotations/AtUnitExample3.java b/annotations/AtUnitExample3.java index e5c73535..ee89c03b 100644 --- a/annotations/AtUnitExample3.java +++ b/annotations/AtUnitExample3.java @@ -27,7 +27,7 @@ public class AtUnitExample3 { @Test boolean m2() { return methodTwo() == 2; } public static void main(String[] args) throws Exception { OSExecute.command( - "java onjava.atunit.AtUnit AtUnitExample3.class"); + "java -cp .. onjava.atunit.AtUnit AtUnitExample3.class"); } } /* Output: diff --git a/annotations/AtUnitExample4.java b/annotations/AtUnitExample4.java index 71cf8684..ee9fb4a3 100644 --- a/annotations/AtUnitExample4.java +++ b/annotations/AtUnitExample4.java @@ -58,7 +58,7 @@ public class AtUnitExample4 { public static void main(String[] args) throws Exception { System.out.println("starting"); OSExecute.command( - "java onjava.atunit.AtUnit AtUnitExample4.class"); + "java -cp .. onjava.atunit.AtUnit AtUnitExample4.class"); } } /* Output: diff --git a/annotations/AtUnitExample5.java b/annotations/AtUnitExample5.java index d3a8bbb1..96b6c724 100644 --- a/annotations/AtUnitExample5.java +++ b/annotations/AtUnitExample5.java @@ -42,7 +42,7 @@ public class AtUnitExample5 { } public static void main(String[] args) throws Exception { OSExecute.command( - "java onjava.atunit.AtUnit AtUnitExample5.class"); + "java -cp .. onjava.atunit.AtUnit AtUnitExample5.class"); } } /* Output: diff --git a/annotations/AtUnitExternalTest.java b/annotations/AtUnitExternalTest.java index 1b9e0b3f..f820abd1 100644 --- a/annotations/AtUnitExternalTest.java +++ b/annotations/AtUnitExternalTest.java @@ -14,7 +14,7 @@ public class AtUnitExternalTest extends AtUnitExample1 { @Test boolean _methodTwo() { return methodTwo() == 2; } public static void main(String[] args) throws Exception{ OSExecute.command( - "java onjava.atunit.AtUnit AtUnitExternalTest.class"); + "java -cp .. onjava.atunit.AtUnit AtUnitExternalTest.class"); } } /* Output: diff --git a/annotations/HashSetTest.java b/annotations/HashSetTest.java index 4e7e6057..88decb56 100644 --- a/annotations/HashSetTest.java +++ b/annotations/HashSetTest.java @@ -23,7 +23,7 @@ public class HashSetTest { } public static void main(String[] args) throws Exception { OSExecute.command( - "java onjava.atunit.AtUnit HashSetTest.class"); + "java -cp .. onjava.atunit.AtUnit HashSetTest.class"); } } /* Output: diff --git a/annotations/StackLStringTest.java b/annotations/StackLStringTest.java index ec656a6b..7fc64faa 100644 --- a/annotations/StackLStringTest.java +++ b/annotations/StackLStringTest.java @@ -28,7 +28,7 @@ public class StackLStringTest extends StackL { } public static void main(String[] args) throws Exception { OSExecute.command( - "java onjava.atunit.AtUnit StackLStringTest.class"); + "java -cp .. onjava.atunit.AtUnit StackLStringTest.class"); } } /* Output: