In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the method of using sublime text3 to run Java program, the article is very detailed, has a certain reference value, interested friends must read it!
How to carry out Java programs in sublime
(1) the first step is to find the package folder of sublime and the java.sublime-pakage package in it:
(2) use the decompression software to open it (emphasize: not decompress it directly) (I use 360 decompression):
(3) write a JavaC.sublime-build file (suffix is sublime-build, the content is as follows):
{"cmd": ["javac", "- d", ".", "$file"], "file_regex": "^ (. *?): ([0-9] *):? ([0-9] *)", "selector": "source.java", "encoding": "cp936", / / end after executing the above command / / the following command needs to run "variants" by Ctrl+Shift+b: [{"name": "Run", "shell": true "cmd": ["start", "cmd", "/ c", "java ${file_base_name} & echo. & pause "], / / c closes the cmd window after the command is executed, and / / k does not close the cmd window after the command is executed. / / echo. It is equivalent to entering an enter / / pause command to make the cmd window press any key before closing "working_dir": "${file_path}", "encoding": "cp936"}]}
(4) add the prepared files to the java.sublime-pakage package (just copy and paste directly la)
(5) then reopen sublime, write the Java source file, and then press ctrl+shift+b to choose to compile or run. The result is as follows:
The above is all the contents of this article entitled "how to run Java programs with sublime text3". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.