Advertisement
irishstorm

Java.sublime-build

Feb 29th, 2016
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. Step 1. Open sublime and add the following into a empty file.
  2. {
  3. "cmd": ["javac", "$file_name","&&","java", "$file_base_name"],
  4. "file_regex": "^(...?):([0-9]):?([0-9]*)",
  5. "path": "Replace_With_FilePath",
  6. "selector": "source.java",
  7. "shell": true
  8. }
  9.  
  10. Step 2. Go to the location where your JDK is installed an copy the file path.
  11.  
  12. Step 3. Replace the \ with a \\ example "C:\Program Files (x86)\BlueJ" would be "C:\\Program Files (x86)\\BlueJ"
  13.  
  14. Step 4. Then go the Preferences>> Browse Packages and copy the file path and close.
  15.  
  16. Step 5. Save the file or crtl + S and int he file name put the filepath in quotes example "C:\Program Files (x86)\BlueJ" and save it as Java.sublime-build
  17.  
  18. Step 6. go to tools >> Build System >> Java then to build ether use the menu or ctrl + b
  19.  
  20. Step 7. PROFIT!!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement