One, C + + development environment configuration
1. Download MinGW
2. Environment variable configuration, System properties, advanced settings, environment variables, assuming that MinGW is installed in the C-drive folder, others think
(1) Add C:\MinGW\bin to the value of the PATH variable
(2) Add C:\MinGW\lib to the Library_path variable value,
(3) Increase C:\MinGW\include in 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 ": t Rue, "variants": [{"Name": "Run",//"cmd": ["cmd", "/U", "/C", "g++ ${file}" -O ${file_base_name} && ${file_base_name} "]" cmd ": [" Start "," ${file_path}/${file_base_name}.exe " ] } ]}
2) for Linux environments:
C.sublime-build:
{
"Shell_cmd": "GCC \" ${file}\ "-o \" ${file_path}/${file_base_name}\ "-lm-wall",
"File_regex": "^ (... [^:]*]:([0-9]+):?
([0-9]+)?:?
(.*)$",
"Working_dir": "${file_path}",
"Selector": "Source.c",
"Variants":
[ {
"Name": "Run",
"Shell_cmd": "X-terminal-emulator-e bash-c \" \ "${file_path}/${file_base_name}\"; Read-p ' Press any key to continue ... ' ""
} ]}
C++.sublime-build:
{
"Shell_cmd": "g++ \" ${file}\ "-o \" ${file_path}/${file_base_name}\ "-lm-wall",
"File_regex": "^ (... [^:]*]:([0-9]+):? ([0-9]+)?
:?
(.*)$",
"Working_dir": "${file_path}",
"Selector": "Source.c, source.c++",
"Variants":
[ {
"Name": "Run",
"Shell_cmd": "X-terminal-emulator-e bash-c \" \ "${file_path}/${file_base_name}\"; Read-p ' Press any key to continue ... ' ""
} ]}
Second, the Java Development environment configuration
1. Set the Java PATH variable
This is the first and most important step in setting up the basic commands for compiling and executing Java programs, such as Javac and Java storage paths.
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 JDK Bin folder 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, and the pasted effect is as seen in the following:
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