- Eclipse Che
- Preview README.md
- HelloWorld.java
console-java-simple
A simple java "Hello World!" application, buildable with both maven and gradle. Useful for testing Eclipse Che Java workspaces.
Building manually
Task | Command | |
---|---|---|
Maven | Build | mvn clean install |
Run | java -jar ./target/*.jar |
|
Gradle | Build | gradle build |
Run | gradle run |
App output
App output is streamed into a console. Note that if your app expects user input, do not use command but execute jars in the terminal directly.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat, Inc. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
package org.eclipse.che.examples;
public class HelloWorld {
public static void main(String... argvs) {
String a = "Che";
System.out.println("Hello World " + a + "!");
}
}