Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,820 members, 7,817,395 topics. Date: Saturday, 04 May 2024 at 11:28 AM

How Do I Get Java Development Kit On My System? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How Do I Get Java Development Kit On My System? (2818 Views)

Everything To Know About Google Android Game Development Kit / Question on Java Development / Java EE Developer And Spring Developer In Here. (2) (3) (4)

(1) (2) (Reply) (Go Down)

How Do I Get Java Development Kit On My System? by LordeCalifornia: 10:07pm On Oct 14, 2017
Please, programmers in the house, I want to know how I Can get JDK8 and install on my system. Do I need to download it online? Or do I need to purchase the software in a computer shop?
How did you get yours?
Re: How Do I Get Java Development Kit On My System? by asalimpo(m): 10:15pm On Oct 14, 2017
google java jdk.
click on the link that takes u to oracle's website.
Download the jdk (java se).
Come here and share ur success story or ask about to install it.
Download cuz, as a software developer,you will bedownloadinglotta software to use in ur career so learn now how to do these things.

1 Like

Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 11:15pm On Oct 14, 2017
asalimpo:
google java jdk.
click on the link that takes u to oracle's website.
Download the jdk (java se).
Come here and share ur success story or ask about to install it.
Download cuz, as a software developer,you will bedownloadinglotta software to use in ur career so learn now how to do these things.
Lol. Alright, thanks.
Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 10:42pm On Oct 18, 2017
asalimpo:
google java jdk.
click on the link that takes u to oracle's website.
Download the jdk (java se).
Come here and share ur success story or ask about to install it.
Download cuz, as a software developer,you will bedownloadinglotta software to use in ur career so learn now how to do these things.
Bro I've downloaded JDK and I've installed it but I don't know how to locate the development environment.
Re: How Do I Get Java Development Kit On My System? by asalimpo(m): 12:08am On Oct 19, 2017
LordeCalifornia:

Bro I've downloaded JDK and I've installed it but I don't know how to locate the development environment.

There's no "development environment" object. It's just how to set up your computer for programming.

Next, learn how to set up the jdk for compiling.
That means u'll have to set the path and classpath variables on ur computer.
download the java documentation for your compiler, it's for looking up API's of inbuilt classes.
You'll get the documentation on oracle's website where u got the compiler.

Google/youtube how to set classpath and path variables for java.
e.g "how to install java"

write a simple program and compile it successfully.

1 Like 1 Share

Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 4:03am On Oct 19, 2017
asalimpo:


There's no "development environment" object. It's just how to set up your computer for programming.

Next, learn how to set up the jdk for compiling.
That means u'll have to set the path and classpath variables on ur computer.
download the java documentation for your compiler, it's for looking up API's of inbuilt classes.
You'll get the documentation on oracle's website where u got the compiler.

Google/youtube how to set classpath and path variables for java.
e.g "how to install java"

write a simple program and compile it successfully.
New download? shocked
Hehe. Alright I'd do that when I buy more data. Thanks
Re: How Do I Get Java Development Kit On My System? by simiolu1(m): 2:12pm On Oct 19, 2017
LordeCalifornia:

New download? shocked
Hehe. Alright I'd do that when I buy more data. Thanks

If you will ever become a good programmer, having internet access is very crucial.

But to set your classpath

1. Go to the directory where the jdk is installed. Open the "bin" folder.
Click inside the windows explorer address bar to reveal the full address of the directory. Copy the address.
2. Press the Windows key on your keyboard and type "environment variables".
3. Click " edit system environment variables".
To do this, the OS would verify if you have administrator privileges.
4. On the resulting pop-up screen, click "environment variables". It is located just above the OK and Cancel buttons.
5. On the resulting pop-up dialog, scroll down the " system variables" tab. Look for "Path".
6. Once you see " Path" click on it once to highlight it then click "Edit".
7. Navigate the cursor to the last position.
Prrssing " End" on your keyboard is faster than using the directional keys.
Type a semicolon " ;" then paste the address of the folder you copied earlier.
There should not be a space between the semi colon and what you paste.
8.Click OK. To apply changes. Click OK again and again till the "System Properties" window closes.
9. Open Command Prompt.
10. Type "javac"
If you followed all the steps correctly, this command would execute without errors.

