yannick-mayeur / january-netbeans-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NetBeans Project using January

Requirements

How-to

  1. Create a new project in NetBeans. File>New Project...

    screenshot1

    Under Maven select, Java Application

    screenshot2

    Complete the project name and the Group Id, we will be using mvnExample and com.test

    screenshot3

  2. Click on file called pom.xml and add the following between the two project tags:

    <dependencies>
        <dependency>
     	   <groupId>com.github.yannick-mayeur</groupId>
     	   <artifactId>org.eclipse.january</artifactId>
     	   <version>2.0.2</version>
        </dependency>
    </dependencies>

    screenshot4

  3. Create a new Java class with following code in the the main:

    Dataset dataset = DatasetFactory.createFromObject(new double[] { 1,2, 3, 4, 5, 6, 7, 8, 9 });
    // Print the output:
    System.out.println("shape of dataset: " + Arrays.toString(dataset.getShape()));
    System.out.println("toString of dataset: " + dataset.toString());
    System.out.println("toString, with data, of dataset: \n" + dataset.toString(true));

    screenshot5

  4. Run the code by clicking on the play button and selecting the newly created class.

About


Languages

Language:Java 100.0%