Sponsored Content
Top Forums Shell Programming and Scripting Error message while executing the shell script Post 302142255 by ajayyaduwanshi on Thursday 25th of October 2007 06:05:01 AM
Old 10-25-2007
Question Error while excuting shell script

Hi,
I have written the script in the single line. after that

I am getting Exception in thread "main" java.lang.NoClassDefFoundError: com/pbx/main
while executing the script , this is the only error I am getting now.

Thanks & Regards

Ajay Singh Yaduwanshi
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Suppress error message in shell script

Hi All this is a simple script #! /bin/bash FileCnt=`ls -lrt $DIR/* | wc -l` echo $FileCnt how could i escape the error msg if there are no files in $DIR ls: /home/sayantan/test/files/cnt/*: No such file or directory 0 Looking forward for a quick reply Regards, Newbie... (3 Replies)
Discussion started by: newbie07
3 Replies

2. Shell Programming and Scripting

Error executing shell command from a perl script

Hi Gurus, I've a find command that gets the list of files from a source directory where the extension is not html, xml, jsp, shtml or htaccess. The below find command runs fine from the command prompt or in a shell script. I need to eventually run it in a PERL script and am getting the... (5 Replies)
Discussion started by: voorkey
5 Replies

3. Shell Programming and Scripting

Error executing shell script in Linux

Hi, I have following shell script code : ------------------------------------------------------------------ #!/bin/bash SCRIPTS_DIR="/scriptsDir1" # tables login/password APIL_USER="uname/pswd" I2_USER="uname/pswd" # Database DB="db1" cd "$SCRIPTS_DIR/scriptsDir2" sqlplus... (2 Replies)
Discussion started by: Chaitrali
2 Replies

4. Linux

Error executing shell script in Linux

Hi, I have following shell script code : ------------------------------------------------------------------ #!/bin/bash SCRIPTS_DIR="/scriptsDir1" # tables login/password APIL_USER="uname/pswd" I2_USER="uname/pswd" # Database DB="db1" cd "$SCRIPTS_DIR/scriptsDir2" sqlplus... (1 Reply)
Discussion started by: Chaitrali
1 Replies

5. Shell Programming and Scripting

Executing expect script giving message as bad interpreter: Permission denied

Hi Gurus, I am new to scripting and needs your help in expect script used for telnet. I wrote a simple script as #!/usr/bin/expect-5.43 -f spawn telnet localhost 2233 expect "password:" send "secret\r" send "i data.cnbc.com\r" send "exit\r" expect eof When I am trying to execute... (2 Replies)
Discussion started by: niks_yv
2 Replies

6. Shell Programming and Scripting

SFTP-how to log individual sftp command error while executing shell script

Hi, I have situation where i need to automate transferring 10000+ files using sftp. while read line do if ; then echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt fi done< files.txt sftp -b sftpCommand.txt stu@192.168.2.1 The above... (1 Reply)
Discussion started by: noobrobot
1 Replies

7. Shell Programming and Scripting

error when executing shell scrpit

Guys, when i am executing the following script I am getting following error. -bash: test.sh: command not found $ test.sh -- script name #! /bin/bash echo " Job started........" CURRENTDIR=`pwd` exit 0 thanks Please view this link: How to use ... tags (2 Replies)
Discussion started by: skatpally
2 Replies

8. Shell Programming and Scripting

Executing a shell script

LD_LIBRARY_PATH=~/tme-0.8/bus/multibus:~/tme-0.8/bus/sbus:~/tme-0.8/dist/softfloat/softfloat/bits32:~/tme-0.8/dist/softfloat/softfloat/bits64:~/tme-0.8/generic:~/tme-0.8/host/bsd:~/tme-0.8/host/gtk:~/tme-0.8/host/posix:~/tme-0.8/ic:~/tme-0.8/ic/ieee754:~/tme-0.8/ic/m68k:~/tme-0.8/ic/sparc:~/tme-0.8/... (1 Reply)
Discussion started by: lucky7456969
1 Replies

9. Shell Programming and Scripting

SP2-0642 error while executing procedure from shell script

hi all, i have a unix script where i am calling a database procedure from it. while executing the procedure i am getting an error: but when i tried to call the same procedure manually then it ran successfully, i goggled this issue and found timezone.dat file missing at... (0 Replies)
Discussion started by: lovelysethii
0 Replies

10. Shell Programming and Scripting

Error while executing the shell script

Hi Gurus, The following script fails with the error 'command not found' while trying to execute. As the error indicates, the script fails at ROW#30 where the EOF is defined for SQL statement. It appears that the script is trying execute the lines in the SQL output written to ta spool file.... (7 Replies)
Discussion started by: svajhala
7 Replies
jdb(1)							      General Commands Manual							    jdb(1)

