Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34882
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2016-07-13 22:21 -0700 |
| References | <aa7c01d2-19eb-4e13-b45b-de3c76a11475@googlegroups.com> <nm6pr1$1id1$1@gioia.aioe.org> |
| Message-ID | <c3cd14de-c3b4-4bf9-837a-d5b184102bef@googlegroups.com> (permalink) |
| Subject | Re: Missing javac |
| From | Lew <lewbloch@gmail.com> |
Arne Vajhøj wrote:
> solitary.wanderer52 wrote:
> > Just downloaded NetBeans/Java SDK to a Windows 10 Home x64 machine.
> > NetBeans seems to work fine, as well as Java itself. However, typing
> > javac at the command line returns a missing command error. I find
> > javac on the disk, just not where the where command indicates java
> > is. I can create a symlink for it in that directory, however it just
> > creates other problems, and is probably not the ultimate solution.
The simplest solution likely to work is to reinstall the latest JDK (not JRE) from Oracle. It is possible the file got lost, or that you never downloaded the JDK.
> Where is it and where should it be?
When you need help from a technical forum, the more relevant detail you provide the more likely you are to get a useful answer. "returns a missing command error" is syntactically ambiguous and doesn't give us the information that the error message gave you. How can we diagnose the error if you withhold that particularly vital item? What symlink? What directory? What other problems?
Regardless of all that, most such problems with the JDK are best solved by a quick installation from the Oracle site. The installations generally are not very painful. Symlinks are only useful if you link to a known good installation.
For the JDK, symlinking individual files is a bad idea. Are you quite sure you linked the right file? What do "java -version" and "javac -version" tell you respectively? The usual practice is to symlink to the correct JAVA_HOME directory (the parent of the "bin" directory) and include "${JAVA_HOME}/bin" in your PATH.
Anyway, first thing is to reinstall the latest JDK and see what happens.
--
Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Missing javac solitary.wanderer52@gmail.com - 2016-07-13 16:52 -0700
Re: Missing javac Arne Vajhøj <arne@vajhoej.dk> - 2016-07-13 21:28 -0400
Re: Missing javac Lew <lewbloch@gmail.com> - 2016-07-13 22:21 -0700
Re: Missing javac Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-07-14 07:54 -0400
Missing javac Steve Graham <solitary.wanderer52@gmail.com> - 2016-07-14 11:03 -0700
Re: Missing javac Arne Vajhøj <arne@vajhoej.dk> - 2016-07-14 14:50 -0400
Re: Missing javac Hiram Hunt <hiramhunt@verizon.net> - 2016-07-14 15:21 -0400
Re: Missing javac Arne Vajhøj <arne@vajhoej.dk> - 2016-07-14 16:30 -0400
Re: Missing javac Steve Graham <solitary.wanderer52@gmail.com> - 2016-07-14 13:04 -0700
Re: Missing javac Arne Vajhøj <arne@vajhoej.dk> - 2016-07-14 16:27 -0400
Re: Missing javac Arne Vajhøj <arne@vajhoej.dk> - 2016-07-14 16:32 -0400
Re: Missing javac Steve Graham <solitary.wanderer52@gmail.com> - 2016-07-14 14:40 -0700
Re: Missing javac Lew <lewbloch@gmail.com> - 2016-07-14 15:09 -0700
Re: Missing javac Arne Vajhøj <arne@vajhoej.dk> - 2016-07-14 18:33 -0400
Re: Missing javac Steve Graham <solitary.wanderer52@gmail.com> - 2016-07-14 16:26 -0700
Re: Missing javac Arne Vajhøj <arne@vajhoej.dk> - 2016-07-14 18:36 -0400
Re: Missing javac Steve Graham <solitary.wanderer52@gmail.com> - 2016-07-14 16:26 -0700
Re: Missing javac Roedy Green <inquiry@mindprod.com> - 2016-07-20 06:18 -0700
Re: Missing javac Steve Graham <solitary.wanderer52@gmail.com> - 2016-07-20 12:45 -0700
csiph-web