Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa SQL ALL Command in Java & SQL
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


MANOJ
ALL Command in Java & SQL
2 Answer(s)      6 years and 9 months ago
Posted in : SQL


Nee all commands in Java.


Advertisement
View Answers

February 26, 2008 at 4:12 PM


Dear Manoj,
I didn't get u

what do u mean by all command.
could u please be a bit clear for understanding ur question.

Thank u


February 26, 2008 at 5:10 PM


VARIOUS COMMANDS THAT ARE USED IN JAVA ARE GIVEN BELOW

1.javac

c:\ javac classname.java

A Java Compiler javac is a computer program or set of programs which translate java source code into java byte code.

Usage: javac <options> <source files>

where possible options include:

-g Generate all debugging info

-g:none Generate no debugging in

-g:{lines,vars,source} Generate only some debugging info

-nowarn Generate no warnings

-verbose Output messages about what the compiler is doing

-deprecation Output source locations where deprecated APIs are u

sed

-classpath <path> Specify where to find user class files and annotation processors

-cp <path> Specify where to find user class files and annotati

on processors

-sourcepath <path> Specify where to find input source files

-bootclasspath <path> Override location of bootstrap class files

-extdirs <dirs> Override location of installed extensions

-endorseddirs <dirs> Override location of endorsed standards path

-proc:{none,only} Control whether annotation processing and/or compilation is done.

-processor <class1>[,<class2>,<class3>...]Names of the annotation processors t

o run; bypasses default discovery process

-processorpath <path> Specify where to find annotation processors

-d <directory> Specify where to place generated class files

-s <directory> Specify where to place generated source files

-implicit:{none,class} Specify whether or not to generate class files for

implicitly referenced files

-encoding <encoding> Specify character encoding used by source files

-source <release> Provide source compatibility with specified release



-target <release> Generate class files for specific VM version

-version Version information

-help Print a synopsis of standard options

-Akey[=value] Options to pass to annotation processors

-X Print a synopsis of nonstandard options

-J<flag> Pass <flag> directly to the runtime system



2. java

c:\ java classname

Java interpreter translate the Java bytecode into the code that can be understood by the Operating System.

Usage: java [-options] class [args...]

(to execute a class)

or java [-options] -jar jarfile [args...]

(to execute a jar file)



where options include:

-client to select the "client" VM

-server to select the "server" VM

-hotspot is a synonym for the "client" VM [deprecated]

The default VM is client.



-cp <class search path of directories and zip/jar files>

-classpath <class search path of directories and zip/jar files>

A ; separated list of directories, JAR archives,

and ZIP archives to search for class files.

-D<name>=<value>

set a system property

-verbose[:class|gc|jni]

enable verbose output

-version print product version and exit

-version:<value>

require the specified version to run

-showversion print product version and continue

-jre-restrict-search | -jre-no-restrict-search

include/exclude user private JREs in the version search

-? -help print this help message

-X print help on non-standard options

-ea[:<packagename>...|:<classname>]

-enableassertions[:<packagename>...|:<classname>]

enable assertions

-da[:<packagename>...|:<classname>]

-disableassertions[:<packagename>...|:<classname>]

disable assertions

-esa | -enablesystemassertions

enable system assertions

-dsa | -disablesystemassertions

disable system assertions

-agentlib:<libname>[=<options>]

load native agent library <libname>, e.g. -agentlib:hprof

see also, -agentlib:jdwp=help and -agentlib:hprof=help

-agentpath:<pathname>[=<options>]

load native agent library by full pathname

-javaagent:<jarpath>[=<options>]

load Java programming language agent, see java.lang.instrument



-splash:<imagepath>

show splash screen with specified image









3.javap

c:\ javap

This command provides the accessibility of the class members and other features given below .



Usage: javap <options> <classes>...



where options include:

-c Disassemble the code

-classpath <pathlist> Specify where to find user class files

-extdirs <dirs> Override location of installed extensions

-help Print this usage message

-J<flag> Pass <flag> directly to the runtime system

-l Print line number and local variable tables

-public Show only public classes and members

-protected Show protected/public classes and members

-package Show package/protected/public classes

and members (default)

-private Show all classes and members

-s Print internal type signatures

