Srishti
unread,Apr 2, 2013, 12:09:19 PM4/2/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to clou...@googlegroups.com
Hello,
I am a new cloudsim user and just started my preliminary studies in clouds. I installed and compiled cloudsim perfectly on my system (linux and mac). Now I am trying to compile and run the already given examples in the package. However, when I compile the examples (any of them) I get the following warning:
warning: org/cloudbus/cloudsim/Cloudlet.class(org/cloudbus/cloudsim:Cloudlet.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
which is repeated for other classes within that example file.
However, these are all warnings and not errors. So I went ahead and tried to run the java example, which then gave me the following error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/cloudbus/cloudsim/CloudletScheduler : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: org.cloudbus.cloudsim.examples.CloudSimExample1. Program will exit.
Could anyone please suggest a solution to this problem. Do I need to upgrade my java compiler or is there another way around this problem.
Thank you.
Srishti