Sabtu, 29 Oktober 2016

Java Environment Setup

Java Environment Setup

Try it Option Online

You really do not need to set up your own environment to start learning Java programming language. Reason is very simple, we already have setup Java Programming environment online, so that you can compile and execute all the available examples online at the same time when you are doing your theory work. This gives you confidence in what you are reading and to check the result with different options. Feel free to modify any example and execute it online.

Try following example using Try it option available at the top right corner of the below sample code box:

public class HelloWorld {
� � public static void main(String[] args) {
� � � � System.out.println("Hello, World");
� � }
}
For most of the examples given in this tutorial, you will find Try it option, so just make use of it and enjoy your learning.

Local Environment Setup

If you are still willing to set up your environment for Java programming language, then this section guides you on how to download and set up Java on your machine. Please follow the following steps to set up the environment.

Java SE is freely available from the link Download Java. So you download a version based on your operating system.

Follow the instructions to download java and run the .exe to install Java on your machine. Once you installed Java on your machine, you would need to set environment variables to point to correct installation directories:

Setting up the path for windows 2000/XP:

Assuming you have installed Java in c:\Program Files\java\jdk directory:

Right-click on 'My Computer' and select 'Properties'.
Click on the 'Environment variables' button under the 'Advanced' tab.
Now, alter the 'Path' variable so that it also contains the path to the Java executable. Example, if the path is currently set to 'C:\WINDOWS\SYSTEM32', then change your path to read 'C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin'.
Setting up the path for windows 95/98/ME:

Assuming you have installed Java in c:\Program Files\java\jdk directory:

Edit the 'C:\autoexec.bat' file and add the following line at the end:
'SET PATH=%PATH%;C:\Program Files\java\jdk\bin'
Setting up the path for Linux, UNIX, Solaris, FreeBSD:

Environment variable PATH should be set to point to where the Java binaries have been installed. Refer to your shell documentation if you have trouble doing this.

Example, if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export PATH=/path/to/java:$PATH'

Popular Java Editors:

To write your Java programs, you will need a text editor. There are even more sophisticated IDEs available in the market. But for now, you can consider one of the following:

Notepad: On Windows machine you can use any simple text editor like Notepad (Recommended for this tutorial), TextPad.
Netbeans:is a Java IDE that is open-source and free which can be downloaded from http://www.netbeans.org/index.html.
Eclipse: is also a Java IDE developed by the eclipse open-source community and can be downloaded from http://www.eclipse.org/.

Java

Java - Overview

Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems' Java platform (Java 1.0 [J2SE]).

As of December 2008, the latest release of the Java Standard Edition is 6 (J2SE). With the advancement of Java and its widespread popularity, multiple configurations were built to suite various types of platforms. Ex: J2EE for Enterprise Applications, J2ME for Mobile Applications.

Sun Microsystems has renamed the new J2 versions as Java SE, Java EE and Java ME respectively. Java is guaranteed to be Write Once, Run Anywhere.

Java is:

Object Oriented: In Java, everything is an Object. Java can be easily extended since it is based on the Object model.
Platform independent: Unlike many other programming languages including C and C++, when Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code. This byte code is distributed over the web and interpreted by virtual Machine (JVM) on whichever platform it is being run.
Simple:Java is designed to be easy to learn. If you understand the basic concept of OOP Java would be easy to master.
Secure: With Java's secure feature it enables to develop virus-free, tamper-free systems. Authentication techniques are based on public-key encryption.
Architectural-neutral :Java compiler generates an architecture-neutral object file format which makes the compiled code to be executable on many processors, with the presence of Java runtime system.
Portable:Being architectural-neutral and having no implementation dependent aspects of the specification makes Java portable. Compiler in Java is written in ANSI C with a clean portability boundary which is a POSIX subset.
Robust:Java makes an effort to eliminate error prone situations by emphasizing mainly on compile time error checking and runtime checking.
Multithreaded: With Java's multithreaded feature it is possible to write programs that can do many tasks simultaneously. This design feature allows developers to construct smoothly running interactive applications.
Interpreted:Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The development process is more rapid and analytical since the linking is an incremental and light weight process.
High Performance: With the use of Just-In-Time compilers, Java enables high performance.
Distributed:Java is designed for the distributed environment of the internet.
Dynamic: Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time.
History of Java:

James Gosling initiated the Java language project in June 1991 for use in one of his many set-top box projects. The language, initially called Oak after an oak tree that stood outside Gosling's office, also went by the name Green and ended up later being renamed as Java, from a list of random words.

Sun released the first public implementation as Java 1.0 in 1995. It promised Write Once, Run Anywhere (WORA), providing no-cost run-times on popular platforms.

On 13 November 2006, Sun released much of Java as free and open source software under the terms of the GNU General Public License (GPL).

