当前位置:网站首页>Some common operation commands of the command line and solutions to common errors
Some common operation commands of the command line and solutions to common errors
2022-07-19 13:37:00 【There are fog lights in the mountains -meico】
List of articles
Common operations of the command line
- win+r Open the command line run window .
- Input d: You can switch the drive letter to d disc , Switching to other drive letters is similar
- Input dir, You can view the directory of the current drive letter , It is equivalent to double clicking the folder in this computer
- Input cd Target file , You can open and enter the current file ( clip ) In go to
- Input javac +.java file , Is compiled java file , Bytecode files will be generated after compilation
- java+ The file name is to run this java file
Be careful : function java File and compile java The difference between documents
compile java The file command is javac, Followed by the full name of the file, including the file type , for example
javac HelloWorld.java
function java The file command is java, Followed by the file name , No need to add type , for example :
java HelloWorld
- Input cd . . Jump to the previous Directory (
. Is the current directory,. . Is the parent directory )
Common command line errors
Compile with the command line java There was an error while loading the file , as follows :
That's because the coding is different , The default compilation method for most notepads is utf-8,javac The way to compile is GBK, In order to solve this problem, we only need to set a specific coding method at compile time . Here's the picture :

javac -encoding utf-8 HelloWorld.java
No error will be reported after entering a specific coding method .
The operation results are as follows :
What's wrong , I hope you will point out that , I will also revise it in time ,
What doubts do you have about this article , You can write to me , I will answer for you one by one .
Welcome private message !!!
边栏推荐
- npm err! ant-design- [email protected] build: `umi build`
- LeetCode 0118. Yanghui triangle
- Flutter uses animatedswitcher to switch scenes
- [micro Service ~ advanced] configuration center practice
- Galaxy Kirin V10 arm offline installation of portal
- STM32F1与STM32CubeIDE编程实例-MPU-6050 六轴(陀螺仪 + 加速度计)驱动
- The latest Jilin construction safety officer simulation question bank and answers in 2022
- [JS reverse crawler] - Youdao translation JS reverse practice
- torch.utils.data.DataLoader说明
- 【码蹄集新手村 600 题】计算一个整数有多少位数
猜你喜欢

面试官:可以接受转Go吗?

The latest Jilin construction safety officer simulation question bank and answers in 2022

动手学深度学习(第二版)注释后代码【持续更新】

【考研词汇训练营】Day 7 —— second,attract,current,collect,simple,communicate,vocation

onvif协议相关:3.1.2 Digest方式获取token列表

Qt之使用QLisView实现QQ登录历史列表

STM32F1与STM32CubeIDE编程实例-MPU-6050 六轴(陀螺仪 + 加速度计)驱动

codeforce:G. Good Key, Bad Key【贪心】
![[Yugong series] July 2022 go teaching course 012 forced type conversion](/img/7d/79f3e3e9fc73ee860b9607b7ebbb84.png)
[Yugong series] July 2022 go teaching course 012 forced type conversion

语音通信网络的原理
随机推荐
codeforce:A. Difference Operations【数学思维】
【码蹄集新手村 600 题】运算符 / 在不同的运算顺序中的类型转换
LeetCode 0117. 填充每个节点的下一个右侧节点指针 II
Transphorm的表面贴装封装产品系列增加行业标准TO-263 (D2PAK)封装产品,扩大SuperGaN平台的优势
【7.8】Educational Codeforces Round 131 (Rated for Div. 2)
Onvif protocol related: 3.1.4 get the stream address in digest mode
torch.utils.data.DataLoader说明
如何优雅的升级 Flink Job?
[error record /selectpicker] the display position of dropdown menu is offset
忘掉Postman,Apifox更好用
onvif协议相关:2.1.1 none方式获取token
[micro Service ~ advanced] configuration center practice
关于XML文件(七)- XML DTD
Onvif protocol related: 2.1.1 get token in none mode
jvm自学总结
LeetCode 0117. Populate the next right node pointer II of each node
[pyGame learning notes] 5 Collision detection of rect objects
onvif协议相关:4.1.3 WS-Username token方式获取截图url
Codeforce:a. doremy's IQ [reverse greed]
onvif协议相关:3.1.4 Digest方式获取流地址