-bootclasspath <pathlist> Override location of class files loaded

by the bootstrap class loader

-verbose Print stack size, number of locals and args for methods

If verifying, print reasons for failure









4. apt (command of bin directory)

c:\apt

This command gives the information about the class path .

Usage: apt <apt and javac options> <source files>

where apt options include:

-classpath <path> Specify where to find user class files and annotati

on processor factories

-cp <path> Specify where to find user class files and annotati

on processor factories

-d <path> Specify where to place processor and javac generate

d class files

-s <path> Specify where to place processor generated source files

-source <release> Provide source compatibility with specified release



-version Version information

-help Print a synopsis of standard options; use javac -help for more options

-X Print a synopsis of nonstandard options

-J<flag> Pass <flag> directly to the runtime system

-A[key[=value]] Options to pass to annotation processors

-nocompile Do not compile source files to class files

-print Print out textual representation of specified types



-factorypath <path> Specify where to find annotation processor factories

-factory <class> Name of AnnotationProcessorFactory to use; bypasses

default discovery process

See javac -help for information on javac options.



5 .javah

c:\javah

This command include the header files that contains the methods .we need to implement some native methods. You must be wondering about what's native methods.
On the other hand, native methods are the only way to use any system features not provided by the Java Virtual Machine.

Usage: javah [options] <classes>

where [options] include:

-help Print this help message and exit
-classpath <path> Path from which to load classes
-bootclasspath <path> Path from which to load bootstrap classes
-d <dir> Output directory
-o <file> Output file (only one of -d or -o may be used)
-jni Generate JNI-style header file (default)
-version Print version information
-verbose Enable verbose output
-force Always write output files

<classes> are specified with their fully qualified names (forinstance, java.lang.Object).



6 . Javadoc

c:\javadoc classname.java

Javadoc is a program that is already included in JDK. We can use Javadoc to run over the source code to produce documentation of our classes in the HTML .



javadoc: error - No packages or classes specified.
usage: javadoc [options] [packagenames] [sourcefiles] [@files]
-overview <file> Read overview documentation from HTML file
-public Show only public classes and members
-protected Show protected/public classes and members (default)
-package Show package/protected/public classes and members
-private Show all classes and members
-help Display command line options and exit
-doclet <class> Generate output via alternate doclet
-docletpath <path> Specify where to find doclet class files
-sourcepath <pathlist> Specify where to find source files
-classpath <pathlist> Specify where to find user class files
-exclude <pkglist> Specify a list of packages to exclude
-subpackages <subpkglist> Specify subpackages to recursively load
-breakiterator Compute 1st sentence with BreakIterator
-bootclasspath <pathlist> Override location of class files loaded
by the bootstrap class loader
-source <release> Provide source compatibility with specified release
-extdirs <dirlist> Override location of installed extensions
-verbose Output messages about what Javadoc is doing
-locale <name> Locale to be used, e.g. en_US or en_US_WIN
-encoding <name> Source file encoding name
-quiet Do not display status messages
-J<flag> Pass <flag> directly to the runtime system

Provided by Standard doclet:
-d <directory> Destination directory for output files
-use Create class and package usage pages
-version Include @version paragraphs
-author Include @author paragraphs
-docfilessubdirs Recursively copy doc-file subdirectories
-splitindex Split index into one file per letter
-windowtitle <text> Browser window title for the documenation
-doctitle <html-code> Include title for the overview page
-header <html-code> Include header text for each page
-footer <html-code> Include footer text for each page
-top <html-code> Include top text for each page
-bottom <html-code> Include bottom text for each page
-link <url> Create links to javadoc output at <url>
-linkoffline <url> <url2> Link to docs at <url> using package list at <u
rl2>
-excludedocfilessubdir <name1>:.. Exclude any doc-files subdirectories with give
n name.
-group <name> <p1>:<p2>.. Group specified packages together in overview
page
-nocomment Supress description and tags, generate only de
clarations.
-nodeprecated Do not include @deprecated information
-noqualifier <name1>:<name2>:... Exclude the list of qualifiers from the output
.
-nosince Do not include @since information
-notimestamp Do not include hidden time stamp
-nodeprecatedlist Do not generate deprecated list
-notree Do not generate class hierarchy
-noindex Do not generate index
-nohelp Do not generate help link
-nonavbar Do not generate navigation bar
-serialwarn Generate warning about @serial tag
-tag <name>:<locations>:<header> Specify single argument custom tags
-taglet The fully qualified name of Taglet to register

