Tuesday, February 3, 2009
Virus Protection
An anti-virus program is needed to protect your system from destructive software such as computer viruses, worms, and Trojan horses by removing them. This kind of software poses a danger to your system because it can erase important data or even cause it to crash.
Free antivirus programs are not as feature-rich as commercial products, but they do offer basic protection that can sometimes be extended if you are willing to pay. Generally, they are restricted to personal use. You can get this kind of free program from a vast variety of download sites like Download.com and Softpedia.
You can also buy them from companies like CliqueComputers. Most of these products offer an antispyware program and sometimes even a firewall program as well.
Fundamental information about viruses, Trojan horses, worms and antivirus programs can be found on Wikipedia.
Firewall
A firewall program, also called a "personal firewall", is needed to protect your system from unwanted attacks from the Internet and from software programs. Use of a firewall program is always advisable if your computer is connected to the Internet. It adds functionality to the firewall that is installed in your router in that it not only protects you from attacks ON your computer, but also attacks that can be unleashed FROM your computer onto the Internet. Such attacks can come, for example, from Trojan horses (see "Virus Protection") but also from software that you installed that sends your personal data to its manufacturer without authorization.
You can get a free firewall program, from virtually any major download site (e.g. Download.com and Softpedia)
Fundamental information about firewall programs and how they work can be found on Wikipedia.
Antispyware
An antispyware program is needed to protect your system from software that spies on your computer. For example, such software can be installed without your awareness while you are visiting a website and installing a different program from the same website. Most spyware programs observe such things as your browsing habits and the programs you tend to use and transfer that information to the spyware's developer. Use of an antispyware program is always advisable if your computer is connected to the Internet. Since spyware can also damage the functionality of your computer, it should always be removed. More and more antivirus programs and computer security programs on the market include an antispyware program or antispyware features.
We recommend that you use Windows Defender, included free of charge with the Windows operating system. Although some antispyware programs still have problems running under Windows Vista, you can still use such programs under Windows XP.
Find several free antispyware programs for download at sites like Download.com. You can get Windows Defender directly from Microsoft.
Monday, December 22, 2008
Java technology
An overview of the software development process.
Because the Java VM is available on many different operating systems, the same .class files are capable of running on Microsoft Windows, the Solaris TM Operating System (Solaris OS), Linux, or Mac OS. Some virtual machines, such as the Java HotSpot virtual machine, perform additional steps at runtime to give your application a performance boost. This include various tasks such as finding performance bottlenecks and recompiling (to native code) frequently used sections of code.
The Java Platform
A platform is the hardware or software environment in which a program runs. We've already mentioned some of the most popular platforms like Microsoft Windows, Linux, Solaris OS, and Mac OS. Most platforms can be described as a combination of the operating system and underlying hardware. The Java platform differs from most other platforms in that it's a software-only platform that runs on top of other hardware-based platforms.
The Java platform has two components:
- The Java Virtual Machine
- The Java Application Programming Interface (API)
You've already been introduced to the Java Virtual Machine; it's the base for the Java platform and is ported onto various hardware-based platforms.
- Get started quickly: Although the Java programming language is a powerful object-oriented language, it's easy to learn, especially for programmers already familiar with C or C++.
- Write less code: Comparisons of program metrics (class counts, method counts, and so on) suggest that a program written in the Java programming language can be four times smaller than the same program written in C++.
- Write better code: The Java programming language encourages good coding practices, and automatic garbage collection helps you avoid memory leaks. Its object orientation, its JavaBeansTM component architecture, and its wide-ranging, easily extendible API let you reuse existing, tested code and introduce fewer bugs.
- Develop programs more quickly: The Java programming language is simpler than C++, and as such, your development time could be up to twice as fast when writing in it. Your programs will also require fewer lines of code.
- Avoid platform dependencies: You can keep your program portable by avoiding the use of libraries written in other languages.
- Write once, run anywhere: Because applications written in the Java programming language are compiled into machine-independent bytecodes, they run consistently on any Java platform.
- Distribute software more easily: With Java Web Start software, users will be able to launch your applications with a single click of the mouse. An automatic version check at startup ensures that users are always up to date with the latest version of your software. If an update is available, the Java Web Start software will automatically update their installation
"Hello World!" for the NetBeans IDE
These instructions are for users of the NetBeans IDE. The NetBeans IDE runs on the Java platform, which means that you can use it with any operating system for which there is a JDK 6 available. These operating systems include Microsoft Windows, Solaris OS, Linux, and Mac OS X. We recommend using the NetBeans IDE instead of the command line whenever possible.
"Hello World!" for Microsoft Windows
These command-line instructions are for users of Windows XP Professional, Windows XP Home, Windows Server 2003, Windows 2000 Professional, and Windows Vista.
- The NetBeans IDE
Creating Your First Application
Your first application, HelloWorldApp, will simply display the greeting "Hello World!". To create this program, you will:
- Create an IDE project
When you create an IDE project, you create an environment in which to build and run your applications. Using IDE projects eliminates configuration issues normally associated with developing on the command line. You can build or run your application by choosing a single menu item within the IDE.
- Add code to the generated source file
A source file contains code, written in the Java programming language, that you and other programmers can understand. As part of creating an IDE project, a skeleton source file will be automatically generated. You will then modify the source file to add the "Hello World!" message.
- Compile the source file into a .class file
The IDE invokes the Java programming language compiler (javac), which takes your source file and translates its text into instructions that the Java virtual machine can understand. The instructions contained within this file are known as bytecodes.
- Run the program
The IDE invokes the Java application launcher tool (java), which uses the Java virtual machine to run your application.
Create an IDE Project
To create an IDE project:
- Launch the NetBeans IDE.
- On Microsoft Windows systems, you can use the NetBeans IDE item in the Start menu.
- On Solaris OS and Linux systems, you execute the IDE launcher script by navigating to the IDE's
bindirectory and typing./netbeans. - On Mac OS X systems, click the NetBeans IDE application icon.
- In the NetBeans IDE, choose File | New Project.