Master is a developing branch. Download release branch for stable version.
The project can be built using Gradle and Maven, which we recommend, or be compiled from command line.
This project upports build with Maven, please see maven documentation and pom.xml for implementation details
You can build with IDE using Gradle. For example,
You can download and install the most recent version of the Java SDK.
You can use IntelliJ, Eclipse, NetBeans or any Java IDE you prefer to the run the project.
$ gradle eclipse
Run the following command, it'll generate necessary Eclipse files, then import via Eclipse
> gradlew.bat eclipse
$ gradle idea
Use Maven to import module examples.iml when IntelliJ prompt during the initial project opening.
Or add the module manually by, File -> Project Structure (⌘;) -> Add (⌘N) -> Import Module -> select examples.iml file.
Run the following command and open the project from Intellij IDEA
> gradlew.bat idea
> gradlew.bat clean compile
-
package com.hyphenate.server.example.jersey is using Jersey 2.15. Java 7 or later is required.
-
package com.hyphenate.server.example.httpclient is using Httpclient 4.3.3. Java 1.5 or later is required.
-
Install JUnit library (ex. junit:junit:4.12)
We recommend using maven or gradle to build server components.
If you're not using the tools listed above, you can manual manage the .jar package by running the following command.
> gradlew.bat distZip
That will create a zip file, hyphenate-server-example.zip, under the folder build/distributions, which includes all the dependency
Update Hyphenate app properties in the file, config.properties.
API_ORG = hyphenatedemo
API_APP = demo
APP_CLIENT_ID = YXA68E7DkM4uEeaPwTPbScypMA
APP_CLIENT_SECRET = YXA63_RZdbtXQB9QZsizSCgMC70_4Rs