-tagletpath The path to Taglets
-charset <charset> Charset for cross-platform viewing of generate
d documentation.
-helpfile <file> Include file that help link links to
-linksource Generate source in HTML
-sourcetab <tab length> Specify the number of spaces each tab takes up
in the source
-keywords Include HTML meta tags with package, class and
member info
-stylesheetfile <path> File to change style of the generated documentation
-docencoding <name> Output encoding name
1 error



7 . jdb

c:\jdb -help

Java debugger helps in finding and the fixing of bugs in Java language programs. The Java debugger is denoted as jdb.

Usage: jdb <options> <class> <arguments>

where options include:
-help print out this message and exit
-sourcepath <directories separated by ";">
directories in which to look for source files
-attach <address>
attach to a running VM at the specified address using standard connector
-listen <address>
wait for a running VM to connect at the specified address
using standard connector
-listenany
wait for a running VM to connect at any available address
using standard connector
-launch
launch VM immediately instead of waiting for 'run' command

-listconnectors list the connectors available in this VM
-connect <connector-name>:<name1>=<value1>,...
connect to target VM using named connector with listed argument values
-dbgtrace [flags] print info for debugging jdb
-tclient run the application in the Hotspot(tm) Performance Engine
(Client)
-tserver run the application in the Hotspot(tm) Performance Engine
(Server)

options forwarded to debuggee process:
-v -verbose[:class|gc|jni]
turn on verbose mode
-D<name>=<value> set a system property
-classpath <directories separated by ";">
list directories in which to look for classes
-X<option> non-standard target VM option

<class> is the name of the class to begin debugging
<arguments> are the arguments passed to the main() method of <class>

For command help type 'help' at jdb prompt



8 .Applet viewer

C:\ appletviewer classname.html

Applet viewer is a command line program to run Java applets. It is included in the SDK. It helps you to test an applet before you run it in a browser.