On 8 May 2007, Sun finished the process, making all of Java's core code free and open-source, aside from a small portion of code to which Sun did not hold the copyright.

Tools you will need:

For performing the examples discussed in this tutorial, you will need a Pentium 200-MHz computer with a minimum of 64 MB of RAM (128 MB of RAM recommended).

You also will need the following softwares:

Linux 7.1 or Windows 95/98/2000/XP operating system.
Java JDK 5
Microsoft Notepad or any other text editor
This tutorial will provide the necessary skills to create GUI, networking, and Web applications using Java.

Try It Option:

We have provided you an option to compile and execute available code online. Just click on Try it button avaiable at top-right corner of the code window to compile and execute available code. There are certain examples which can not be executed online, so we have skipped those examples.

public class HelloWorld {
� � public static void main(String[] args) {
� � � � System.out.println("Hello, World");
� � }
}
There may be a case that you do not see the result of the compiled/executed code, in such case you can re-try to compile and execute the code using execute button available in compliation pop-up window.

What is Android?

What is Android?

Android is a software stack for mobile devices that includes an operating system, middleware and key applications.
The Android OS is a Linux based operating system.
The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.
The Android Platform embraces the idea of general-purpose computing for handheld devices.
Android's libraries cover telephony, video, graphics, UI programming, and a number of other aspects of the device.
Android is an operating system developed by Google that is dedicated to mobile devices.
Android core libraries are written in C ,C++ and Java.
Android platform is written in Java.
Android uses a virtual machine - Dalvik.
Android offers a set of APIs in the Java language for application developers.

Create A Membership Site

Way No 6 - Create A Membership Site

What is a Membership Site?

A membership site is a private website, with exclusive content available only to the signed up members.

It usually provides members with the ability to interact with each other. They pay a monthly fee for being a member of the website.

Suitable For -

People who like to interact with, guide and lead a community.

Skills Required -

1. In-depth knowledge of any particular domain.

2. Ability to research new things and constantly generate new and helpful content.

Time Required For Creating A Membership Site -

Depends on the domain expertise of the creator.

Do Google search for Matthew Woodward's tutorial on how to create a membership site for free.

Tips -

1. In the beginning keep the fee for joining the membership site ridiculously low.

Aim to create a minimum viable product instead of creating a perfect product. You can always improve your site in later stages.

2. If you’ve never been a part of any membership site till now, consider joining a few related to your domain. Study those sites.

3. Find what’s working well for you and other members of that site? What’s makes it worth the monthly fee and how could you replicate this?

4. Interact and engage with members. Your membership site shouldn’t be the one that only drip feeds the content, with little or no input from the owner.

You must provide insider access for your members who want to communicate with you.

Even if you’re busy, you must spend at least half an hour a day to get involved with your membership site.

You can do this by many ways, such as you can interact with the members answer their questions or even lead an interaction inside the forum.

5. Run group events and challenges to increase members’ engagement with your site.

Organize regular events, challenges, or similar.

Make it easy for members to participate. Offer prizes, display leaderboards or similar such things creates a great incentive for members to participate and get involved.

6. Periodically review what’s working and what isn’t. Try to adapt the site based on the member's’ needs.

For e.g. If you offer most of your content in text format but your members are engaging more with the video content then shift from text-based to video content.

7. Try to introduce new initiatives and see how your audience is responding to it. Such as live Q&A calls or similar.

But be careful, don’t overwhelm members with several different initiatives at once. Introduce one thing at a time.

How To Monetize -

Monetization is very simple. More members sign up to your website more income you generate from the monthly fees that members pay.

Create A Membership Site

Way No 6 - Create A Membership Site

What is a Membership Site?

A membership site is a private website, with exclusive content available only to the signed up members.

It usually provides members with the ability to interact with each other. They pay a monthly fee for being a member of the website.

Suitable For -

People who like to interact with, guide and lead a community.

Skills Required -

1. In-depth knowledge of any particular domain.

2. Ability to research new things and constantly generate new and helpful content.

Time Required For Creating A Membership Site -

Depends on the domain expertise of the creator.

Do Google search for Matthew Woodward's tutorial on how to create a membership site for free.

Tips -

1. In the beginning keep the fee for joining the membership site ridiculously low.

Aim to create a minimum viable product instead of creating a perfect product. You can always improve your site in later stages.

2. If you’ve never been a part of any membership site till now, consider joining a few related to your domain. Study those sites.

3. Find what’s working well for you and other members of that site? What’s makes it worth the monthly fee and how could you replicate this?

4. Interact and engage with members. Your membership site shouldn’t be the one that only drip feeds the content, with little or no input from the owner.

You must provide insider access for your members who want to communicate with you.

Even if you’re busy, you must spend at least half an hour a day to get involved with your membership site.