You can also do "javac -version" to know the version of the jdk you have installed.

Happy coding
Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 3:09pm On Oct 19, 2017
simiolu1:


If you will ever become a good programmer, having internet access is very crucial.

But to set your classpath

1. Go to the directory where the jdk is installed. Open the "bin" folder.
Click inside the windows explorer address bar to reveal the full address of the directory. Copy the address.
2. Press the Windows key on your keyboard and type "environment variables".
3. Click " edit system environment variables".
To do this, the OS would verify if you have administrator privileges.
4. On the resulting pop-up screen, click "environment variables". It is located just above the OK and Cancel buttons.
5. On the resulting pop-up dialog, scroll down the " system variables" tab. Look for "Path".
6. Once you see " Path" click on it once to highlight it then click "Edit".
7. Navigate the cursor to the last position.
Prrssing " End" on your keyboard is faster than using the directional keys.
Type a semicolon " ;" then paste the address of the folder you copied earlier.
There should not be a space between the semi colon and what you paste.
8.Click OK. To apply changes. Click OK again and again till the "System Properties" window closes.
9. Open Command Prompt.
10. Type "javac"
If you followed all the steps correctly, this command would execute without errors.

You can also do "javac -version" to know the version of the jdk you have installed.

Happy coding
thanks!
I'm at work presently.
I would try it when I get home.
Re: How Do I Get Java Development Kit On My System? by asalimpo(m): 3:38pm On Oct 19, 2017
simiolu1:


If you will ever become a good programmer, having internet access is very crucial.

But to set your classpath

1. Go to the directory where the jdk is installed. Open the "bin" folder.
Click inside the windows explorer address bar to reveal the full address of the directory. Copy the address.
2. Press the Windows key on your keyboard and type "environment variables".
3. Click " edit system environment variables".
To do this, the OS would verify if you have administrator privileges.
4. On the resulting pop-up screen, click "environment variables". It is located just above the OK and Cancel buttons.
5. On the resulting pop-up dialog, scroll down the " system variables" tab. Look for "Path".
6. Once you see " Path" click on it once to highlight it then click "Edit".
7. Navigate the cursor to the last position.
Prrssing " End" on your keyboard is faster than using the directional keys.
Type a semicolon " ;" then paste the address of the folder you copied earlier.
There should not be a space between the semi colon and what you paste.
8.Click OK. To apply changes. Click OK again and again till the "System Properties" window closes.
9. Open Command Prompt.
10. Type "javac"
If you followed all the steps correctly, this command would execute without errors.

You can also do "javac -version" to know the version of the jdk you have installed.

Happy coding
12. restart your computer (for the new classpath variable to register) then type javac at the command prompt.
- dont know how to create a command prompt window?
open notepad or anytext editor of ur choice. type "start". save it as <anyNameOfUrChoice e.g win>.bat.
.Save it as a file only (select 'All files' in the file type list) .
- click on it, then type 'javac'.
if you see a screen full on nanshense, dont panic!! Your installation was successful if you see 'command not recognize' something went wrong..
Re: How Do I Get Java Development Kit On My System? by simiolu1(m): 4:03pm On Oct 19, 2017
asalimpo:

12. restart your computer (for the new classpath variable to register) then type javac at the command prompt.
- dont know how to create a command prompt window?
open notepad or anytext editor of ur choice. type "start". save it as <anyNameOfUrChoice e.g win>.bat.
.Save it as a file only (select 'All files' in the file type list) .
- click on it, then type 'javac'.
if you see a screen full on nanshense, dont panic!! Your installation was successful if you see 'command not recognize' something went wrong..

Oga, na long thing be this o.

To open a Command Prompt Window, do any of the following
1. Press the Windows key on the keyboard and type "cmd.exe". If you don't have administrator privileges, right click on the result and select "Run as administrator".