Related Tutorials/Questions & Answers:
ALL command - SQL
ALL Command in Java & SQL  Nee all commands in Java.  Dear Manoj, I didn't get u what do u mean by all command. could u please... classes and members -private Show all classes and members -help Display command
sql command question
sql command question  I have three tables as below: Table 1: options fields: optionsID, optionsCatID, name Table 2: optionCat fields: optionsCatID... this design is. Anyways I need to find out the sql command which can first see
Advertisements
iperf command in java
iperf command in java  How to write a code for iperf command in java
SQL All Tables
SQL All Tables       SQL All Tables is used to show all the tables in database. Understand with Example The Tutorial illustrate an example from 'SQL All Tables'. To understand
Java Command Line Input
Java Command Line Input  How to get input from command line in java ?   Hi please Find the code for inputting data from the command line System.out.println("Please Input A Number"); BufferedReader br
how to delete a row in sql without using delete command.
how to delete a row in sql without using delete command.  how to delete a row in sql without using delete command. thanks in advance
SQL UNION ALL Operator
SQL UNION ALL Operator       The SQL UNION ALL Operator is used to list all records... The Tutorial illustrates an example from SQL UNION  ALL Operator
Help on mySQL 5 command line - SQL
Help on mySQL 5 command line  Dear Sir, I had created a table... | +----+------+-------------------------? I want to use the command SELECT WORD, MIN(num_of_searches... | +------+----------------------+ What command for MIN should i used
help on mySQL 5 command Line - SQL
help on mySQL 5 command Line  Dear Sir, Sorry for my mistake... | +----+------+-------------------------?Ebr /> I want to use the command SELECT WORD, MIN(num... | +------+----------------------+ What command for MIN should i used? Thanks in advanced
What is command line argument in Java
What is command line argument in Java  What is command line argument in Java and how one can use it to create a program in Java? Can you post any example of command line argument program in Java?? It will be really helpful
What is the difference between UNION and UNION ALL in SQL?
What is the difference between UNION and UNION ALL in SQL?  What is the difference between UNION and UNION ALL in SQL?   Hi, UNION is an SQL keyword used to merge the results of two or more tables using a Select
chgrp command in java - Java Beginners
chgrp command in java  I used chgrp and chown two commands in java to change files properties like Runtime rt = Runtime.getRuntime(); String cmd = "/bin/chmod 777 " + exFile; Process proc = rt.exec(cmd); cmd = "/bin
Passing argument at command line using Core Java
How to pass Command Line Argument using Core Java Description : This example demonstrate how value accepted from the command line. All argument need...; } System.out.println("The Sum of All Elements entered at command line
SQL All Column Names
SQL All Column Names       SQL All Column Names is useful when you want to see the Field, Type, Null... on 'SQL All Column Names'. To understand and grasp the example we create a table
Command line argument in java
Command line argument in java. In this section we are going to discuss about command line argument in java. Command line argument allow a user to pass arguments at the time of running the application , after the class name. Java allow
This Query is no working in sql developer it is giving Ora-0933 exception SQL command not properly ended exception
This Query is no working in sql developer it is giving Ora-0933 exception SQL command not properly ended exception  SELECT * from employees ORDER BY first_name limit 0,10;   Hi Friend, Please clarify your problem
command line arguments - Java Beginners
command line arguments  how can i findout the minimum and maximum no's at the command prompt if i give some values?????????  hi friend... at the command prompt and then calculate the max and min numbers from them
Java Generic program with command line argument
Java Generic program with command line argument  Implement Generic to perform arithmetic evaluation using command line argument by using Java
SQL Backup Script
in specific komal database and backup of all the databases. Command for Backup of one... for Backup of all database: The below command is used to create a backup of all... SQL Backup Script      
Java memory options from command line
Java memory options from command line  Hi, How to use java memory options from command line? Thanks   Hi, Here is the example code: java -Xms1056m -Xmx1056m MyProgram Thanks
Java code to run unix command - Java Beginners
Java code to run unix command  Hi, I need a java code to connect to a remote unix server and run a unix command. Please help. Regards, Pratyush
Trouble in running Dos Command from Java Servlet
Trouble in running Dos Command from Java Servlet  Hello All, I have to run following command from Java. The command is : vscanwin32 /S C:\Test > C... servlet I wants to run specified DOS Command. Can anyone help me out here ? I
Command Line Arguments in Java
Command Line Arguments in Java The ongoing Java application can accept any... command line arguments in java program. */ class CmndLineArguments { public... of the program: Run program with some command line arguments like: java
Java Break command
Java Break command       Java Break command is commonly used in terminating looping statements. break command comes under the Java branching statements category. In programming
The query used to display all tables names in SQL Server.
The query used to display all tables names in SQL Server.  What is the query used to display all tables names in SQL Server (Query analyzer
How to Import mysql database command line, Import MySQL dumpfile, SQL datafile into my database ?
How to Import mysql database command line, Import MySQL dumpfile, SQL datafile... command at the shell prompt to import sql data file: $ mysql -u username -p -h...://www.phpzag.com/import-mysql-database-command-line-import-mysql-dumpfile-sql-datafile
Compiling and Running Java program from command line
Compiling and Running Java program from command line - Video tutorial that explains you all steps necessary to compile and run the Java program from dos... of compiling and running java program from command line. We have also video
Java and SQL - SQL
Java and SQL  i have a problem with regard to connecting my java code in getting a data to SQL. my problem is on how to come up with a pop up alert message in the user interface where in the message will be coming from the SQL
Command Line Standard Output In Java
Command Line Standard Output In Java In this section we will discuss about the Command Line Java IO Standard Output. Standard streams, feature of various O/S, are written through standard output in Java. Standard streams can
Command Line Standard Error In Java
Command Line Standard Error In Java In this section we will discuss about the Command Line Java IO Standard Error. System.out and System.err both... is provided by Java for printing of error messages. System.err In System.err, err
javac is not ecognised as internal and external command - Java Beginners
installed jdk6u20 develpment kit on my pc and followed all the instructions about... as possible  Hi Friend, It seems that either java is not installed...: http://www.roseindia.net/java/learn-java-in-a-day/download-and-install
Advertisements
 

 

 

DMCA.com