<div dir="ltr"><div><br></div>When i try to execute with the ovirt sdk 3.3.3 and do operations on RHEV-M 3.3, it fails with below error<br><br>Exception in thread &quot;main&quot; java.lang.UnsupportedClassVersionError: org/ovirt/engine/sdk/Api<br>
&nbsp;&nbsp;&nbsp; at rhvm.callAPI(rhvm.java:238)<br>&nbsp;&nbsp;&nbsp; at rhvm.main(rhvm.java:278)<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 21, 2014 at 12:19 AM, Juan Hernandez <span dir="ltr">&lt;<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 02/20/2014 05:56 PM, Tejesh M wrote:<br>
&gt; Ok. Will it take long time for that sdk to release?<br>
&gt;<br>
<br>
No, it should be released soon.<br>
<br>
Meanwhile you may want to use the latest ovirt 3.3 Java SDK, it is<br>
almost identical to the RHEV-M Jaa SDK.<br>
<br>
If you are using maven these are the coordinates of the artifact:<br>
<br>
&lt;dependency&gt;<br>
&nbsp; &nbsp; &lt;groupId&gt;org.ovirt.engine.sdk&lt;/groupId&gt;<br>
&nbsp; &nbsp; &lt;artifactId&gt;ovirt-engine-sdk-java&lt;/artifactId&gt;<br>
&nbsp; &nbsp; &lt;version&gt;3.3.3.0&lt;/version&gt;<br>
&lt;/dependency&gt;<br>
<br>
If you aren&#39;t using maven you can still download the .jar file from here:<br>
<br>
<a href="http://search.maven.org/#artifactdetails|org.ovirt.engine.sdk|ovirt-engine-sdk-java|3.3.3.0|jar" target="_blank">http://search.maven.org/#artifactdetails|org.ovirt.engine.sdk|ovirt-engine-sdk-java|3.3.3.0|jar</a><br>

<br>
&gt; On 20 Feb 2014 04:11, &quot;Moti Asayag&quot; &lt;<a href="mailto:masayag@redhat.com">masayag@redhat.com</a><br>
&gt; &lt;mailto:<a href="mailto:masayag@redhat.com">masayag@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; ----- Original Message -----<br>
&gt; &nbsp; &nbsp; &gt; From: &quot;Tejesh M&quot; &lt;<a href="mailto:tejeshmk@gmail.com">tejeshmk@gmail.com</a> &lt;mailto:<a href="mailto:tejeshmk@gmail.com">tejeshmk@gmail.com</a>&gt;&gt;<br>
&gt; &nbsp; &nbsp; &gt; To: &quot;users@oVirt.org&quot; &lt;<a href="mailto:users@ovirt.org">users@ovirt.org</a> &lt;mailto:<a href="mailto:users@ovirt.org">users@ovirt.org</a>&gt;&gt;<br>
&gt; &nbsp; &nbsp; &gt; Sent: Wednesday, February 19, 2014 3:24:40 PM<br>
&gt; &nbsp; &nbsp; &gt; Subject: [Users] Fwd: Sample code for setting NIC - CloudInit<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Hi,<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Can someone share me sample java code for assigning IP address for<br>
&gt; &nbsp; &nbsp; VM on eth0<br>
&gt; &nbsp; &nbsp; &gt; through Java SDK via CloudInit ?<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; Hi Tejesh,<br>
&gt;<br>
&gt; &nbsp; &nbsp; I&#39;ve attached a sample code that sends the required request (as the<br>
&gt; &nbsp; &nbsp; output is demonstrated in debug mode).<br>
&gt; &nbsp; &nbsp; Note that the code is jdk-7 compliant.<br>
&gt; &nbsp; &nbsp; I haven&#39;t configured cloud-init and haven&#39;t tested it end-to-end.<br>
&gt; &nbsp; &nbsp; Please try to test it on your environment and provide a feedback for it.<br>
&gt;<br>
&gt; &nbsp; &nbsp; Thanks,<br>
&gt; &nbsp; &nbsp; Moti<br>
&gt;<br>
&gt; &nbsp; &nbsp; &gt; Something Like this but in Java:<br>
&gt; &nbsp; &nbsp; &gt; &lt;network_configuration&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;nics&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;nic&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;name&gt;eth0&lt;/name&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;boot_protocol&gt;STATIC&lt;/boot_protocol&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;network&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;ip address=&quot;192.168.2.11&quot; netmask=&quot;255.255.0.0&quot;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gateway=&quot;192.168.2.1&quot; /&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/network&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;on_boot&gt;true&lt;/on_boot&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/nic&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;nic&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;name&gt;eth1&lt;/name&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;boot_protocol&gt;DHCP&lt;/boot_protocol&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/nic&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;nic&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;name&gt;eth2&lt;/name&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;boot_protocol&gt;NONE&lt;/boot_protocol&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;on_boot&gt;true&lt;/on_boot&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/nic&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/nics&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;dns&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;servers&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;host&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;address&gt;1.1.2.2&lt;/address&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/host&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;host&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;address&gt;1.2.3.4&lt;/address&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/host&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/servers&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;search_domains&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;host&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;address&gt;qa.lab&lt;/address&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/host&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;host&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;address&gt; <a href="http://google.com" target="_blank">google.com</a> &lt;<a href="http://google.com" target="_blank">http://google.com</a>&gt; &lt;/address&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/host&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/search_domains&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/dns&gt;<br>
&gt; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/network_configuration&gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; --<br>
&gt; &nbsp; &nbsp; &gt; Thanks &amp; Regards<br>
&gt; &nbsp; &nbsp; &gt; Tejesh<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; _______________________________________________<br>
&gt; &nbsp; &nbsp; &gt; Users mailing list<br>
&gt; &nbsp; &nbsp; &gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>&gt;<br>
&gt; &nbsp; &nbsp; &gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta<br>
3ºD, 28016 Madrid, Spain<br>
Inscrita en el Reg. Mercantil de Madrid &ndash; C.I.F. B82657941 - Red Hat S.L.<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div>Thanks &amp; Regards</div>
<div>Tejesh</div>
</div>