microsoft / service-fabric

Service Fabric is a distributed systems platform for packaging, deploying, and managing stateless and stateful distributed applications and containers at large scale.
https://docs.microsoft.com/en-us/azure/service-fabric/
MIT License
3.03k stars 400 forks source link

Service Fabric Java SDK support on Windows #662

Open contrudar opened 5 years ago

contrudar commented 5 years ago

I installed the following version of SDK on Windows 10

image

but when I try to create stateless service from Kotlin like this: val uri = URI("fabric:/myServiceName") val loginService: LoginService =ServiceProxyBase.create(LoginService::class.java, uri)

I got the error: java.lang.UnsatisfiedLinkError: no jFabricCommon in java.library.path...

I tried:

  1. to add manually to PATH the FabricCommon.dll path
  2. to load it from code (System.load)
  3. to run this with -Djava.library.path
  4. to run it with $env:Path += ";C:\Program Files\Microsoft Service Fabric\bin\fabric\Fabric.Code" before Connect-ServiceFabricCluster

but no success.

Any ideas?

raunakpandya commented 5 years ago

Are you trying to use Service Fabric Java SDK? Its not supported on Windows.

contrudar commented 5 years ago

Microsoft doesn't support Java SDK on Windows. That's really strange

raunakpandya commented 5 years ago

At the moment, the SF Java SDK is only supported on Linux. Supporting it on Windows is in our backlog but we don't have firm timelines yet.