java - 无法从 bash 运行 java 类
问题描述
我正在运行./test 8080
脚本以从 Idea 的终端运行 Test.class java 文件
//this is test.sh file
#!/bin/bash
# shellcheck disable=SC2068
java -classpath src/com/company Test $@
但我收到以下错误Error: Could not find or load main class Test
我不是一个 bash 人我是新来的,但我很高兴知道问题出在哪里?
解决方案
推荐阅读
- project-reactor - Reactor Framework (Flux) - java.lang.OutOfMemoryError:直接缓冲内存
- sql - IF 内的 SQL IF
- javascript - 根据共享点中是/否(复选框)字段的值启用或禁用字段
- javascript - 这个三元运算符表达式的等价物是什么?
- javascript - 从嵌套在对象属性中的数组中提取数据
- c++ - 调用 aruco::detectMarkers crash 时 Opencv 停止
- gulp - 寻找一个 Gulp 插件,它将根据特定的标题属性跳过降价文件
- solr - Solr 8.5.2 的 Mysql 驱动程序而不是 hsql 驱动程序
- c - libssl.so.1.0.0:未定义符号:EVP_idea_cbc
- python-3.x - 如果列表的元素存在于python数据框的列中,请提取它们?