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.<Module> 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