I am a new Java user, I can't use "javac" in my computer, but I can see i can use java.exe, javacpl.exe, javaw.exe, javaws.exe.
In addition, i am using jre7.
Please help me to start using java. Thanks a lot.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
I am a new Java user, I can't use "javac" in my computer, but I can see i can use java.exe, javacpl.exe, javaw.exe, javaws.exe.
In addition, i am using jre7.
Please help me to start using java. Thanks a lot.
If you are using windows then follow these steps
1. Install JDK.
2. After completing the installation of JDK you have to set the classpath variables.
To set the classpath follow the instructions given below:
1. Right Click on My Computer icon and then click on Properties.
2. Click on the Advanced Tab and then on Environment Variables.
3. Here you have to define two system variables named PATH and JAVA_HOME.
The variable PATH will have the path up to bin directory in your installed JDK folder and variable JAVA_HOME will be the parent directory of the JDK installation.
I am using company pc, it should be installed jre7.
But how can I make sure JDK was installed or not?
After I followed your method, I saw below in the environment variables:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShel l\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Prog ram Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;k:\
It seems no "Bin" directory.
If my current is really not installed JDK, what JDK should I download and install?
1) Oracle JDK (Java SE Development Kit 7 - Downloads | Oracle Technology Network | Oracle), or
2) Eclipse for Java developer (http://www.eclipse.org/downloads/dow...nter-win32.zip), or
3) Open JDK (OpenJDK) ?
I just want to write java programs, complie, and see the program results, to start revising/learning java programming.
Thanks a lot!
1) Java SE Development Kit 7. Install this. You need it to compile java programs.
2) Eclipse. Optional. This is an IDE, it makes programming easier by highlighting syntax errors, code completion and much much more. You don't need it to get started but it's nice to have.
3) Open JDK. Don't get this. It's the source code for Java itself and only really of interest to academics and Oracle staff.
Once you have installed JDK you need to add PATH variable like "C:\Program Files\Java\jdk1.6.0_18\bin". Then only javac will be a recognised command. Enjoy programming
You'll need to get a Java Development Kit (JDK).
Eclipse is a fancy source code editor / IDE and requires the JDK. As many have already advised, you need to install the JDK. You may also use the OpenJDK if you like, but there are occasional compatibility problems. I haven't heard of many lately, but maybe I haven't been looking.