question

Tommy Miles avatar image
Tommy Miles asked Tyler Liu answered

Building and deploying without Maven or Gradle

Our use case prevents using Maven or Gradle as we have to deploy our Java class as an extension to another application. We need a stand-alone JAR to deploy and have not been able to utilize the JAR available via the SDK due to dependencies.

Is it possible to obtain a stand-alone JAR that includes all dependency libraries?

sdk
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered

You can download jar file here https://bintray.com/tylerlong/maven/ringcentral/1.6.1#files/com/ringcentral/ringcentral


You need to download dependent libraries yourself: https://github.com/ringcentral/ringcentral-java/blob/master/build.gradle#L21-L22


We don't provide a standalone jar file which includes all dependencies. Because dependent libraries are not maintained by us, it is not a good idea to include other jar files inside ours.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tommy Miles avatar image
Tommy Miles answered

We added the JARs manually, but it appears that the RingCentral JAR is dependent on the Kotlin JVM and we are unable to inject Kotlin into our runtime. We are deploying into an application that manages the JVM internally and does not allow for us to modify the JVM components.

Am I understanding how Kotlin is utilized in your SDK correctly? Do you have a version that is not Kotlin dependent?

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered

Here is a working project https://github.com/tylerlong/ringcentral-jar-demo

You need to download and add the following jars to your project:

  1. // https://bintray.com/tylerlong/maven/ringcentral/1.6.1#files
  2. // https://bintray.com/bintray/jcenter/org.jetbrains.kotlin%3Akotlin-stdlib/1.3.50#files
  3. // https://bintray.com/bintray/jcenter/com.google.code.gson%3Agson/2.8.6#files
  4. // https://bintray.com/bintray/jcenter/com.squareup.okhttp3%3Aokhttp/3.14.2#files
  5. // https://bintray.com/bintray/jcenter/com.squareup.okio%3Aokio/1.17.2#files


I don't think we need to hack the JVM. But we do need the kotlin-stdlib jar file. It's just a jar file like other jar files. So I don't think it would be an issue for you.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys