[JAVA] Build jooby development environment with Eclipse

What is jooby?

In a nutshell, it's a web framework that only supports ** Java8 ** or later. I think it will be easier to understand if you read here for details. http://dev.classmethod.jp/server-side/framework-jooby-01/

Prerequisites

--Development environment is Windows --Java 8 is already installed on Windows --Eclipse has been set to work with Java 8

I tried to create a development environment

Details are as per the original QUICK START, but Maven is required.

Install JDK 8+ Install Maven 3+

① Installation of required packages

[vagrant@localhost vagrant]$ sudo yum install -y java-1.8.0-openjdk-devel maven

~~~

========================================================================================================================
 Package                                       Arch         Version                                 Repository     Size
========================================================================================================================
Installing:
 java-1.8.0-openjdk-devel                      x86_64       1:1.8.0.131-3.b12.el7_3                 updates       9.7 M
 maven                                         noarch       3.0.5-17.el7                            base          1.3 M

~~~

(2) Create a project directory with maven (this is the end of the work on the server)

[vagrant@localhost vagrant]$ cd /vagrant/
[vagrant@localhost vagrant]$ mvn archetype:generate -B -DgroupId=com.mycompany -DartifactId=my-app -Dversion=1.0-SNAPSHOT -DarchetypeArtifactId=jooby-archetype -DarchetypeGroupId=org.jooby -DarchetypeVersion=1.1.3

~~~
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: jooby-archetype:1.1.3
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.mycompany
[INFO] Parameter: artifactId, Value: my-app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.mycompany
[INFO] Parameter: packageInPathFormat, Value: com/mycompany
[INFO] Parameter: package, Value: com.mycompany
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: jooby-version, Value: 1.1.3
[INFO] Parameter: groupId, Value: com.mycompany
[INFO] Parameter: artifactId, Value: my-app
[INFO] Project created from Archetype in dir: /vagrant/my-app
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.030s
[INFO] Finished at: Fri Jul 14 07:57:50 JST 2017
[INFO] Final Memory: 14M/53M
[INFO] ------------------------------------------------------------------------

③ Import the maven project of the above shared directory from Eclipse

eclipseイメージ

④ Execute maven jooby: run from Eclipse

クリップボード02.jpg

>>> jooby:run[info|main]: Hotswap available on: [C:\work\tmp\vagrant\my-app]
>>> jooby:run[info|main]:   includes: [**/*.class;**/*.conf;**/*.properties;*.js;src/*.js]
>>> jooby:run[info|main]:   excludes: []
[2017-07-14 08:55:19,258]-[HotSwap] INFO  com.mycompany.App - [dev@netty]: Server started in 1388ms

  GET /    [*/*]     [*/*]    (/anonymous)

listening on:
  http://localhost:8080/

I tried to check the operation

Access ** http: // localhost: 8080 / ** with your browser

Hello World!

It seems to be working properly.

Modify the source and make sure it is Hot Reloaded

[2017-07-14 09:03:44,466]-[HotswapScanner] INFO  com.mycompany.App - Stopped
[2017-07-14 09:03:45,403]-[HotSwap] INFO  com.mycompany.App - [dev@netty]: Server started in 791ms

  GET /    [*/*]     [*/*]    (/anonymous)

listening on:
  http://localhost:8080/

It is displayed on the console that it has been restarted.

Access ** http: // localhost: 8080 / ** again with your browser

Hello World!!!!!!!!!!!

I was able to confirm that the correction was reflected. If you can confirm up to this point, I think that you are in a situation where you can develop with Eclipse.

Finally

There is not much information in Japanese yet, but I think it's ** Web Framework ** that I would like to pay attention to from now on. Next, let's check the operation with Gradle.

Recommended Posts

Build jooby development environment with Eclipse
Build a PureScript development environment with Docker
Build a Wordpress development environment with Docker
I tried to build an http2 development environment with Eclipse + Tomcat
Build a WordPress development environment quickly with Docker
[Win10] Build a JSF development environment with NetBeans
[First team development ②] Build an environment with Docker
Build a Java development environment with VS Code
Java development environment (Mac, Eclipse)
Build docker environment with WSL
Build Java development environment with WSL2 Docker VS Code
How to build Java development environment with VS Code
[Environment construction] Build a Java development environment with VS Code!
Build Java program development environment with Visual Studio Code
[Eclipse Java] Development environment setting memo
Build Couchbase local environment with Docker
Build a Node.js environment with Docker
Build a Tomcat 8.5 environment with Pleiades 4.8
Prepare Java development environment with Atom
Build PlantUML environment with VSCode + Docker
Build environment with vue.js + rails + docker
Build Rails environment with Docker Compose
Build Java development environment (for Mac)
How to build Rails, Postgres, ElasticSearch development environment with Docker
Build Unity development environment on docker
Build WebAPP development environment with Java + Spring with Visual Studio Code
Build docker + laravel environment with laradock
Build a development environment for Django + MySQL + nginx with Docker Compose
Steps to build a Ruby on Rails development environment with Vagrant
Prepare Java development environment with VS Code
Building a Lambda development environment in Eclipse
Laravel development environment construction with Docker (Mac)
Build and manage RStudio environment with Docker-compose
Create Spring Boot-gradle-mysql development environment with Docker
Build a Java development environment on Mac
Build Java 8 development environment on AWS Cloud9
Run jooby's Eclipse development environment on Gradle
Build Nuxt TypeScript + Vuetify environment with docker-compose
[Docker] Build Jupyter Lab execution environment with Docker
Build an environment with Docker on AWS
Build an Ultra96v2 development environment on Docker 1
Lightweight PHP 7.4 development environment created with Docker
Build TensorFlow operation check environment with Docker
How to build Rails 6 environment with Docker
Build a simple Docker + Django development environment
Build debug environment on container --Build local development environment for Rails tutorial with Docker-
Build an environment of "API development + API verification using Swagger UI" with Docker
Build a hot reload development environment with Docker-compose using Realize of Go
Java development environment
I tried to build a Firebase application development environment with Docker in 2020
[Copy and paste] Build a Laravel development environment with Docker Compose Part 2
How to build a Ruby on Rails development environment with Docker (Rails 6.x)
Build a local development environment for Rails tutorials with Docker (Rails 6 + PostgreSQL + Webpack)
[Copy and paste] Build a Laravel development environment with Docker Compose Participation
Build a development environment on AWS EC2 with CentOS7 + Nginx + pm2 + Nuxt.js
How to build a Ruby on Rails development environment with Docker (Rails 5.x)
Template: Build a Ruby / Rails development environment with a Docker container (Ubuntu version)
Template: Build a Ruby / Rails development environment with a Docker container (Mac version)
Build a development environment for Docker + Rails6 + Postgresql
Let's get started with Java-Create a development environment ②
Let's get started with Java-Create a development environment ①