Sublime Text 3 Compilation run Java

Source: Internet
Author: User
Tags sublime text

Way One:
Create a new Building system (tools–>building system–>new Building System) and enter the following in the popup text box:
{
"cmd": ["Javac", "$file _name", "&&", "Java", "$file _base_name"],
"Working_dir": "${project_path:${folder}}",
"Selector": "Source.java",
"Shell": true,
"Encoding": "GBK"
}
"Encoding": "GBK" code can be changed according to the situation Utf-8.




Way two:
Sublime Text 3\data\packages\user\javac.sublime-build
{
"cmd": ["Javac", "-j-dfile.encoding=utf-8", "-encoding", "Utf-8", "$file"],
"File_regex": "^ (... *):( [0-9]*):? ([0-9]*) ",
"Selector": "Source.java"
}
Reply
Using Sublime Text 3 to develop Java programs can be used




Way three:

 the console is accessed via the  Ctrl + '

import urllib.request,os,hashlib; h = ' 7183a2d3e96f11eeadd761d777e62404 ' + ' e330c659d4bb41d3bdf022e94cab3cd0 '; pf = ' Package control.sublime-package '; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); by = Urllib.request.urlopen (' http://sublime.wbond.net/' + pf.replace (', '%20 ')). read (); DH = hashlib.sha256 (by). Hexdigest (); Print (' Error validating download (got%s instead of%s), please try manual install '% (DH, h)) if DH! = H Else Open (Os.pat H.join (IPP, PF), ' WB '). Write (by)


You can use the Javatar plugin to develop Java programs using Sublime Text 3.
Https://github.com/spywhere/Javatar

Sublime Text 3 Compilation run Java

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.