2. Use the following key combo "Windows Key + R". It would open a pop-up. In the pop-up box, type "cmd.exe".

At the bolded, I never restart my PC when setting a PATH variable. My OS is Windows 7 Pro but OP can to fulfill all righteousness
Re: How Do I Get Java Development Kit On My System? by asalimpo(m): 4:30pm On Oct 19, 2017
simiolu1:


Oga, na long thing be this o.

To open a Command Prompt Window, do any of the following
1. Press the Windows key on the keyboard and type "cmd.exe". If you don't have administrator privileges, right click on the result and select "Run as administrator".

2. Use the following key combo "Windows Key + R". It would open a pop-up. In the pop-up box, type "cmd.exe".

At the bolded, I never restart my PC when setting a PATH variable. My OS is Windows 7 Pro but OP can to fulfill all righteousness
Ok, i'm on win7 too.
i'm not really sure which one requires a restart, but usually i just restart. Mayb i'm confusing things with
adding a jar file to the classpath. One isnt seen by the system until after a restart.
- windows key + R. I never knew that. I stated how i usually do things when reinstalling.
The benefit of creating a .bat file is that , you can open the cmd from any directory, rather than the desktop.
That way compiling can be done in a special folder,rather than littered around the system.
Again,that's just my way.
Re: How Do I Get Java Development Kit On My System? by simiolu1(m): 4:50pm On Oct 19, 2017
asalimpo:

Ok, i'm on win7 too.
i'm not really sure which one requires a restart, but usually i just restart. Mayb i'm confusing things with
adding a jar file to the classpath. One isnt seen by the system until after a restart.
- windows key + R. I never knew that. I stated how i usually do things when reinstalling.
The benefit of creating a .bat file is that , you can open the cmd from any directory, rather than the desktop.
That way compiling can be done in a special folder,rather than littered around the system.
Again,that's just my way.

Well if that's how you see it. To each his own. But I have added the Command Prompt to the folder menu options on my PC. So I can just right click on a folder and select "Command Prompt". This would open the Command Prompt and set the directory to the folder.

I don't know how you set up your PC but except I use the above method to open Cmd; my PC opens Cmd in C:\Users\<myusername> by default and not the desktop.
Re: How Do I Get Java Development Kit On My System? by TeddyC: 5:13pm On Oct 19, 2017
The JDK isn't enough.
To make anything other than console applications, You'll need an IDE (Integrated Development Environment ). There are many IDE's available for free online with eclipse( java) for desktop and android apps, netbeans( provides support for most programming languages ) and android studio the official IDE for android.
Re: How Do I Get Java Development Kit On My System? by asalimpo(m): 6:09pm On Oct 19, 2017
simiolu1:


Well if that's how you see it. To each his own. But I have added the Command Prompt to the folder menu options on my PC. So I can just right click on a folder and select "Command Prompt". This would open the Command Prompt and set the directory to the folder.

I don't know how you set up your PC but except I use the above method to open Cmd; my PC opens Cmd in C:\Users\<myusername> by default and not the desktop.
added command prompt to folder option? I didnt know of that. I'll check it out.
I've got so many .bat files that when working or testing i just copy one of them somewhere into the current directory click it and i'm good to go.

i tried that and it opened in <userName> directory.
It's all good then.
Re: How Do I Get Java Development Kit On My System? by TeddyC: 6:39pm On Oct 19, 2017
The IDE is where you'll enter most of your code. Most IDE's have code completion features, error detection, GUI BUILDERS!!! and other things that'll help make your programming life easier. And they'll help compile your program into an executable jar file which is runnable on any platform( which is the essence of Java).
Re: How Do I Get Java Development Kit On My System? by simiolu1(m): 7:11pm On Oct 19, 2017
asalimpo:

added command prompt to folder option? I didnt know of that. I'll check it out.
I've got so many .bat files that when working or testing i just copy one of them somewhere into the current directory click it and i'm good to go.

i tried that and it opened in <userName> directory.
It's all good then.

This your workflow na helele. Issa inefficient something.