NAME
jdb - Java debugger SYNOPSIS
jdb [ options ] [ class ] [ arguments ] PARAMETERS
options Command-line options. class Name of the class to begin debugging. arguments Arguments passed to the main() method of class. DESCRIPTION
The Java debugger, jdb, is a simple command-line debugger for Java classes. It is a demonstration of the Java Platform Debugger Architec- ture that provides inspection and debugging of a local or remote Java Virtual Machine. Starting a jdb Session There are many ways to start a jdb session. The most frequently used way is to have jdb launch a new Java Virtual Machine (VM) with the main class of the application to be debugged. This is done by substituting the command jdb for java(1) in the command line. For example, if your application's main class is MyClass, you use the following command to debug it under jdb: example% jdb MyClass When started this way, jdb invokes a second Java VM with any specified parameters, loads the specified class, and stops the VM before exe- cuting that class's first instruction. Another way to use jdb is by attaching it to a Java VM that is already running. A VM that is to be debugged with jdb must be started with the following options: +--------------------------------------------------+-------------------------------------------------+ | option | purpose | +--------------------------------------------------+-------------------------------------------------+ |-Xdebug | Enables debugging support in the VM. | +--------------------------------------------------+-------------------------------------------------+ |-Xrunjdwp:transport=dt_socket, server=y,suspend=n | Loads in-process debugging libraries and speci- | | | fies the kind of connection to be made. | +--------------------------------------------------+-------------------------------------------------+ For example, the following command will run the MyClass application and allow jdb to connect to it at a later time: example% java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n Class You can then attach jdb to the VM with the following command: example% jdb -attach 8000 Note that MyClass is not specified in the jdb command line in this case because jdb is connecting to an existing VM instead of launching a new one. There are many other ways to connect the debugger to a VM, and all of them are supported by jdb. The Java Platform Debugger Architecture has additional documentation on these connection options. Basic jdb Commands The following is a list of the basic jdb commands. The Java debugger supports other commands listed with the help command. Notice that to display local (stack) variables, the class must have been compiled with the javac -g option. cont Continues execution of the debugged application after a breakpoint, exception, or step. dump For primitive values, this command is identical to print. For objects, it prints the current value of each field defined in the object. Static and instance fields are included. The dump command supports the same set of expressions as the print command. help, or ? As the most important jdb command, help displays the list of recognized commands with a brief description. print Displays Java objects and primitive values. For variables or fields of primitive types, the actual value is printed. For objects, a short description is printed. See the dump command for getting more information about an object. print supports many simple Java expressions including those with method invocations. For example: o print MyClass.myStaticField o print myObj.myInstanceField o print i + j + k ... where i, j, and k are primitives and either fields or local variables. o print myObj.myMethod() ... if myMethod returns a non-null. o print new java.lang.String("Hello").length() thread Selects a thread to be the current thread. Many jdb commands are based on the setting of the current thread. The thread is specified with the thread index described in the threads command. threads Lists the threads that are currently running. For each thread, its name and current status are printed, as well as an index that can be used for other commands. For example: 4. (java.lang.Thread)0x1 main running In this example, the thread index is 4, the thread is an instance of java.lang.Thread, the thread name is main, and it is currently running run After starting jdb, and setting any necessary breakpoints, use this command to start the execution of the debugged applica- tion. This command is available only when jdb launches the debugged application (as opposed to attaching to an existing VM). where The where subcommand with no arguments dumps the stack of the current thread (which is set with the thread command). Using where all dumps the stack of all threads in the current thread group. Using where threadindex dumps the stack of the speci- fied thread. If the current thread is suspended (either through an event such as a breakpoint or through the suspend com- mand), local variables and fields can be displayed with the print and dump commands. The up and down commands select which stack frame is current. Breakpoint Commands Breakpoints are set in jdb at line numbers or at the first instruction of a method. For example: stop at MyClass:22 Sets a breakpoint at the first instruction for line 22 of the source file containing MyClass. stop in java.lang.String.length Sets a breakpoint at the beginning of the method java.lang.String.length. stop in MyClass.init init identifies the MyClass constructor. stop in MyClass.clinit clinit identifies the static initialization code for MyClass. If a method is overloaded, you must also specify its argument types so that the proper method can be selected for a breakpoint. For exam- ple, MyClass.myMethod(int,java.lang.String) or MyClass.myMethod() The clear command removes breakpoints using a syntax as in clearMyClass:45. Using the clear command with no argument displays a list of all breakpoints currently set. The cont command continues execution. Stepping Commands The step command advances execution to the next line, whether it is in the current stack frame or a called method. The next command advances execution to the next line in the current stack frame. Exception Commands When an exception occurs for which there is no catch statement anywhere in the throwing thread's call stack, the VM normally prints an exception trace and exits. When running under jdb, however, control returns to jdb at the offending throw. Use jdb to determine the cause of the exception. catch Causes the debugged application to stop at other thrown exceptions. For example: catch java.io.FileNotFoundException or catch mypackage.BigTroubleException Any exception which is an instance of the specified class (or of a subclass) will stop the application at the point where it is thrown. ignore Negates the effect of a previous catch command. Notice that the ignore command does not cause the debugged VM to ignore specific exceptions, only the debugger. OPTIONS
When using jdb in place of the Java application launcher on the command line, jdb accepts many of the same options as the java(1) command, including -D, -classpath, and -Xoption. The following additional options are accepted by jdb: -sourcepath dir1:dir2:... Uses the given path in searching for source files in the specified path. If this option is not specified, the default path of "." is used. -attach address Attaches the debugger to previously running VM using the default connection mechanism. -launch Launches the debugged application immediately upon startup of jdb. This option removes the need for using the run command. The debuged application is launched and then stopped just before the initial application class is loaded. At that point, you can set any necessary breakpoints and use the cont command to continue execution. -J option Pass option to the Java virtual machine, where option is one of the options described on the man page for the java applica- tion launcher, java(1). For example, -J-Xms48m sets the startup memory to 48 megabytes. It is a common convention for -J to pass options to the underlying virtual machine. Other options are supported for alternate mechanisms for connecting the debugger and the VM it is to debug. The Java Platform Debugger Architecture has additional documentation on these connection alternatives. SEE ALSO
java(1), javac(1), javadoc(1), javah(1), javap(1) 12 Nov 2001 jdb(1)
All times are GMT -4. The time now is 07:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy