tag:blogger.com,1999:blog-8712770457197348465.post100107174676248125..comments2024-03-18T23:01:42.768-07:00Comments on Javarevisited: How to set Java Path and Classpath in Windows 7, 8 and Windows 10 - Tutorialjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger36125tag:blogger.com,1999:blog-8712770457197348465.post-68122338489634722262022-01-07T11:05:57.612-08:002022-01-07T11:05:57.612-08:00You didn't even mention the CLASSPATH setup so...You didn't even mention the CLASSPATH setup so take it out of your title!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-40594106987942927292020-06-18T09:57:12.909-07:002020-06-18T09:57:12.909-07:00I have bychance deleted the whole path and added c...I have bychance deleted the whole path and added c:/program files/java14.0.1/bin<br /><br />Anonymoushttps://www.blogger.com/profile/13229337663823326134noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-84602263974030039892017-07-07T16:45:06.517-07:002017-07-07T16:45:06.517-07:00Helo @Anonymous, to solve the "MAIN CLASS NOT...Helo @Anonymous, to solve the <a href="http://javarevisited.blogspot.sg/2016/12/exception-in-thread-main-java-lang-NoClassDefFoundError-command-prompt.html" rel="nofollow">"MAIN CLASS NOT FOUND ERROR"</a> please see the article, there are host of reason when this error comes and I have described them in detail there. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-17622510750067930072017-07-07T16:43:31.000-07:002017-07-07T16:43:31.000-07:00Hello @Anonymous, looks like you have included JRE...Hello @Anonymous, looks like you have included JRE in your path and not JDK. The JRE only contains java.exe hence it is working but it doesn't contain javac.exe hence javac is showing not an internal or external command. If you can paste the path of your JAVA_HOME, I can say for sure if its JRE or JDK. Alternatively you just go to the bin folder of JAVA_HOME and see if javac.exe exists or not.javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-64538220236247854932017-07-07T11:24:34.389-07:002017-07-07T11:24:34.389-07:00I set the path I am using Windows 10 I created jav...I set the path I am using Windows 10 I created java home and past the path. When I am writing java it's working but when I am writing javac it's saying javac is an internal external command why???Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-33885308113521319212017-04-14T04:34:22.151-07:002017-04-14T04:34:22.151-07:00I set path and classpath properly but still it sho...I set path and classpath properly but still it show ''MAIN CLASS NOT FOUND ERROR''during execution. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-14314631668493702932016-12-27T18:20:26.316-08:002016-12-27T18:20:26.316-08:00I set the path as you dictated bu guess what?
comp...I set the path as you dictated bu guess what?<br />compilation process works but while running,it throws error message:Could not find or load main class file.-_- i'm pissed off.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-89872894757773881862016-12-25T04:19:00.663-08:002016-12-25T04:19:00.663-08:00C:\ProgramData\Oracle\Java\javapath;C:\Program Fil...C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\MicrosoftUnknownhttps://www.blogger.com/profile/10062015423468607062noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-23352207058475411422016-07-27T15:31:59.819-07:002016-07-27T15:31:59.819-07:00i lost my predefined path for windows 8.. instead ...i lost my predefined path for windows 8.. instead of appending it i placed new java path and it does not work.. please let me know if u know how to make it work send me how to set my predefined path for windows 8 64 bit..my mail id is sandhya.battagani@gmail.com<br /><br />Read more:Anonymoushttps://www.blogger.com/profile/17970186651686883451noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-51567792221911552762016-02-16T21:32:50.408-08:002016-02-16T21:32:50.408-08:00Instead of adding it,I deleted the entire path in ...Instead of adding it,I deleted the entire path in windows7.Can any one tell how to set entire path?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-87455414341935002732015-12-20T14:03:52.354-08:002015-12-20T14:03:52.354-08:00Hi Divya,
For windows 8, there is an alternate app...Hi Divya,<br />For windows 8, there is an alternate approach to set the java path using "C:\ProgramData\Oracle\Java\javapath" . This discussion in stack-overflow might be helpful..<br />http://stackoverflow.com/a/34375859/5699213<br />Ravihttp://www.thetestbook.com/javanoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-26681690547171586482015-11-06T07:59:16.855-08:002015-11-06T07:59:16.855-08:00i lost my predefined path for windows8.. instead o...i lost my predefined path for windows8.. instead of appending it i placed new java path and it does not work.. pls let me know if u kno how to make it work send me how to set my perdefined path for windows 8 64 bit..my mail id is divya34.k@gmail.comAnonymoushttps://www.blogger.com/profile/12632746526886809911noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-21175994751094708162015-10-18T18:05:20.226-07:002015-10-18T18:05:20.226-07:00Hello friends,
While adding path I deleted path w...Hello friends,<br /><br />While adding path I deleted path which is related to system as well as other installed apps.so if I type any commands in cmd promt like( ipconfig etc) am getting error...lt can work only for java related comands.so someone please suggest me about how to regain the path.am really tired of googling it still I couldn't find.Anonymoushttps://www.blogger.com/profile/17066623655768283902noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-32213024794115367732015-10-18T18:04:05.204-07:002015-10-18T18:04:05.204-07:00Hello friends,
While adding path I deleted path w...Hello friends,<br /><br />While adding path I deleted path which is related to system as well as other installed apps.so if I type any commands in cmd promt like( ipconfig etc) am getting error...lt can work only for java related comands.so someone please suggest me about how to regain the path.am really tired of googling it still I couldn't find.Anonymoushttps://www.blogger.com/profile/17066623655768283902noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-43055311547594917402015-08-15T08:35:05.717-07:002015-08-15T08:35:05.717-07:00@Puneet is right, whenever you change environment ...@Puneet is right, whenever you change environment variable e.g. PATH, CLASSPATH, JAVA_HOME, JRE_HOME, TOMCAT_HOME, MAVEN_HOME etc, make sure you open a new command prompt, so that new set of environment variable takes effect and available in shell. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-43184226337459881522015-08-14T03:25:14.873-07:002015-08-14T03:25:14.873-07:00Just close the the command prompt and restart agai...Just close the the command prompt and restart again. Then type javac, it will work.Anonymoushttps://www.blogger.com/profile/00244725066233614205noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-43592740227843672452015-05-18T06:40:34.381-07:002015-05-18T06:40:34.381-07:00Thanks - yes I tried this repeatedly without luck,...Thanks - yes I tried this repeatedly without luck, but afetr closing CMD prompt window and reopening it, javac command now works fine!Phil :-)https://www.blogger.com/profile/11187910045778492271noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-28885741298735102982015-05-12T21:39:22.651-07:002015-05-12T21:39:22.651-07:00what do i put in the path?!what do i put in the path?!Anonymoushttps://www.blogger.com/profile/12968528794301109487noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-59670855350102892692015-04-11T06:57:10.976-07:002015-04-11T06:57:10.976-07:00@Anonymous, did you mean the author? Yes, whenever...@Anonymous, did you mean the author? Yes, whenever you change PATH or CLASSPATH or any other environment variable, you must close the existing cmd windows and open a new command prompt. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-12588947407857491272015-04-11T06:49:15.121-07:002015-04-11T06:49:15.121-07:00some intelligent people have forgotten to mention ...some intelligent people have forgotten to mention to restart command prompt after updating the path variable. #hatersGonnaHateAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-43786510299196843662014-09-07T06:58:32.190-07:002014-09-07T06:58:32.190-07:00I did the same thing and deleted the entire comman...I did the same thing and deleted the entire command path :( Could someone send it to shaun.mclaren@gmail.com<br /><br />ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-64045064124886854152014-08-30T07:51:53.983-07:002014-08-30T07:51:53.983-07:00 I am also got problem with windows 8, I delet... I am also got problem with windows 8, I delete the whole path in environment variables could you please send the command prompt path to my email ( gkalaivani94@gmail.com ) thanks!!!<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-65970650764660977632014-08-10T10:45:03.312-07:002014-08-10T10:45:03.312-07:00Hello friends !
To set up path for java in window...Hello friends !<br /><br />To set up path for java in windows 8, there are to box is one is user variable and second one is system variable, so from system variable(below box) find "Path" and select that and than click on "Edit" button. Type a Simi colon(;) at the end of the line and also do not delete line, and than past complete path of java installation folder for example :Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-69567354812788197672014-03-18T12:12:26.208-07:002014-03-18T12:12:26.208-07:00By the way, you can get to the point earlier.By the way, you can get to the point earlier.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-47882676811224066672013-12-26T06:53:47.665-08:002013-12-26T06:53:47.665-08:00By mistaken I deleted my predefined path for windo...By mistaken I deleted my predefined path for windows8.. instead of appending it i placed new java path and it does not work.. <br /> Please give me a help to recover this problem<br />Anonymoushttps://www.blogger.com/profile/08620260877265271037noreply@blogger.com