Do a Google search for "add command prompt to folder option." You should see something that asks you to download a batch file. This is preferable if you are not too comfortable modifying Windows Registry by yourself.

Another way is to open command prompt the default way, copy the folder address of the folder you want to work in from Windows explorer address bar, paste into command prompt and press enter. Cmd would change directory to the directory you pasted.

Both are still better thank copying batch file upandan
Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 9:54pm On Oct 19, 2017
simiolu1:


If you will ever become a good programmer, having internet access is very crucial.

But to set your classpath

1. Go to the directory where the jdk is installed. Open the "bin" folder.
Click inside the windows explorer address bar to reveal the full address of the directory. Copy the address.
2. Press the Windows key on your keyboard and type "environment variables".
3. Click " edit system environment variables".
To do this, the OS would verify if you have administrator privileges.
4. On the resulting pop-up screen, click "environment variables". It is located just above the OK and Cancel buttons.
5. On the resulting pop-up dialog, scroll down the " system variables" tab. Look for "Path".
6. Once you see " Path" click on it once to highlight it then click "Edit".
7. Navigate the cursor to the last position.
Prrssing " End" on your keyboard is faster than using the directional keys.
Type a semicolon " ;" then paste the address of the folder you copied earlier.
There should not be a space between the semi colon and what you paste.
8.Click OK. To apply changes. Click OK again and again till the "System Properties" window closes.
9. Open Command Prompt.
10. Type "javac"
If you followed all the steps correctly, this command would execute without errors.

You can also do "javac -version" to know the version of the jdk you have installed.

Happy coding

In line 7,


Type a semicolon " ;" then paste the address of the folder you copied earlier.
There should not be a space between the semi colon and what you paste.
Do I click on 'edit' or on 'edit text' before typing the semicolon?
Re: How Do I Get Java Development Kit On My System? by simiolu1(m): 9:56pm On Oct 19, 2017
LordeCalifornia:

In line 7,

You edit before typing. And I said click on Edit. I didn't say click on edit text

And I think it is straight forward enough. From step 6 to step 7.

It is when you select "Path" and click edit that another pop up would display what you would actually edit
Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 9:57pm On Oct 19, 2017
simiolu1:


What happened to line 7?
I've modified the post
Re: How Do I Get Java Development Kit On My System? by asalimpo(m): 11:35pm On Oct 19, 2017
simiolu1:


This your workflow na helele. Issa inefficient something.

Do a Google search for "add command prompt to folder option." You should see something that asks you to download a batch file. This is preferable if you are not too comfortable modifying Windows Registry by yourself.

Another way is to open command prompt the default way, copy the folder address of the folder you want to work in from Windows explorer address bar, paste into command prompt and press enter. Cmd would change directory to the directory you pasted.

Both are still better thank copying batch file upandan
I think you are misconstruing what i said.
if i'm coding and testing code in a directory, they'll be a .bat file there.
Either created from a text editor or a copy of one of the bat files on my system.
That's it. When i want to compile code, i just click on the bat file in the current directory and it will be at the current directory. The only work involved is in creating the bat file or copying it to the current directory i'm working on. This is shorter than clicking start button, copying directory path to it etc.

creating a bat file in current working directory -method1:
enter directory-> rightclick "create new text document"->open text document->enter "start"->save as dot bat->click .bat file (it opens a command prompt in current directory).

moving to a new directory:
copy the bat file->paste it in new direcotory. -> click to open command prompt.
To me it aint work any more thn creating a java file is work.

method2:
open command prompt (windowsKey+R):->enter cmd in the pop up window->go to current working directory(switch back)->go to mouse. move it to address bar->right click to select path->right click to copy->switch out to cmd->paste path in cmd->click enter to open cmd in path!!

Method 2, your recommendation is simply way to time consuming and slow. Switching context while working affects concentration. Method1,the method is currently use, is simply easier on the mind and concentration. No context switches.
It's bad for programming and fragments focus.


But i'll try the first option u gave and see how it goes.
Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 12:01am On Oct 20, 2017
simiolu1:


You edit before typing. And I said click on Edit. I didn't say click on edit text

