seyed8453 / cloudsim

Automatically exported from code.google.com/p/cloudsim
0 stars 0 forks source link

Problem using cloudsim #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I want to used clousim, when i ran the command 'ant' on my Ubuntu 11.10 system 
it gives following error --------

/home/agent/cloudsim-3.0/build.xml:54: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"

what i do? 

Original issue reported on code.google.com by jeetra...@gmail.com on 4 Mar 2012 at 1:04

GoogleCodeExporter commented 8 years ago
Good afternoon Jeetra,

Your JAVA_HOME environment variable appears to be pointing to a JRE (Java 
Runtime Environment) instead of the JDK (Java Development Kit, which includes 
the javac compiler).

Ensuring you have a JDK installed and changing JAVA_HOME to point to the 
correct path will resolve this issue for you.

The following link tells you a little about how to update the path: 
http://docs.oracle.com/javase/tutorial/essential/environment/paths.html

I've not used OpenJDK but a few forum threads I've just looked at suggest if 
you change the path to "/usr/lib/jvm/java-6-openjdk" (removing the trailing 
"/jre"), that might fix it for you. If you already compile Java files within 
your IDE (Eclipse, NetBeans, etc), you could check the configuration there to 
find the path to your compiler.

Sorry I can't be any more specific without knowing more about the environment 
you're trying to run CloudSim in (operating system, etc).

Post back if you have difficulty updating the classpath and I'll do all I can 
to help.

All the best,
Matt Forshaw

Original comment by matthewf...@gmail.com on 4 Mar 2012 at 6:41

GoogleCodeExporter commented 8 years ago

Original comment by rodrigo.calheiros on 3 Aug 2012 at 6:18