Start Learning Java

Posted by in Java tutorials
learn java programming

Command line compilation (Windows)

So welcome to the most curious! Before you learn how to compile and run a command line program, you will have to JDK ( J ava SE D evelopment K it). It is with this that we will have something compile our programs. The necessary for the implementation of programs is in the JRE … but it is also included in the JDK. I invite you to return to the Oracle site and download it. Once this is done, it is advisable to update your environment variable % PATH% . and that’s how you start to learn java.

Uh … what?

Your “environment variable.” It is through it that Windows executable without the need to specify it the full path. You – well, Windows – are many, but we are only interested in only one. Basically, this variable contains the path to certain programs.

For example, if you specify the path to an X program in your environment variable and that an unhappy chance, you no longer have any shortcut to X, you have definitely lost in the maze of your PC. Well you can start by Start> Run and typing X.exe (assuming that the executable name is “X.exe” </ minicode> .

Okay, but how is it done? And why should we do that for the JDK? it is a very important question to learn java programming.

I’m getting there. Once your JDK installed, open the directory bin of it, as well as your JRE. We will dwell on two files.

In the directory bin of your JRE, you must have a file named java.exe , which you also find in the directory bin of your JDK. It is through this file that your computer can run your programs through the JVM. The second is only found in the directory bin of your JDK, it is javac.exe (Java compiler). It is this that will pre-compile your Java byte code programs.

Why update the environment variable to the JDK? Well, compile and run from the command line is equivalent to using these two files by specifying them where the files to process are located. This means that if we do not update the Windows environment variable, we would have:

With our updated environmental variable, we will not have to:

There’s a lot more to learn java online but now just go to your PC’s Control Panel; there, click on the icon System  ; select the tab Advanced and you should see a button named downstairs Environment Variables  : click it. A new window opens. In the lower section titled System variables , find the variable Path . Once selected, click Edit . Again, a window, a smaller one, opens before you. It contains the name of the variable and its value.

Do not change the name and do not delete its content! We’ll just add a path.

To do this, go to the end of the variable’s value, add a semicolon if there is none and add the path to the directory bin of your JDK, ending celui- it by a semicolon! At home, it gives this: C: Sun SDK jdk bin .

Previously, my environment variable contained before I added:


And now:


Accept the changes: you are now ready to compile the command line.

Ideally, go to the directory of your first program and delete the .class . Then do Start> Run (or key Windows + R and type “cmd”.

In the command prompt, you move from folder to folder with the instruction cd . cd <name of child folder> to go in a folder in one in which we find ourselves, cd .. to go back one folder in the hierarchy.


For example, when I open the console, I am in the folder C: foo titi and my application is in the folder C: sdz , so I do:

cd ..

cd ..

cd sdz

After the first statement, I find myself in the folder C: foo . With the second statement, I get to the root of my drive. Via the third instruction, I find myself in the folder C: sdz . We are now in the folder containing our Java file! That said, we could condense this by:

cd ../../sdz

Now you can create your file .class by running the following command:

javac <>

If in your case you have a file , compile it by doing:


And if you have no error message, you can verify that the file Test.class is present using the instructiondir that lists the contents of a directory. This is done, you can launch your Java program by making the following:

java <nomFichierClassSansExtension>

This gives us:

java test

And normally the result of your Java program appears under your very eyes!

Warning: do not put the file extension to start it, but it must be put to compile it.

Voilà: you compiled and run a Java program from the command line … You could see that there is nothing really complicated and, who knows, you’ll might need someday.

In summary


and this is how to learn java. and the best way to learn java as well.

Java Programming Tutorial – 29 – Summing Elements of Arrays

Posted by in Java News

Visit my website at for all of my videos and tutorials!
Have questions or looking for source code? Check out the forum at

My Profile –
Facebook –
Google+ –
Twitter –!/bucky_roberts
Donate –

Java Programming – 44 – String Methods

Posted by in Java News

This tutorial covers many of the practical operations that we can perform on Strings via their methods. Thanks for watching!

Speed Coding: Pong in C++ AND Java | Which is Better?

Posted by in Java News

Follow me on Twitter for tweets about coding!

Today I take on the challenge of coding the classic arcade game, Pong, in both C++ and Java continuously. I then conclude an opinion on what I personally think which language is better for simple game programming.

I know the code was very sloppy, as I was just going as fast as possible (kind of). Also, a good portion of the Java code was the setters and getters of the classes, which wasn’t added in C++, so the amount of code were similar. However, I felt like coding in C++ was more organized than Java.

C++ Programming starts at 0:28
JAVA Programming starts at 9:44
Final results start at 16:11
C++ w/ SFML Library on Visual Studio 2012

Java using JCL default library on Eclipse

Music :
Ivan B – She Gotta Stay
Hoodie Allen – The Chase is on lyrics
Ivan B – What’s The Plan
Ivan B – About You (Prod. Tido Vegas)
Ivan B – You’ll Be Alright (Prod. Tido Vegas)

Java Programming Tutorial – 64 – JCheckBox

Posted by in Java News

Visit my website at for all of my videos and tutorials!
Have questions or looking for source code? Check out the forum at

My Profile –
Facebook –
Google+ –
Twitter –!/bucky_roberts
Donate –

Advanced Java Programming Tutorial [ COMPLETE TRAINING ]

Posted by in Java News

Advanced Java Programming Tutorial For Beginners 2015 [ COMPLETE TRAINING ] Java Advanced Training shows developers how to expand their programming skills and get more out of Java. This course offers platform- and framework-neutral tutorials that can be used to build web, mobile, and desktop applications. Starting with advanced methods of defining Java classes and programmatic flow, author David Gassner goes on to describe the Java Reflection API and the Collections Framework; management of files and directories; test-driven development with advanced exception handling and reporting; and how to work with multiple threads.
Topics include:
Installing Java on Windows and Mac OS X
Installing Eclipse
Using new features such as simplified generics
Working with advanced class structures (member, local inner, etc.)
Using the Reflection API
Navigating inheritance trees
Managing unordered and ordered sets
Peeking and polling with queues
Testing and error handling
Managing files and directories
Working with I/O streams
Next steps with Java
advanced java programming
advanced java programming tutorial
advanced java programming examples
advanced java program
advanced java programs
advanced programming java
java advanced programming
advanced java programing
advanced programming in java
what is advanced java programming
advanced java programming course
java programming advanced
java programming advanced topics
advanced java tutorials
advanced java tutorial for beginners
advance java tutorial
java advanced tutorial
advance java tutorials
java advanced tutorials
advanced java tutorial with examples
java tutorial advanced
w3schools advanced java tutorial
java advanced imaging tutorial
advanced java
advanced java script
advanced java code
what is advanced java
advanced java for beginners
learn advanced java
learning advanced java
how to learn advanced java
learn advanced java online
learn advanced javascript
learn java advanced
java complete tutorial
java tutorial for complete beginners
complete java tutorials
java for complete beginners
complete java video tutorials courses
complete java
learn complete java
complete java course
java servlet tutorials
servlet programs
servlet program in java
servlet programming in java
how to create servlet in java
jsp video tutorial
advanced jsp tutorial
jsp programming tutorial
jsp advanced tutorial
jsp online tutorial
servlet & jsp: a tutorial
java tutorials
java tutorial
the java tutorial
oracle java tutorial
java applet tutorial
tutorial java
the java tutorials
adv java tutorial
java me tutorial
sun java tutorial
tutorial for java
tutorials java
tutorial on java
tutorial of java
tutorials for java
tutorials on java
java tutorial site
java tutorial 1
java se tutorials
tutorials of java
tutorial in java
this java tutorial
tutorials in java

Java Programming Tutorial Session 1 Introduction to oop and Java Programming for Beginners Part 1

Posted by in Java News

The power point of this video can be downloaded from

This video is part of Java Tutorial Series from In this video i have given the

introduction to object oriented programming and I gave a good introduction to java programming.

The agenda of this video is to explain about the types of programming that were existing like

unstructured programming, structured programming, procedural programming, Modular programming and

then Object oriented programming. I gave a good explanation about the features of OOP like

Inheritance, Polymorphism, Encapsulation, Abstraction. This video will be of great help for java

begineers. This java tutorial advantages of java programming and talks about the architecture of

java about how java has achieved platform independence.

James Gosling invented java in 1991 in sun microsystems. Java is an object oriented programming language which can be executed on any platform. Java is one the most powerful object oriented programming languages in the industry.

In this java tutorial i have also explained about how java has maintained the memory management using the Garbage collection.

This series of java tutorials also help those people who are preparing for SCJP. For those preparing for Sun certified java programmer certification can subscribe to my channel for more videos that will be uploaded in future.

Java Programming Tutorial – 10 – If Statement

Posted by in Java News

Visit my website at for all of my videos and tutorials!
Have questions or looking for source code? Check out the forum at

My Profile –
Facebook –
Google+ –
Twitter –!/bucky_roberts
Donate –

Java Programming Tutorial – 25 – Math Class Methods

Posted by in Java News

Visit my website at for all of my videos and tutorials!
Have questions or looking for source code? Check out the forum at

My Profile –
Facebook –
Google+ –
Twitter –!/bucky_roberts
Donate –

Java – Sockets – Introduction – 1 of 3

Posted by in Java News

Java – Sockets programming – an introduction. A simple client and server example. 1 of 3.

How to use NetBeans for Java programming

Posted by in Java News

‹ previous posts

Hi, guest!