And I think it is straight forward enough. From step 6 to step 7.

It is when you select "Path" and click edit that another pop up would display what you would actually edit
Alright
Re: How Do I Get Java Development Kit On My System? by simiolu1(m): 1:07pm On Oct 20, 2017
asalimpo:

I think you are misconstruing what i said.
if i'm coding and testing code in a directory, they'll be a .bat file there.
Either created from a text editor or a copy of one of the bat files on my system.
That's it. When i want to compile code, i just click on the bat file in the current directory and it will be at the current directory. The only work involved is in creating the bat file or copying it to the current directory i'm working on. This is shorter than clicking start button, copying directory path to it etc.

creating a bat file in current working directory -method1:
enter directory-> rightclick "create new text document"->open text document->enter "start"->save as dot bat->click .bat file (it opens a command prompt in current directory).

moving to a new directory:
copy the bat file->paste it in new direcotory. -> click to open command prompt.
To me it aint work any more thn creating a java file is work.

method2:
open command prompt (windowsKey+R):->enter cmd in the pop up window->go to current working directory(switch back)->go to mouse. move it to address bar->right click to select path->right click to copy->switch out to cmd->paste path in cmd->click enter to open cmd in path!!

Method 2, your recommendation is simply way to time consuming and slow. Switching context while working affects concentration. Method1,the method is currently use, is simply easier on the mind and concentration. No context switches.
It's bad for programming and fragments focus.


But i'll try the first option u gave and see how it goes.

Its all in the way you organize your projects and personal preference. For example, all the github projects I save to my PC are in a folder named Github in my C drive. Same with my Java projects. So I will be having something like C:\Javaprojects\<projectname>. But if I bury them in nested directories on my desktop, I would be having something like C:\Users\<username>\Desktop\Javaprojects\<projectname>.

Out of the two, we can both agree that the former is easier to type than the latter. So that is how I organize all my projects and moving from one project to another simply consists of exiting out of a directory and entering into another directory.

Then I also have Git installed on my PC and it comes with Git Bash which is the command line of Linux. It also has a context menu that allows me to right click and start Bash in the current directory. Check the screenshot attached. And believe me, bash changes everything for me.

Also this way, projects are not littered around my PC like say na goat sh!t.

Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 10:06am On Oct 21, 2017
asalimpo:

12. restart your computer (for the new classpath variable to register) then type javac at the command prompt.
- dont know how to create a command prompt window?
open notepad or anytext editor of ur choice. type "start". save it as <anyNameOfUrChoice e.g win>.bat.
.Save it as a file only (select 'All files' in the file type list) .
- click on it, then type 'javac'.
if you see a screen full on nanshense, dont panic!! Your installation was successful if you see 'command not recognize' something went wrong..
I followed all the steps religiously.
But I still get errors when I type 'javac'
It shows something like "javac is not recognized as an internal or external comm........"
But when I type "Java -version" it gives the version.
Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 10:08am On Oct 21, 2017
TeddyC:
The JDK isn't enough.
To make anything other than console applications, You'll need an IDE (Integrated Development Environment ). There are many IDE's available for free online with eclipse( java) for desktop and android apps, netbeans( provides support for most programming languages ) and android studio the official IDE for android.
Thanks! I just downloaded eclipse smiley
But I have no idea how it works.
Can you throw a little light on how to use it?
Re: How Do I Get Java Development Kit On My System? by asalimpo(m): 8:31pm On Oct 21, 2017
LordeCalifornia:

I followed all the steps religiously.
But I still get errors when I type 'javac'
It shows something like "javac is not recognized as an internal or external comm........"
But when I type "Java -version" it gives the version.
There's an error because you've not added the compiler, javac, to your class path.
simiolu, gave examples.
Use some youtube videos (or google) for this, so that you could strengthen your hand and unguided learning.
If you encounter issues, come here for help - after you've really done all u could do and left no stone unturned.
edit:
simiolu's 10 step programme explained exactly how to set the classpath, dont waste your data on youtube.
when attaching the semi colon, dont include the quote marks ,"",just append the semicolon to the end of the path you copied and pasted.
Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 11:45pm On Oct 21, 2017
asalimpo:

