Tuesday, 17 September 2013

How to create Executable jar file of java...




Step 1: Locate the Jar utility in the JDK folder
  • Before you do anything else, make sure that you have jdk installed on your computer. You also will need to know the directory to the jdk. Specifically, you will need the path to the Jar utility that is inside your jdk folder. My path to jar is:
·          C:\"Program Files"\Java\jdk1.6.0_02\bin\jar
    • As you can probably tell, I'm using Java 1.6 and within the 'bin' folder is jar which is the program that you will use to make jar files. Basically typing that line up above tells the command prompt that we're going to run the jar utility which is located in the folder C:\"Program Files"\Java\jdk1.6.0_02\bin
    • On your own computer, the path to the jar utility will probably look similar, it depends on where you installed the jdk to.
Step 2: Create themanifest file

Since you could potentially be compiling many files into one jar file, Java needs to know which one will have the main method. Our example is a bit more trivial since we're just compiling one class into a Jar. Nonetheless, the way that Java knows which of classes has the main method is from a single line in what's known as a manifest file. A manifest file can be a text file made with notepad. I called my manifest file manifest.txt, my manifest file says:
Main-Class: JarDemo


1)Use the command prompt to navigate to where the JarDemo.class and manifest.txt file are saved and type :
C:\>  C:\Path\to\jdk\bin\jar cvfm jarDemoCompiled.jar manifest.txt JarDemo.class
·  If you don't like always typing out the generally long path to the jdk. You can set the path as follows
  • c:> path c:\path\to\jdk\bin;%path%
Doing so would allow you to type
C:\>  jar cvfm jarDemoCompiled.jar manifest.txt JarDemo.class
When I don't usde the shortcut on my computer, I must type:
C:\>  C:\"Program Files"\Java\jdk1.6.0_02\bin\jar cvfm jarDemoCompiled.jar manifest.txt JarDemo.class
cvfm means "create a jar; show verbose output; specify the output jar file name (jarDemoCompiled.jar); specify the manifest file name(manifest.txt) and use the file JarDemo.class to create the jar
 





Monday, 24 June 2013

search engines...


http://www.google.com/
http://www.bing.com/
http://www.search.yahoo.com/
http://www.ask.com/
http://www.mywebsearch.com/
http://www.blekko.com/
http://www.lycos.com/
http://www.dogpile.com/
http://www.webcrawler.com/
http://www.info.com/
http://www.infospace.com/
http://www.search.com/
http://www.excite.com/
http://www.goodsearch.com/

Saturday, 27 April 2013

 In Oracle About Data Replication and Integration:
 As organizations expand, it becomes increasingly important for them to be able to
share information among multiple databases and applications. Data replication and
integration enables you to access information when and where you need it in a
distributed environment. Oracle Database provides secure and standard mechanisms
that enable communication between databases, applications, and users. These
mechanisms include queues, data replication, messaging, and distributed access in
both homogeneous and heterogeneous environments.
This guide describes using distributed SQL, replication, and message queuing. You
can make efficient use of your computing resources by using these features to
complete the following types of tasks:
■ Replicate data between databases
■ Provide easy access to data in distributed databases
■ Exchange data between Oracle databases and non-Oracle databases
■ Enable communication between applications
■ Exchange information with customers, partners, and suppliers
■ Provide event notification and workflow

Oracle Database provides the following types of data replication and integration
solutions to address your specific requirements:
■ Consolidation: All data is moved into a single database and managed from a
central location. Oracle Real Application Clusters (Oracle RAC), Grid computing,
and Virtual Private Database (VPD) can help you consolidate information into a
single database that is highly available, scalable, and secure.
■ Federation: Data appears to be integrated in a single virtual database, while
actually remaining in its current distributed locations. Distributed queries,
distributed SQL, and Oracle Database Gateway can help you create a federated
database.
■ Sharing: Multiple copies of same information are maintained in multiple
databases and application data stores. Data replication and messaging can help
you share information at multiple databases.

Wednesday, 6 February 2013

ds lab ass

Definition

1 Write a program of Stack having Push, Pop, Change, Search, IsFull and IsEmpty functions
using array.

2 Write a program to convert given infix expression into postfix / reverse police / suffix
expression WITHOUT parenthesis.

3 Write a program to convert given infix expression into prefix / police expression WITHOUT
parenthesis.

4 Write a program to convert given infix expression into postfix / reverse police / suffix
expression WITH parenthesis.





5 Write a program to convert given infix expression into prefix / police expression WITH
parenthesis.


6 Write a program to convert the given string into reverse string using stack.
Sr. No. Definition

 7 Write a program to perform insert, delete and display operation of the queue using array.