You can do this by many ways, such as you can interact with the members answer their questions or even lead an interaction inside the forum.

5. Run group events and challenges to increase members’ engagement with your site.

Organize regular events, challenges, or similar.

Make it easy for members to participate. Offer prizes, display leaderboards or similar such things creates a great incentive for members to participate and get involved.

6. Periodically review what’s working and what isn’t. Try to adapt the site based on the member's’ needs.

For e.g. If you offer most of your content in text format but your members are engaging more with the video content then shift from text-based to video content.

7. Try to introduce new initiatives and see how your audience is responding to it. Such as live Q&A calls or similar.

But be careful, don’t overwhelm members with several different initiatives at once. Introduce one thing at a time.

How To Monetize -

Monetization is very simple. More members sign up to your website more income you generate from the monthly fees that members pay.

Sell Websites On Flippa

Way No 7 - Sell Websites On Flippa

What is Flippa.com?

Flippa.com is an online marketplace for selling and buying websites.

Suitable For -

People who like to develop websites.

Skills Required -

In-depth knowledge of Wordpress platform and website creation.

Time Required For Creating A Website -

Depends on the expertise of the developer in website creation.

Tips -

1. Choose a topic you are passionate about. You need to be passionate about the subject your website focuses on.

If you launch a website about something that you don’t care about, you will lose interest very quickly and inevitably stop working on it.

2. Think about your long-term business model.

To make your website successful you should do a lot of research beforehand.

Try to find the answers to the following questions:

Who are your direct competitors?
How do your competitors make money?
How will your website make money?
How can you make your website stand out from others?
How long will it take to monetize your website?
3. Choose a domain name that is relevant to your topic and appeal to your target audience.

A good domain name is an essential part of branding your blog. Choose .COM as your domain extension because it looks more professional.

4. Choose a reliable paid host like Hostgator, Bluehost or anyone that might suit your needs.

5. You need make your website's design and layout look very professional.

Believe it or not but first-time visitors will make a judgement about your website within first 10 seconds of loading, so you need to make sure that your website’s design appeals to them and they like it.

How To Monetize -

1. Register your website on flippa.com. Flippa works on bidding model, the highest bidder gets the ownership of the website.

2. Set the bid price of your website 15 times greater than the current monthly income of your site.

For e.g. If your site is earning $500 per month then you can set the basic selling bid price of your site to at least $7500.

3. Start the auction and wait for bids. People will start bidding for purchasing your site.

Once you receive the bid that satisfies your target selling price, then finalize the deal with the bidder.

4. Flippa.com will manage all the payment and other technical stuff for you and you'll receive your commissions via your selected payment method.

Sell A Video Course On Udemy

Way No 8 - Sell A Video Course On Udemy

What is Udemy.com?

Udemy is an online learning marketplace.

It has a huge collection of courses in everything from programming to yoga to photography and much more.

You can create a course in text, audio and video formats. Every course is available on demand and students can learn at their own pace, on their own time and on any device.  

Suitable For -

People who like to teach, explain and solve problems.

Skills Required -

1. In-depth knowledge of any domain of your choice.

2. Ability to express knowledge in easily understood form.

3. Ability to create and record high-quality videos.

Time Required For Creating A Video Course -

Depends on the scope of the course, number of modules included and time required for preparation.

Tips -

1. Pick a topic in which you are specialized in.

2. Study the courses relevant to your topic and see how many people are interested and have actually enrolled in the courses.

This will give you a rough understanding of the people who are interested in your topic and willing to invest in your course.

3. Study the other available courses and find out the things which you can offer that will make your course much better, different than other available courses.

4. Identify your audience level and then create the course content.

For e.g. You need to first decide whether your course is for a beginner level or an expert level audience.

Then accordingly you need to create your course content which appeals to the right audience.

5. Make sure your course title and description is optimized for appealing your target audience.

Try to answer the frequent questions that your audience asks in your course description.

6. Deliver at least 80% of your course in video format as it is the most engaging way of interaction.

Also keep the length of each video lesson between 2-10 minutes.

7. Build a rapport with the audience, and engage. You can always do a quiz ups between lectures to make it engrossing and interactive.

How To Monetize -

1. Udemy gets a lot of daily visitors so there is a good chance that your course will get noticed and people will enroll in and you will start earning money.

2. You can even start a small blog on your course-related topics and promote your course.

3. More people sign up for your course more money you make.

Chuyên mục văn hoá giải trí của VnExpress

.

© 2017 www.blogthuthuatwin10.com

Tầng 5, Tòa nhà FPT Cầu Giấy, phố Duy Tân, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội
Email: nguyenanhtuan2401@gmail.com
Điện thoại: 0908 562 750 ext 4548; Liên hệ quảng cáo: 4567.