Sublime TEXT3 C + + and Java Development environment configuration

Source: Internet
Author: User

One, C + + development environment configuration

1. Download MinGW

2. Environment variable configuration, System properties, advanced settings, environment variables, if the MinGW installed in the C-drive directory, others think

(1) Add C:\MinGW\bin to the value of the PATH variable
(2) Adding C:\MinGW\lib to the value of the Library_path variable,
(3) Add C:\MinGW\include to the C_includede_path variable value


Use sublime Text3 to create a new C + + compilation system, set to the following code:

{     "cmd": ["g++", "${file}", "-O", "${file_path}/${file_base_name}"],     "File_regex": "^ (.. [^:]*]:([0-9]+):? ([0-9]+)?:? (. *) $ ",     " Working_dir ":" ${file_path} ",     " selector ":" Source.c, source.c++ ",     " encoding ":" cp936 ",     " Shell ": True,     " variants ":     [          {               " name ":" Run ",               " cmd ": [" Start "," ${file_path}/${file_base_name} " . exe "]}     ]}


Second, the Java Development environment configuration


1. Set the Java PATH variable

This is the first and most basic step to set up a store path for compiling and running Java Program basic commands such as Javac and Java.


To set the path path under Windows:

Right button "My Computer"
Select "Properties"
Enter Advanced system settings
Locate and click the Environment Variables button
Enter the system variable and locate the PATH variable
Paste the bin directory of the JDK to the end of the PATH variable value

For example, the bin path of your JDK is C:\Program files\java\jdk1.6.0_17\bin, paste the effect as shown:



2. Use sublime Text3 to create a new JAVA compilation system, set to the following code:


{    "cmd": ["Javac", "-encoding", "UTF-8", "-D", ".", "$file"],    "File_regex": "^ (... *):( [0-9]*):? ([0-9]*) ",    " selector ":" Source.java ",    " encoding ":" GBK ",    " variants ":    [        {            " name ":" Run ",            "Shell": true,            "cmd":  ["Start", "cmd", "/C", "Java ${file_base_name}&pause"],            "Working_dir": "${file_path}",            "encoding": "GBK"        }    ]}


Sublime TEXT3 C + + and Java Development environment configuration

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.