Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create "Hello World" using Java on Codenvy [closed]

Before you read, understand I'm clearly a noob (Actually, I don't even know anything about programming yet). I wanted to start learning-practicing with Java using an online IDE. In this case, I'm using Codenvy (www.codenvy.com). It's clearly beautiful and awesome, but I have a question. In Eclipse or DrJava or whatever (simple IDEs), to make "Hello World", you need to do this...

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

As said on websites like this: https://www.learnjavaonline.org/en/Hello,_World!

On Codenvy, it looks to be "harder" (obviously, it's easy when you know, but harder in the meaning that there're more things to do). On samples of Hello World, I see folders, packages, .xml and external libraries. Can somebody tell me how to do (step by step if possible, without ignoring anything, I'm a noob after all) "Hello World" on Codenvy? And explain me why it's different from Eclipse, for example. Please, don't say "Go to Eclipse, you're drunk". I want to understand Codenvy, I think I will learn from understanding Codenvy. Thanks you.

like image 402
Fallen Being Avatar asked Jan 26 '26 08:01

Fallen Being


2 Answers

Codenvy uses Maven and Ant as default build managers. Your app has to be packaged as JAR and this JAR is then executed. Thus, you need to have pom.xml or build.xml file in your project.

The best way for you to get started is to create a sample app from the project wizard - Maven Console.

enter image description here

It's a bit different from Eclipse where all you need is your class and Java installed.

like image 57
bianchi Avatar answered Jan 28 '26 21:01

bianchi


This is tutorial for simple Java "Hello World":

http://www.smlcodes.com/tutorials/codenvy-java-onepage-tutorial

At step 4 I had to make googling this tutorial.

enter image description here

like image 23
Grigory Kislin Avatar answered Jan 28 '26 22:01

Grigory Kislin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!