File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ scalive <pid>
51
51
52
52
Scalive only automatically adds ` scala-library.jar ` , ` scala-compiler.jar ` ,
53
53
` scala-reflect.jar ` , and ` scalive.jar ` to the system classpath. If you want to
54
- load additional classes in other JARs, first add the JAR to the system class loader:
54
+ load additional classes in other JARs, first run these in the REPL console to
55
+ add the JAR to the system class loader:
55
56
56
57
```
57
58
val cl = ClassLoader.getSystemClassLoader.asInstanceOf[java.net.URLClassLoader]
@@ -60,8 +61,8 @@ val jarbase = "mylib" // Will match "mylibxxx.jar", convenient when there's
60
61
scalive.Classpath.findAndAddJar(cl, searchDirs, jarbase)
61
62
```
62
63
63
- Now the trick is just quit the REPL console and open it again. You will be able
64
- to use your classes in the JAR as normal:
64
+ Now the trick is just quit the REPL console and connect it to the target process
65
+ again. You will be able to use your classes in the JAR as normal:
65
66
66
67
```
67
68
import mylib.foo.Bar
You can’t perform that action at this time.
0 commit comments