21 November, 2010

My first java applet program

              This is a blog about embedding a simple java applet inside a web page. A java applet is actually a runnable java program that can be embedded in a website for showing some graphics or making the web page interactive. It all runs by itself and any modern web browser with java plugin can run applets. So we create a sample java program first and then compile it to make the .class file ie the runnable. Then this runnable is embedded in the web page in a mechanism similar to embedding pictures inside the html file using html tags.

So before you starting the applet programming you need a java programming environment within your system including javac compiler and Java Runtime Environment.

I started doing the applet programming as it is a topic in my Web Commerce paper. Still i didn't got enough time to invest for it, but here is the basic things that I came across while discovering the kick of applets with my ubuntu box... 
1. First open up your text editor and paint all the code inside it, save it with .java extension. Use the code snippet  below or download from here,
Read rest of entry

10 September, 2010

How to install NetBeans IDE 6.9.1 in Ubuntu 10.04


How to install java runtime environment in Ubuntu
NetBeans IDE is an open-source, fast and feature full tool for developing Java software. It runs on any operating system where a Java Virtual Machine is available. NetBeans helps to develop java applications and projects with ease and good user friendly environment. Here is the right mechanism to install NetBeans IDE in Ubuntu. You should have to install a Java Virtual Machine in the computer before installing NetBeans.

Install Java Runtime Environment in Ubuntu 10.04

1.Open the terminal and add the following repository

   $ sudo add-apt-repository "deb http://archive.canonical.com/ lucid  partner"    

2. Update the apt:

$ sudo apt-get update

3. Now install Sun Java packages using command: 

$ sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts



Install NetBeans IDE 6.9.1 in Ubuntu 10.04

Download the latest version of the NetBeans IDE binaries from the link here. The versions available from synaptic or apt-get is usually out-of-date from the version available directly from NetBeans. So the best way to get the latest version is to download the binaries directly from the NetBeans website and execute it in your machine.

><      Download the binary corresponding to Java SE.


><       After the download is complete, take the  terminal and change to the directory where the file is downloaded, usually that may be in your Downloads folder.

$ cd  /home/your_username/Downloads


><      Now install the NetBeans IDE using the shell command as follows. Change the filename with the one corresponding to the file downloaded on to your machine.

$ sudo sh  ./netbeans-6.9.1-ml-javase-linux.sh

><       The terminal will initialize the NetBeans installer in Graphical mode after executing the above command. When installation is completed you can start creating your java application by taking the NetBeans IDE from Applications > Programming > NetBeans


Read rest of entry

05 June, 2010

How to setup your mobile phone to recieve email alerts (for Nokia)


                        You can read or write emails from your mobile phone without any phone browsers (wap/web) by following this post. All the gprs enabled mobile handsets of Nokia comes up with an email client which is similar to outlook express or evolution or thunderbird but with basic inbox features such as sending and receiving only. Inorder to get this client working properly you should have a gprs /edge connection to get connected to the pop server.

I started setting up my email client of Nokia 5200, which is a java based mobile phone. This tip is possible in almost all the java phones. The email  client in this phone has 3 custom folders, an archive folder and a junk folder..

Activating the email  account 

1.  From the Menu select the Messaging option. Scroll down the list to find the E-mail option. 

2.  Select the new account option to start. Then the phone will ask for email service that you have. Multiple accounts are possible. Let select the gmail now. Enter your account details in the text boxes. Dont append the @gmail at the end of the username.

3.  On the next window you have to enter the incoming and outgoing sever information...

Incoming server

servertype: POP
servername: pop.gmail.com
incoming username: your_username@gmail.com

Outgoing serever

servername: smtp.gmail.com
username & password : select the option 'same as the incoming '

4.  On the next window the phone will ask for retrieval settings. On the secure login option check the radio of 'automatic option'. This will prompt for the password when start retrieving the emails. Click on the OK button to complete the current step.

5.  You can add the signature portion to each of the email by clicking the optional advanced setting. Press OK to complete the settings and to start receiving email on your phone without any wap/web browsers.


Read rest of entry
 

Terminal Diary | techblog Copyright © 2009 Gadget Blog is Designed by jintu jacob Powered by Blogger