javac: directory not found: bin
Usage: javac <options> <source files>
use -help for a list of possible options
当我尝试运行时
javac -sourcepath src Downloads//Runner.java -d bin
我收到错误。
那些是我的路径
vegan@vegan:~$ echo $PATH
/home/vegan/bin:/home/vegan/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/lib/jvm/java-8-oracle/bin
vegan@vegan:~$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
vegan@vegan:~$
因为在文档中它说
ACME has a utility which generates audit reports - lists of files owned by
用户。用您的JVM安装替换JAVA_HOME,您可以构建&amp;跑 实用程序是这样的:
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
$JAVA_HOME/bin/javac -sourcepath src src/com/reengen/utils/auditreporter/Runner.java -d bin
答案 0 :(得分:1)
首先创建bin
目录。运行mkdir bin
然后重试。