Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Step 1. Open sublime and add the following into a empty file.
- {
- "cmd": ["javac", "$file_name","&&","java", "$file_base_name"],
- "file_regex": "^(...?):([0-9]):?([0-9]*)",
- "path": "Replace_With_FilePath",
- "selector": "source.java",
- "shell": true
- }
- Step 2. Go to the location where your JDK is installed an copy the file path.
- Step 3. Replace the \ with a \\ example "C:\Program Files (x86)\BlueJ" would be "C:\\Program Files (x86)\\BlueJ"
- Step 4. Then go the Preferences>> Browse Packages and copy the file path and close.
- 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
- Step 6. go to tools >> Build System >> Java then to build ether use the menu or ctrl + b
- Step 7. PROFIT!!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement