In this video I'm going to show you some basics in Eclipse,
if you have used Eclipse before, you can just skip this video.
When you run it for the first time,
you should choose your workspace folder. Your workspace folder will contain all of the project files
so you want to know where it's located.
You can select this if you don't want to be asked again.
This is the "Welcome" window,
you can disable it by clicking here. And I'm just going to close it.
And the first thing you should know is how to create a Java project.
So this is the package explorer area, and you can just right click in it, and go to New -> Java Project.
I'll name mine "JavaP" for example.
That's not very original but let's just go with it.
Then I'm going to go to the source package and add a new package.
Right click on the source package -> New -> Package.
One tip here: there is a naming convention in Java, that says that packages should start with a lowercase
letter, and classes should start with an upper case letter.
I'm gonna call this one just "package1", because "package" isn't allowed for some reason. And then I'm going
to create a Class.
This is going to be a simple "Hello World" class.
The first thing I'm going to show you is how to enable or disable line numbers.
You should go to Window -> Preferences, and then General editors -> Text Editors, and here's that option
I'm showing you this because if you're using an older version of Eclipse, your line numbers may be disabled
by default.
Also to choose a different font or make your letters bigger, you should go to Window -> Preferences -> Appearance ->
Colors and Fonts, and then go to Basic, and then go to Text Font.
I'm going to pick a bigger size and press "Apply and Close".
Now I want to show you how to import and export classes.
You'll need that because I'm going to save the code that we'll create in this course as classes. There
are two options: you can export the entire project, just right click on your project, and go "Export",
and then when you're importing it, go to this package explorer area, and click "Import". And then you'll
find your way because it's pretty intuitive. But the way we're going to do it is: every time we finish
a lesson I'm going to do this: I'm going to right click on the class, press "Copy",
paste it on my desktop - or any other folder - and then I'm going to upload that file - so this .java file -
into the lesson. You can import it by just dragging it into your package.
Now there is already HelloWorld.java here.
I'm going to delete that,
and then I'm going to drop the same file into my package and then that's going to work.
Now you have all the tools you need to start this course.
See you in your first lesson.