![]() ![]() Remember, the OS alternative should still refer to the JDK. So, even if you are indeed using the JDK instead of the JRE, the $JAVA_HOME has to point to the JRE. ![]() The jGRASP debugger includes all of the traditional features expected in a debugger. Which is where the tools.jar really resides. jGRASP provides a highly visual debugger for Java, which is tightly integrated with the CSD and UML windows, the Workbench, Viewers, and Interactions. Which now resolves to /usr/local/java/jre/./lib/tools.jarĪnd finally to /usr/local/java/lib/tools.jar This new setup will cause maven to look at the JRE directory, that is part of the JDK: $JAVA_HOME\.\lib\tools To solve this, the $JAVA_HOME variable should instead point to this location /usr/local/java/jre (assuming the JDK path is /usr/local/java) - there is actually jre folder inside the JDK installation directory, that comes with each JDK. It actually searches for the lib folder outside the java directory, because: $JAVA_HOME\.\lib\tools.jar The $JAVA_HOME variable pointed directly to my jdk folder ( /usr/local/java which was also the correct $PATH entry and alternative sym link). While I was using the correct JDK, I paid attention to the path of the tools jar maven complained about - it was expecting it to be $JAVA_HOME\.\lib\tools.jar The problem was quite stupid to solve, yet counter-intuitive. ![]() Step 2: Now you can right-click the java.exe and select. Then right-click it and select Open file location to open the Java’s folder in File Explorer. Follow the steps below to fix that: Step 1: Type Java in the Search box. I am using version 1.6, 1.7 and 1.8 simultaneously, and I have played a lot with the alternatives to have everything set properly. Then, you can also try to open Java.exe with admin rights to fix the could not create Java virtual machine issue. I was quite frustrated at first, because I have installed both the JDK and JRE. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |