当前位置:网站首页>Error: cannot find or load main class XXXX
Error: cannot find or load main class XXXX
2022-07-25 13:15:00 【Roc-xb】
error : Cannot find or load main class HelloWorld
This is a basic problem , Beginners are easy to encounter this problem .

Our code has been compiled , And you can see the same level directory , It has also been generated .class The file , Why execute under this path java HelloWorld Can't run this code ?
Correct operation method : It should be src Run under directory , And write the package name and path .

In this way, the program code can run normally .
边栏推荐
- Detailed explanation of the training and prediction process of deep learning [taking lenet model and cifar10 data set as examples]
- Excel import and export source code analysis
- 【重温SSM框架系列】15 - SSM系列博文总结【SSM杀青篇】
- Docekr学习 - MySQL8主从复制搭建部署
- Django 2 ----- 数据库与Admin
- 好友让我看这段代码
- Business visualization - make your flowchart'run'(3. Branch selection & cross language distributed operation node)
- 部署Apache网站服务以及访问控制的实现
- Emqx cloud update: more parameters are added to log analysis, which makes monitoring, operation and maintenance easier
- Shell common script: get the IP address of the network card
猜你喜欢

Cyberspace Security penetration attack and defense 9 (PKI)

【GCN-CTR】DC-GNN: Decoupled GNN for Improving and Accelerating Large-Scale E-commerce Retrieval WWW22

Excel添加按键运行宏

6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略

Zero basic learning canoe panel (15) -- CAPL output view

Excel录制宏
![[CSDN year-end summary] end and start, always on the way -](/img/51/a3fc5eba0eeb22b600260ee81ff9e6.png)
[CSDN year-end summary] end and start, always on the way - "2021 summary of" 1+1= Wang "

好友让我看这段代码

ECCV2022 | TransGrasp类级别抓取姿态迁移
![[figure attack and Defense] backdoor attacks to graph neural networks (sacmat '21)](/img/d2/6be99fd194c66e4f60af38c6e52c93.png)
[figure attack and Defense] backdoor attacks to graph neural networks (sacmat '21)
随机推荐
牛客论坛项目部署总结
央行数研所穆长春:数字人民币可控匿名是维护公众利益和金融安全的客观需要
[operation and maintenance, implementation of high-quality products] interview skills for technical positions with a monthly salary of 10k+
Excel添加按键运行宏
好友让我看这段代码
0717RHCSA
全网最简单解决方式1045-Access denied for user [email protected](using password:YES)
massCode 一款优秀的开源代码片段管理器
ECCV2022 | TransGrasp类级别抓取姿态迁移
【AI4Code】《Pythia: AI-assisted Code Completion System》(KDD 2019)
程序员奶爸自制AI喂奶检测仪,预判宝宝饿点,不让哭声影响老婆睡眠
Shell常用脚本:判断远程主机的文件是否存在
微软提出CodeT:代码生成新SOTA,20个点的性能提升
ESP32-C3 基于Arduino框架下Blinker点灯控制10路开关或继电器组
Shell common script: get the IP address of the network card
conda常用命令:安装,更新,创建,激活,关闭,查看,卸载,删除,清理,重命名,换源,问题
Word style and multi-level list setting skills (II)
【GCN-RS】Region or Global? A Principle for Negative Sampling in Graph-based Recommendation (TKDE‘22)
Substance designer 2021 software installation package download and installation tutorial
MySQL remote connection permission error 1045 problem