Ubuntu 14.04 Sublime Text3 Java compilation run (easiest way)

Source: Internet
Author: User

Sublime, the results found only compile, unable to run directly, so on-line search solutions, found that most of the methods are to tell you to enter Java.sublime-packag this file, and then modify JavaC.sublime-build , and then you can.
First Java.sublime-packag of all, this thing is a zip compressed file, it may be very good for Windows, directly open with zip or rar, and then modify JavaC.sublime-build it. But I am a TMD Linux ah, and is installed the smallest graphical interface, this method is not used.
Below to get to the point, how to do is the most simple rough and absolutely easy to use method. That is:

    1. Go /root/.config/sublime-text-3/Packages/User to this folder, or click Select to go to the Preferences Browse Packages user folder.
    2. EstablishMyJavaC.sublime-buildFile, name can be random, suffix do not change the line, in the inside fill in

      {"shell_cmd""javac \" $file \ "&& java \" $file _base_name\ " " ,"file_regex""^ (.... *?):( [0-9]*):? ([0-9]*) " , " selector " " Source.java " ,}


      3. SelectTools–>Build WithThen choose the build file that you created yourself.
      4. Test, DirectCtrl-B, look good to make.

Ubuntu 14.04 Sublime Text3 Java compilation run (easiest way)

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.