Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 902 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 902 Bytes

HelloWorldAnt

En ese repositorio vamos a:

Creamos el proyecto en el filesystem

training@ubuntu-devops:~/devops/repomartes$ more src/oata/HelloWorld.java
package oata;

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World");
    }
}
training@ubuntu-devops:~/devops/repomartes$

Probamos

training@ubuntu-devops:~/devops/repomartes$ mkdir -p  build/classes
training@ubuntu-devops:~/devops/repomartes$ javac -sourcepath src -d build/classes src/oata/HelloWorld.java
training@ubuntu-devops:~/devops/repomartes$ java -cp build/classes oata.HelloWorld
Hello World