Reputation: 42562
I am following the tutorial regarding Creating a Cloud Connector.
When importing in MuleStudio, I am getting two errors which I don't completely understand.
Project build error: Unknown packaging: mule-module
Project build error: Unresolveable build extension: Plugin org.mule.tools.devkit:mule-devkit-maven-plugin:3.3.2 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.6 at specified path C:\Program Files (x86)\Java\jre6/../lib/tools.jar
I also tried importing the Mule LDAP Connector. Same error.
Any ideas to get me out of this?
Upvotes: 1
Views: 3110
Reputation: 9059
AFAIU, the stacktrace told us as
could not be resolved: Could not find artifact
com.sun:tools:jar:1.6 at specified path
C:\Program Files (x86)\Java\jre6/../lib/tools.jar
The C:\Program Files (x86)\Java\jre6
is a JRE
. We should configure the IDE to use the JDK
instead. Please note, the file named tools.jar
is available at JDK_HOME/lib/tools.jar
Basically we should set the following environment variable
JAVA_HOME
which points to the JDK installation path, e.g. C:\java\jdk1.7.0_15
.PATH
which points to %JAVA_HOME%/bin
.Then when we launch any IDE, it will use the configured JDK by default. Anyhow the IDE also allow us the add more/modify JDK via its menus as well.
e.g. for Eclipse
Window
----> Preference
Java
----> Installed JRE
I hope this may help.
Upvotes: 4