How do you install JDK?

how to install jdk in windows 10
java jdk 12
jdk download mac
install java 11 windows
jdk version
jdk 13 download
java 10 installation
java jdk 13 install windows 10

I have eclipse and I can test run java apps but I am not sure how to compile them. I read that I should type javac -version into my cmd.exe and see if it is recognized. It is not. So I went to sun's website and downloaded/installed JDK v6. Yet it still says 'javac' is an unrecognized command. What am I doing wrong?

Thanks!

UPDATE OK after reading some replies it seems like what I am trying to do is create a .jar file that can be ran on another computer (with the runtime). However I am having trouble figuring out how to do that. This might be because I am using Flex Builder(eclipse), but I added the ability to create java projects as well.

Thanks

UPDATE OK I do not want to make a JAR file, I am not trying to archive it...the whole point of making a program is to send it to users so they can use the program...THAT is what I am trying to do...why is this so hard?


A JAR file can function as an executable, when you export your project as a JAR file in Eclipse (as Michael Borgwardt pointed out) you can specify what's the executable class, that meaning which one has the entry point [aka public static void main(String[] args)]

If the user installed the JRE he/she can double-click it and the application would be executed.

EDIT: For a detailed explanation of how this works, see the "How do I create executable Java program?"

Overview of JDK Installation, To develop or run Java applications, download and install JDK. Version-String Format. To understand the version-string scheme that is used to distinguish� How To Install JDK on Windows Step 0: Un-Install Older Version(s) of JDK/JRE. I recommend that you install only the latest JDK. Although you can install multiple versions of JDK/JRE concurrently, it is messy. If you have previously installed older version(s) of JDK/JRE, un-install ALL of them.


To setup Eclipse to use the JDK you must follow these steps.

1.Download the JDK

First you have to download the JDK from Suns site. (Make sure you download one of them that has the JDK)

2.Install JDK

Install it and it will save some files to your hard drive. On a Windows machine this could be in c:\program files\java\jdk(version number)

3.Eclipse Preferences

Go to the Eclipse Preferences -> Java -> Installed JREs

4.Add the JDK

Click Add JRE and you only need to located the Home Directory. Click Browse... and go to where the JDK is installed on your system. The other fields will be populated for you after you locate the home directory.

5.You're done

Click Okay. If you want that JDK to be the default then put a Check Mark next to it in the Installed JRE's list.

How to Install JDK 8 (on Windows, Mac OS, Ubuntu) and Get Started , 1. How To Install JDK on Windows. Step 0: Un-Install Older Version(s) of JDK/ JRE. I recommend that you install� 1. Download the JDK First you have to download the JDK from Suns site. (Make sure you download one of them that has the 2. Install JDK Install it and it will save some files to your hard drive. On a Windows machine this could be in 3. Eclipse Preferences Go to the Eclipse Preferences -> Java


You don't need a separate compiler, eclipse already compiles the application for you. What you probably want to do is to create an "executable" JAR file, which you can do in eclipse by selecting File->Export->Runnable JAR file.

Note, however, that the resulting JAR file is not a "real" (i.e. Windows binary) executable - it still needs a JRE installed on the target computer. There isn't really a way to create windows binaries; that's not how Java works. On the upside, it will work without recompilation on a Linux or MacOS machine (if it has a JRE installed).

How to Install Java JDK on Windows 10 ( with JAVA_HOME ) (2020 , Java installer .msi file comes with JRE and JDK. Java JDK Installation for Microsoft Windows Duration: 10:38 Posted: Mar 15, 2020 9 Installation of the JDK and the JRE on Microsoft Windows Platforms System Requirements for Installing the JDK and the JRE on 64-Bit Windows Platform. The JDK and the JRE have minimum JDK and JRE Installation Instruction Notation for Windows. If you are downloading the JDK installer for 64-bit


javac is located in the "bin" folder of your JDK installation. In order to run it you must either use full path or add this directory to your systems search path via the Control Panel.

If you installed to c:\program files\java\jdk1.6.0 your call will have to look like this:

c:\> "c:\program files\java\jdk1.6.0\bin\javac" -version

How to Install Java JDK on Windows 10, In this video, we are going to discuss how to install JAVA JDK on Windows 10. JRE Installation Duration: 4:38 Posted: Jul 7, 2017 You run a self-installing executable file to unpack and install the JDK on Windows computers. Install JDK on Windows computers by performing the actions described in the following topics: Downloading the JDK Installer


Umm, eclipse is an IDE, it compiles things as you go. You don't need javac.

How to Download & Install Java JDK 8 in Windows, This Java Development Kit(JDK) allows you to code and run Java programs. It's possible that you install multiple JDK versions on the same PC. Java SE Development Kit 8 Downloads. Thank you for downloading this release of the Java™ Platform, Standard Edition Development Kit (JDK™). The JDK is a development environment for building applications, applets, and components using the Java programming language.


How do I install Java ?, Choose the Operating System for instructions to install Java: Windows; Mac; Linux; Solaris. Windows Download and Installation. Downloading and installing Java�


Build your first Java app - Install JDK, Install JDK. Before running and deploying this sample, you must have JDK installed. If you have JDK installed, proceed directly by clicking “I have installed JDK”�


Installation of the JDK and the JRE on Microsoft Windows Platforms, For JDK 10, you are given the option of installing the following features: Development Tools. Source Code. Public Java Runtime Environment. When you install 64-