Books Related to Java Technology
Friday, January 23, 2009
Difference Between jre jvm and jdk
JDK (Java Development Kit)
JDK= JDK tools + JRE
JRE = JVM + Java Packages Classes(like util, math, lang, awt,swing etc)+runtime libraries.
JDK contains tools required to develop the Java programs, and JRE to run the programs. The tools include compiler (javac.exe), Java application launcher (java.exe), Appletviewer, etc…
JAVA Compiler converts java code into byte code. and java application launcher opens a JRE, loads the class, and invokes its main method.
If you want to write and compile your own programs, you need JDK. If you just want to run your java programs, JRE is sufficient. JRE is targeted for execution of Java files
You can create a Java file (with the help of Java packages), compile a Java file and run a java file. JDK is mainly targeted for java development.
JRE (Java Runtime Environment)
Java Runtime Environment contains JVM, class libraries, and other supporting files. It does not contain any development tools such as compiler, debugger, etc. Actually JVM runs the program, and it uses the class libraries, and other supporting files provided in JRE. If you want to run any java program, you need to have JRE installed in the system.
JVM(Java Virtual Machine)
The Java Virtual Machine provides a platform-independent way of executing code, programmers can concentrate on writing application, without having to be concerned with how or where it will run.
JDK Tools and Utilities
Basic Tools:
Internationalization Tools:
Java IDL and RMI-IIOP Tools:
Java Deployment Tools:
Java Plug-in Tools:
Java Web Start Tools:
For more details you can visit: http://www.worldinfosoft.com
This is a one of the best tutorial site, where you can find lots of example with full description of code and you can also prepare of your interview from this site WORLDINFOSOFT.COM.
- javac
- java
- javadoc
- apt
- appletviewer
- jar
- jdb
- javah
- javap
- extcheck
- keytool
- jarsigner
- policytool
- kinit
- klist
- ktab
Internationalization Tools:
- native2ascii
- rmic
- rmiregistry
- rmid
- serialver
Java IDL and RMI-IIOP Tools:
- tnameserv
- idlj
- orbd
- servertool
Java Deployment Tools:
- pack200
- unpack200
Java Plug-in Tools:
- htmlconverter
Java Web Start Tools:
- javaws
For more details you can visit: http://www.worldinfosoft.com
This is a one of the best tutorial site, where you can find lots of example with full description of code and you can also prepare of your interview from this site WORLDINFOSOFT.COM.
Saturday, January 17, 2009
Insert & Retrieve Image using Servlet
This article show to you how to insert blob type image into mysql database table by using servlet and how to retrieve the image from table and display it on the browser. In this example servlet is used because it dynamically process the request and generate a response for java programming language. The API of the java servlet allow to software developer to add dynamic content to a web server using java. The main advantage of java servlet is, it can be executed to handle request and response objects and it can run independently.
Now, you follow these steps to insert and retrieve image from database table:
1. Create table in your database follow this query:
CREATE TABLE `picture` (
`id` int(10) NOT NULL auto_increment,
`image` blob,
PRIMARY KEY (`id`)
)
2. create a servlet to insert the image:
3. create web.xml file in WEB-INF folder of your tomcat server and put this code:
4. create one more servlet for retrieve image from database table
5. put this code in to your web.xml file:
6. Compile both servlet file into classes folder by command prompt as:
E:\apache-tomcat-6.0.14\webapps\sandeep\WEB-INF\classes> javac InsertImage.java
and
E:\apache-tomcat-6.0.14\webapps\sandeep\WEB-INF\classes> javac RetreiveImage.java
7. Run your server by startup.bat file
8. Open your browser and type on url address:
http:\\localhost:8080\sandeep\InsertImage
then you will got a success message
9. and then run the RetreiveImage servlet to display your image on browser by
http:\\localhost:8080\sandeep\RetreiveImage
10. Finally you will see the image on your browser

For more details you can visit: http://www.worldinfosoft.com
This is a one of the best tutorial site, where you can find lots of example with full description of code and you van also prepare of your interview from this site WORLDINFOSOFT.COM.
Now, you follow these steps to insert and retrieve image from database table:
1. Create table in your database follow this query:
CREATE TABLE `picture` (
`id` int(10) NOT NULL auto_increment,
`image` blob,
PRIMARY KEY (`id`)
)
2. create a servlet to insert the image:
|
3. create web.xml file in WEB-INF folder of your tomcat server and put this code:
|
4. create one more servlet for retrieve image from database table
|
5. put this code in to your web.xml file:
|
6. Compile both servlet file into classes folder by command prompt as:
E:\apache-tomcat-6.0.14\webapps\sandeep\WEB-INF\classes> javac InsertImage.java
and
E:\apache-tomcat-6.0.14\webapps\sandeep\WEB-INF\classes> javac RetreiveImage.java
7. Run your server by startup.bat file
8. Open your browser and type on url address:
http:\\localhost:8080\sandeep\InsertImage
then you will got a success message
9. and then run the RetreiveImage servlet to display your image on browser by
http:\\localhost:8080\sandeep\RetreiveImage
10. Finally you will see the image on your browser

For more details you can visit: http://www.worldinfosoft.com
This is a one of the best tutorial site, where you can find lots of example with full description of code and you van also prepare of your interview from this site WORLDINFOSOFT.COM.
Monday, January 5, 2009
JDBC Insert Query Example
|
JDBC Update Query Example
|
Sunday, January 4, 2009
JDBC Prepared Statement Example
|
MySQL Create Database
- In this example we are creating a databse table for establishing the connection with MySQL database by using the JDBC driver. A database is a large collection of data or information stored in our computer in a specified manner. It helps us for accessing, managing and updating the data easily. A RDBMS (Relational Database Management System) is a type of DBMS (Database Management System) which stores the data in the form of tables. So, we can view and use the same database in many different ways.
The following example Shows to you how to create a database in MYSQL:
|
Subscribe to:
Posts (Atom)