当前位置:网站首页>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 !!!
边栏推荐
- [pyGame learning notes] 6 Cursor mouse cursor
- Li Kou 198-213 looting Ⅰ, Ⅱ - Dynamic Planning
- Codeforce:g. good key, bad key [greed]
- LeetCode 0118. Yanghui triangle
- 弹性负载均衡将访问流量自动分发到多台云服务器,扩展应用系统对外的服务能力,提高应用程序安全性。
- ssh无密钥登录
- Codeforce:a. difference operations [mathematical thinking]
- Onvif protocol related: 3.1.3 get screenshot URL in digest mode
- Force buckle 64 minimum path sum -- Introduction to dynamic programming
- 【考研词汇训练营】Day 6 —— eventually,state,create,productivity,stimulate
猜你喜欢
随机推荐
【7.8】Educational Codeforces Round 131 (Rated for Div. 2)
Simulation of overvoltage protection (OVP) circuit based on PMOS
[micro Service ~ advanced] configuration center practice
Array simulation queue
语音通信网络的原理
Panasonic A6 servo driver external absolute value grating ruler full closed loop parameter setting
Health prevention guide 3: health care
【6.15】Codeforces Round #798 (Div. 2)
Principle of voice communication network
onvif协议相关:3.1.1 Digest方式获取Authorization
【码蹄集新手村 600 题】输出时的左对齐,右对齐
Perl command batch replaces some contents in the file
VIM strange unknown function 0
统计直播间的榜一信息,从这里起步
Unveiling secrets of matrixcube 101 - functions and architecture of matrixcube
Onvif protocol related: 3.1.1 digest access authorization
面试官:可以接受转Go吗?
Method of converting video format to ffmpeg and exporting GIF dynamic graph
【7.13】代码源 -【饿饿 饭饭】【路径计数2】【函数求和】
云审计服务CTS是一项付费服务,付费项目包括开通追踪器、事件跟踪以及7天内事件的存储和检索等相关费用










![Codeforce:g. good key, bad key [greed]](/img/5e/e34e549c15e2e495d3a274ea8e6f82.png)






