lucene
Lucene是开源全文检索工具包(提供倒排索引能力),说白了就是jar包
可执行jar 有main java -jar XXX.jar
不可执行jar 没有main 只能作为依赖
vim jar
https://www.cnblogs.com/Marydon20170307/p/9149256.html
https://blog.csdn.net/weixin_30681615/article/details/99745369
https://blog.csdn.net/chencaw/article/details/78884107
https://blog.csdn.net/j_bean/article/details/75095337
例子:
test
lib
spark-assembly_2.10-1.6.0-cdh5.16.1.jar
src
demo.java
bin
在test路径下
1.编译
javac -cp ./lib/spark-assembly_2.10-1.6.0-cdh5.16.1.jar -d ./bin/ ./src/demo.java
2.运行
java -cp ./lib/spark-assembly_2.10-1.6.0-cdh5.16.1.jar:./bin/ com/yzy/spark/demo
注意:1 -cp 需要列出所有jar包,ide也是全部列出了 2 window上,用;分隔;linux上是:分隔
https://www.jianshu.com/p/9762b7098b76
https://www.cnblogs.com/mracale/p/10493823.html
import
https://www.cnblogs.com/swordfall/p/11359370.html
https://blog.csdn.net/smgsn01/article/details/108038046
1 | //he_test |
1.编译代码
javac -d bin/ ./src/HelloWorld.java
bin/下生成com/hlw/test/HelloWorld.class
2.运行程序
java -classpath/-cp ./bin/ com/hlw/test/HelloWorld
maven
gradle