There's an error because you've not added the compiler, javac, to your class path.
simiolu, gave examples.
Use some youtube videos (or google) for this, so that you could strengthen your hand and unguided learning.
If you encounter issues, come here for help - after you've really done all u could do and left no stone unturned.
edit:
simiolu's 10 step programme explained exactly how to set the classpath, dont waste your data on youtube.
when attaching the semi colon, dont include the quote marks ,"",just append the semicolon to the end of the path you copied and pasted.
Yeah. I attached the semicolon just as instructed.
I just downloaded Eclipse though, thats what I'd be using it to run my Java codes for now.
Re: How Do I Get Java Development Kit On My System? by asalimpo(m): 12:29am On Oct 22, 2017
LordeCalifornia:

Yeah. I attached the semicolon just as instructed.
I just downloaded Eclipse though, thats what I'd be using it to run my Java codes for now.
Learn how to be comfortable programming without an ide first b4 using one.
The benefits are that you dont suffer from ide-dependency that many ide trained programmers suffer from. They cant work on code without using an ide. It's crippling.
Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 10:42pm On Oct 22, 2017
asalimpo:

Learn how to be comfortable programming without an ide first b4 using one.
The benefits are that you dont suffer from ide-dependency that many ide trained programmers suffer from. They cant work on code without using an ide. It's crippling.
Cool. Thanks.
Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 6:17pm On Oct 23, 2017
asalimpo:

Learn how to be comfortable programming without an ide first b4 using one.
The benefits are that you dont suffer from ide-dependency that many ide trained programmers suffer from. They cant work on code without using an ide. It's crippling.
I've rectified the Javac issue. cheesy
I can now run my java files via Command Line.
Re: How Do I Get Java Development Kit On My System? by LordeCalifornia: 6:20pm On Oct 23, 2017
simiolu1:


If you will ever become a good programmer, having internet access is very crucial.

But to set your classpath

1. Go to the directory where the jdk is installed. Open the "bin" folder.
Click inside the windows explorer address bar to reveal the full address of the directory. Copy the address.
2. Press the Windows key on your keyboard and type "environment variables".
3. Click " edit system environment variables".
To do this, the OS would verify if you have administrator privileges.
4. On the resulting pop-up screen, click "environment variables". It is located just above the OK and Cancel buttons.
5. On the resulting pop-up dialog, scroll down the " system variables" tab. Look for "Path".
6. Once you see " Path" click on it once to highlight it then click "Edit".
7. Navigate the cursor to the last position.
Prrssing " End" on your keyboard is faster than using the directional keys.
Type a semicolon " ;" then paste the address of the folder you copied earlier.
There should not be a space between the semi colon and what you paste.
8.Click OK. To apply changes. Click OK again and again till the "System Properties" window closes.
9. Open Command Prompt.
10. Type "javac"
If you followed all the steps correctly, this command would execute without errors.

You can also do "javac -version" to know the version of the jdk you have installed.

Happy coding
I've finally rectified it.
I missed a point in the instructions earlier on.

Thanks for painstakingly listing out the steps.
Gracias!
Re: How Do I Get Java Development Kit On My System? by asalimpo(m): 6:51pm On Oct 23, 2017
LordeCalifornia:

I've rectified the Javac issue. cheesy
I can now run my java files via Command Line.
Congrats, you should pop champaigne. It took me about 6hours to figure it out when i got started.
Frustration couldnt describe d feeling.
Re: How Do I Get Java Development Kit On My System? by simiolu1(m): 9:22pm On Oct 23, 2017
LordeCalifornia:
I've finally rectified it. I missed a point in the instructions earlier on.
Thanks for painstakingly listing out the steps. Gracias!
Correct!!!

(1) (2) (Reply)

Why Nigerian Apps Are ALWAYS Buggy / Native JAVA Android Developers - Let Us Discuss Techie Stuffs / How To Be A Unique And World Class Programmer?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 104
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.