Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Java EventHubClient Java 1.7

$
0
0

We are trying to send events to an event hub using java and storm on Azure (Java 1.7), and using the following version of the java event hub sdk: 

<dependency>
   <groupId>com.microsoft.azure</groupId>
   <artifactId>azure-eventhubs</artifactId>
   <version>0.6.9</version>
</dependency>

Is there a build of this that is compatible with Java 1.7? It throws an error java.lang.NoClassDefFoundError: java/time/temporal/TemporalUnit which I believe to be a java version issue.

This is the code with the error:

ConnectionStringBuilder connStr = new ConnectionStringBuilder(namespaceName, eventHubName, sasKeyName, sasKey);
ehClient = EventHubClient.createFromConnectionStringSync(connStr.toString());

Thanks,

Justin


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>