PROGRAMMING

MINTE9
REMEMBERS




Last update:   23-07-2021

Sublime Text

IDE means Integrated Development Environment softare. Install Sublime Text (see reference) and save new file HelloWorld.java
 RunCode
class HelloWorld {

    public static void main(String[] args) {

        System.out.println("Hello World!");
    }
}
Choose the build system (Tools / Build System / JavaC). Compile the program with Build (Tools / Build).
 
/var/www/java/HelloWorld.java 

/var/www/java/HelloWorld.class # compiled file
Run the program:
 
$ java HelloWorld 

// Hello World!
Compile & Run    (2/3)

Compile & Run

To compile and run at the same time save new build JavaCrun: Tools / Build System / New Build System ...
 
{
  "cmd": ["javac \"$file_name\" && java \"$file_base_name\""],
  "shell": true,
  "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
  "selector": "source.java"
}
Tasks    (3/3)

Tasks

Install Sublime Text (Linux or Windows) / Hint: see page references Build HelloWorld.java / Hint: Build will generate a new file HelloWorld.class Run program from command line
 
$java ...
Build and run from Sublime / Hint: see page reference
 
Tools / Build System / ...

Questions    
19. Apache
18 . Sublime Text
Last update:   23-07-2021

        A B C D E F
🔔
1/2