Eclipse Che was written in Java. Get started with the rich Intellisense and Java tools in this tutorial.
1. Start Che
Use your SaaS account for the following, or if you have installed Che , open a terminal and use the Che startup script:
[code]# Launch Che
che start[/code] When you execute this command, you'll see the URL for the user dashboard.
The Che dashboard will open. It is where you manage your projects and workspaces. If you do not have any projects in Che, you'll be asked to create a new project. If you already have projects in Che, click on the New Project button in the menu bar.
2. Create Console Java Project
From the Dashboard page, click Create Workspace .
2a. Select Source
This informs Che where the source code for your project is going to come from. It is possible to start a new blank, template, sample project or import one from another location. Choosing the first option will present you with a set of samples that are preconfigured. If you already have a project with a valid URL, choose the second option. Che gives you choices on how to source the project from Git, GitHub, ZIP, etc.
We will create a project from a provided template.
2b. Select Stack
Your project will be inserted into a workspace, which has a provided Docker runtime. Stacks are the recipes or images used to define the runtime environment for the workspace where your project will be placed. There are three ways to choose a stack:
Ready-To-Go Stacks. Environments that have a large variety of tools already installed optimized for projects of a particular type. For this example, we will select the Java stack which will create a container with Ubuntu git, java-jdk, Maven, Tomcat installed.
Stack Library. Offers finer-grained stacks that can be used to create specific technology layers needed for a project. Ubuntu and Debian stacks, for example, are minimal stacks with only an operating system and Che tools installed.
Custom Stack. You can provide your own custom stack. You'll have the ability to upload a recipe (Dockerfile) or directly edit it from there.
Choose the Ready-To-Go category and select the JAVA stack.
2c. Configure Workspace