How to wildcard include JAR files when compiling?

后端 未结 9 686
面向向阳花
面向向阳花 2020-12-01 05:30

I have the following in a java file (MyRtmpClient.java):

import org.apache.mina.common.ByteBuffer;

and ByteBuffer is inside a

9条回答
  •  春和景丽
    2020-12-01 05:49

    In Java 8, the option ".;*" etc. which are mentioned above did not seem to work. I tried and found that : javac -cp '/*' MyRtmpClient.java

    works:

    can be /usr/local/classes/* or /home/developer/MyProject/*

提交回复
热议问题