https://kotlinlang.org logo
Title
d

Danish Ansari

09/16/2021, 6:40 AM
If I have to deploy Ktor Rest APIs using SQLite DB, so I need JRE or Server JRE to be installed on my server? And which version of JRE?
a

Aleksei Tirman [JB]

09/16/2021, 7:36 AM
It depends on a particular module. Some modules require JRE 1.7 and others JRE 1.8. There is a Java client engine that requires JRE 11. You can safely use JRE 11 or JRE 1.8 (if you don't plan to use the Java engine).
d

Danish Ansari

09/16/2021, 7:41 AM
My server starts like this, does that mean I'm using
Java Engine
?
embeddedServer(Netty, port = 8080, host = "0.0.0.0") {
	configureContentNegotiation()
	configureRouting()
}.start(wait = true)
Also I was looking to download JRE all I can find is 1.8 but not 11/16/17 JREs And what's the difference between Normal JRE and Server JRE?
a

Aleksei Tirman [JB]

09/16/2021, 7:43 AM
My server starts like this, does that mean I'm using 
Java Engine
 ?
No, it's for an HTTP client https://ktor.io/docs/http-client-engines.html#java
👍 1
Here is the description of a difference between those two https://stackoverflow.com/a/33407476/13963150
d

Danish Ansari

09/16/2021, 7:46 AM
So I guess Server JRE should be good for Ktor, right?
a

Aleksei Tirman [JB]

09/16/2021, 7:46 AM
Yes, I think.
👍 1
d

Danish Ansari

09/16/2021, 7:47 AM
Thanks a lot
One last thing, where can I get JRE 11? 😅 At this link only JRE 8 is available, all other versions have JDK only. Any idea about that?
a

Aleksei Tirman [JB]

09/16/2021, 7:50 AM
d

Danish Ansari

09/16/2021, 7:53 AM
Now I'll have to read and understand about new topic
jlink
😅 Anyways, thanks a lot @Aleksei Tirman [JB] sir for your time