首页 > 代码库 > Sublime Text 3编译运行Java
Sublime Text 3编译运行Java
方式一:
新建一个Building System(Tools–>Building System–>New Building System),在弹出的文本框里面输入以下内容:
{
"cmd": ["javac", "$file_name", "&&", "java", "$file_base_name"],
"working_dir": "${project_path:${folder}}",
"selector": "source.java",
"shell": true,
"encoding":"gbk"
}
"encoding":"gbk" 编码可以根据情况更换utf-8.
方式二:
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"
}
回答
使用 Sublime Text 3 开发Java程序可以使用
https://github.com/spywhere/Javatar
新建一个Building System(Tools–>Building System–>New Building System),在弹出的文本框里面输入以下内容:
{
"cmd": ["javac", "$file_name", "&&", "java", "$file_base_name"],
"working_dir": "${project_path:${folder}}",
"selector": "source.java",
"shell": true,
"encoding":"gbk"
}
"encoding":"gbk" 编码可以根据情况更换utf-8.
方式二:
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"
}
回答
使用 Sublime Text 3 开发Java程序可以使用
方式三:
The console is accessed via the ctrl+` shortcut or the View > Show Console menu.
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.path.join( ipp, pf), ‘wb‘ ).write(by)
https://github.com/spywhere/Javatar
Sublime Text 3编译运行Java
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。