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/
--Development environment is Windows --Java 8 is already installed on Windows --Eclipse has been set to work with Java 8
Details are as per the original QUICK START, but Maven is required.
Install JDK 8+ Install Maven 3+
[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
~~~
[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] ------------------------------------------------------------------------
>>> 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/
Hello World!
It seems to be working properly.
[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.
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.
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