![]() I found my problem which seemed to be the same as your problem with some trial and error and some of the responses here.įirst, I had downloaded JRE instead of SDK so if that is the problem, uninstall JRE then install SDK which includes a version of JRE with more features. I can be a pretty logical person but this doesn’t seem to make sense. Here is where test #1 says it is: c:program files (x86)javajdk1.8.074 I can’t see it in Windows Explorer and I tried setting WE to display hidden and system files and that did not display it. ![]() When I do a search for it Windows says it can’t find it. When I do test 1 above, it responds with the location of the bin sub-folder. Hi filip, Can it be a permissions issue? I double-checked my entries as you directed. A new file, HellOTP.class appears when I type: C:UserstothnJavaProjectsSetUpPracticesrcHelloOTPjava HellOTP It displays the message: Error: Could not find or load main class HellOTP.java The file works from an IDE (Netbeans), but I want to run it from cmd My Classpath variable is set to Read more ». I want to compile a specific class, so I type the following: cd C:UserstothnJavaProjectsSetUpPracticesrcHelloOTP //this directory contains the.java file javac HellOTP.java //now the HellOTP.java compiles perfectly. However I have the following problems: (java -version and javac -version works fine) I am working from the command line. Thank you for the explanation, it works well. ![]() Go to Change settings and select the Advanced tab.Alternatively:Open “Windows search” – you will find it next to the Windows logo. Open Advanced System SettingsIn Windows 10 press Windows key + Pause Key, This will open the System Settings window. Please note JAVAHOME should point to a JDK directory not a JRE one. The point of setting the environment variable is to let programs know in which directory executables like javac can be found. In this tutorial I will show you how to set JAVAHOME as environment variable in Windows 10 operating system.Why do I need to set JAVAHOME?Many Java based programs like Tomcat require JAVAHOME to be set as environment variable to work correctly. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |