Reputation: 54992
I'm getting this compile error:
owner@PC ~/scala/fxml: scalac x.scala
x.scala:1: error: object asynchttpclient is not a member of package org
import org.asynchttpclient.*;
^
one error found
I figured I needed to download the .java files for org.asynchttpclient.* so I copied those to c:\classes
and set CLASS_PATH
to c:\classes
but that didn't work.
Note: I know about sbt and maven but I just want to get scalac working.
Upvotes: 1
Views: 331
Reputation: 41957
The error is with the dependency for x.scala. You need to download the asynchttpclient jar if you don't have it. Then apply the following command to include it in compilation.
scalac -classpath "asynchttpclient.jar:other dependent jars" x.scala
Upvotes: 1
Reputation: 29193
It's CLASSPATH
, not CLASS_PATH
. You can also use -classpath ...
as an option to scalac
.
Upvotes: 1