Return-Path: X-Original-To: apmail-jclouds-user-archive@minotaur.apache.org Delivered-To: apmail-jclouds-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8E4F17F42 for ; Sun, 5 Oct 2014 16:54:54 +0000 (UTC) Received: (qmail 50133 invoked by uid 500); 5 Oct 2014 16:54:54 -0000 Delivered-To: apmail-jclouds-user-archive@jclouds.apache.org Received: (qmail 50068 invoked by uid 500); 5 Oct 2014 16:54:54 -0000 Mailing-List: contact user-help@jclouds.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@jclouds.apache.org Delivered-To: mailing list user@jclouds.apache.org Received: (qmail 50058 invoked by uid 99); 5 Oct 2014 16:54:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Oct 2014 16:54:54 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [147.102.222.185] (HELO smtp0.ntua.gr) (147.102.222.185) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Oct 2014 16:54:49 +0000 Received: from [127.0.0.1] (adsl-6.176.58.232.tellas.gr [176.58.232.6]) (authenticated bits=0) by smtp0.ntua.gr (8.14.7/8.14.7) with ESMTP id s95GsP9M095511 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 5 Oct 2014 19:54:26 +0300 (EEST) (envelope-from gkousiou@mail.ntua.gr) Message-ID: <543177C0.8060004@mail.ntua.gr> Date: Sun, 05 Oct 2014 19:54:24 +0300 From: George Kousiouris User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: user@jclouds.apache.org Subject: Unable to export running jar with Jclouds code from eclipse Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 141004-1, 10/04/2014), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I have successfully run a project inside Eclipse, using a piece of code from Jclouds: ComputeServiceContext context = ContextBuilder.newBuilder(provider)//"aws-ec2") .credentials(user, apiKey) //.modules(ImmutableSet. of(new Log4JLoggingModule(), // new SshjSshClientModule())) .buildView(ComputeServiceContext.class); ComputeService computeService = context.getComputeService(); //System.out.println("After cs.."); context.close(); The code is running fine within Eclipse, getting the server list and the metadata associated to them. However, when i try to export a running jar file from Eclipse Juno, i get the following error from the command line execution: java.util.NoSuchElementException: key [aws-ec2] not in the list of providers or apis: {} at org.jclouds.ContextBuilder.newBuilder(ContextBuilder.java:174) Seems to be a classpath issue? Any hints? Thanks, George --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com