You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -206,7 +206,7 @@ Putting it all together, we can define a main program in `Sources/JavaSieve/main
206
206
```swift
207
207
importJavaKit
208
208
209
-
let jvm =try JavaVirtualMachine.shared(classPath: ["QuadraticSieve-1.0.jar"])
209
+
let jvm =try JavaVirtualMachine.shared(classpath: ["QuadraticSieve-1.0.jar"])
210
210
do {
211
211
let sieveClass =try JavaClass<SieveOfEratosthenes>(environment: jvm.environment())
212
212
for prime in sieveClass.findPrimes(100)! {
@@ -217,7 +217,7 @@ do {
217
217
}
218
218
```
219
219
220
-
Note that we are passing the Jar file in the `classPath` argument when initializing the `JavaVirtualMachine` instance. Otherwise, the program will fail with an error because it cannot find the Java class `com.gazman.quadratic_sieve.primes.SieveOfEratosthenes`.
220
+
Note that we are passing the Jar file in the `classpath` argument when initializing the `JavaVirtualMachine` instance. Otherwise, the program will fail with an error because it cannot find the Java class `com.gazman.quadratic_sieve.primes.SieveOfEratosthenes`.
0 commit comments