Raf's Lab
Spring Source Roo and missing com.sun:tools:jar:1.4.2
If you are trying to get the latest version of SpringSource ROO working, with an x64 Java JDK, such as the latest JDK 1.6 update 20, there is unfortunately a missing tools.jar from the default lib\ directory of the JDK (tut tut tut Sun/Oracle). This will prevent Roo from working and therefore prevent Maven compilation. You would probably see an error similar to this:
----------
1) com.sun:tools:jar:1.4.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
----------
1 required artifact is missing.
To correct this error, install an additional x86 JDK, repoint the JAVA_HOME and the PATH to the new JDK and restart the mvn process
Posted at 12:53PM Jun 02, 2010 by Rafez in Programming | Comments[0]
Forcing Eclipse to use a different JVM
Eclipse, under windows, uses the Java Control panel located Java Virtual Machine by default. It does not obey nor look at the
To force eclipse to use a different JVM set the following in the eclipse.ini
E:/dev/java/jdk-jre/jdk1.6.20-i586/jre/bin
Alternatively, if you are using Windows, you can force Eclipse to load a different JVM from the properties box for the eclipse.exe executable
Posted at 05:58PM Jun 01, 2010 by Rafez in Programming | Comments[0]
