Upon restart, you will have Java in your path, set by your environment variables. Then, type the “escape” button, followed by: :wq The second path should be the bin directory in the jre. The first directory should be the path to the bin directory in the jdk. Then, type the following: PATH=$PATH:/path/to/Java/installation/bin Once you are in it, move the arrows around until you get to the end of the file. bashrc configuration file is open, press i Once this is done, type the following: vi ~/.bashrc Upon gaining access to the command line interface (CLI), locate the installation directory of Java. Now, from a command line, type one of the following: javaĪt this point, you should see the help information for both commands, instead of: ‘java’ is not recognized as an internal or external command, operable program or batch file. Again, if this is not correct, you will need to use the appropriate path. Make sure you followed the JDK installation instructions, and try again. One way to do this is to press Cmd Space, type 'jGRASP', and press Enter: If jGRASP opens successfully, then you're all set However, if you see the following error: then you don't have the JDK installed. ![]() Name the variable JAVA_HOME, and as the variable value, add: C: \Program Files\Java\jdk1.7.0_21 You can now run jGRASP by opening jGRASP.appfrom the Applicationsfolder. Next, look for the JAVA_HOME system variable in the same Environment Variables list. If this is not the location of the \bin directory in your Java installation directory, you may change it to your actual path. jGRASP is implemented in Java, and runs on all platforms with a Java Virtual Machine (Java version 1.8 or higher). At the very end, add the following: C:\Program Files\Java\jdk1.7.0_21\bin jGRASP is a lightweight development environment, created specifically to provide automatic generation of software visualizations to improve the comprehensibility of software. Go to the Path system variable entry, and press Edit. Right-click My Computer, then click Properties, then Advanced System Settings, then Environment Variables. Next, we have to add the sub-directory \bin to the system’s environment variables. ![]() Once Java is installed, locate the installation directory, such as: C:\Program Files\Java\jdk1.7.0_21
0 Comments
Leave a Reply. |