使用linuxmirrors脚本更换软件源
GNU/LINUX: 1bash <(curl -sSL https://linuxmirrors.cn/main.sh) 轻松使用只需要一行命令就能直接运行,零技术门槛,无需安装任何依赖 系统支持广泛已适配高达 25+ 操作系统,涵盖各类版本,精准识别系统类型脚本兼容性高,不支持的系统会有相应提示并无操作跳出 多元软件源适配深入考察了国内镜像站的系统适配情况,专为中国宝宝打造还提供全网搜集的国内教育网和海外镜像站供用户选择
将Java源码编译为Jar包
注意请提前设置好Java环境,且以下操作均在同一文件夹下完成 编写Java源码示例: 12345public class Pi { public static void main (String[] args) { System.out.println("3.1415926535897932384626"); }} 保存上述代码为Pi.java文件 编译源码为class文件1javac -encoding UTF-8 Pi.java 创建MANIFEST.MF文件接下来,需要创建一个MANIFEST.MF文件,以便在 Jar 文件中指定主类。该文件的内容如下: 12Manifest-Version: 1.0Main-Class: Pi 保存以上文本为MANIFEST.MF文件 打包为Jar文件现在,我们可以使用Jar工具将编译后的类文件和MANIFEST.MF一起打包成 Jar 文件。使用以下命令: 1jar cfm Pi.jar MANIFEST.MF Pi.class 运行Jar包要运...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment