What is that about bang signs (!)? I don't remember ever using a bang sign at the command prompt. Something has given you misinformation. Maybe you should remind yourself about how to run your first program.
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
INFO: Could not find files for the given pattern(s).
'javac' is not recognized as an internal or external command,
operable program or batch file.
C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Users\shott_000\AppData\Local\Microsoft\WindowsApps
Stefan Evans wrote:So you have the code for a java program (as a text file) and you want to put it into your Netbeans IDE?
I am presuming the code is some sort of library for you to use when doing the assignment.
My suggestion would be to just use Netbeans for it - forget the command line.
- Create a new Java class in Netbeans, the same way you always do
- Copy/paste the code from the text file provided into the Netbeans IDE.
Netbeans should then compile it and make it available to you.
It doesn't. when you download the package, the JDK is part of that package, so using that package to install NetBeans also installs the JDK. You can of course install NetBeans Eclipse or IntelliJ independently.
Stan Austin wrote:I'm using NetBeans IDE 8.1 im pretty sure it has its own runtime environment as it is all compiled and run within the self contained program.
There is no such thing as Std.In or Std.out in the standard Java® installation; those are terms similar to those used for C/C++ coding. In Java®, the standard input stream is called System.in and the standard output stream is called System.out.
also the bang sign isnt in the command line it is within the program such as !Std.In or !Std.out, when those ".class" files are stored in the same directory.
That is exactly the information you needed. If you go through the first part of the Java® Tutorials, you will find that error message in the “Common Problems” section. It is caused by not updating the PATH system environment variable when you installed Java®. If you go through the first program link I gave you yesterday, you will find information about setting the PATH and JAVA_HOME variables. I believe you need JAVA_HOME for NetBeans. You might have already configured NetBeans with a correct JAVA_HOME, in which case NetBeans might work and the javac instruction not work at the command line. You would want something like C:\Program Files\Java\jdk1.8.0_111 for JAVA_HOME and add %JAVA_HOME%\bin; at the beginning of the current PATH. You may need to enclose the JAVA_HOME text in "quote" marks.
an i tried to do your where java stuff
I has a location and version for java
but javac could not be found