Search code examples
javaspring-roo

Spring Roo Can't find dependent libraries


I'm having a really dumb problem with the standalone version of Roo. When I try and run it with %ROO_HOME%\bin added to my path, I get this:

C:\Users\Andy>roo
Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries
C:\Users\Andy>

Which seems really unhelpful to me. Is there any way to make the output a bit more verbose to see exactly what is missing? I have a non-standard location of anything due to having my OS on a small SSD, so I'm thinking that might be part of it, but it's kind of hard to tell what is going wrong with a message like "dependent libraries".

Thanks.


Solution

  • This looks more like a Java issue rather than Roo proper.

    Make sure you can run java -version (or any other java command) first.

    Suspects include not setting a JAVA_HOME/JDK_HOME, a broken PATH environment variable, etc.