10-25-2007
Error while excuting shell script
Hi All,
The above classdef not found error got eliminated Since I have not put dot after com.pbx.main.PBXMain, However I am getting the below error.
java.lang.ClassNotFoundException: com.pbx.PBX800Sample
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.pbx.main.PBXMain.main(PBXMain.java:100)
Let me explain you in brief what I did actually, I have created a jar file named 800PBXMAIN.jar containing the PBXMain class which is having a main method and also the jar file is having property file in which I define the path another jar file name PBX800Sample.jar which is being called by our main program, the path set in the property file is like 800PBXMAIN(Key)=/var/lib/asterisk/agi-bin/jarfiles, IN the jarfiles folder I kept PBX800Sample.jar.
My reformated code is
#!/bin/bash
/usr/java/jdk1.5.0_10/bin/java -classpath /var/lib/asterisk/agi-bin/mysql-connector-java-3.0.15-ga-bin.jar:/var/lib/asterisk/agi-bin/jarfiles:/var/lib/asterisk/agi-bin/800PBXMAIN.jar: com.pbx.main.PBXMain $1 $2 $3 $4 $5 $6 $7
Please help me get out of this issue.
Thanks & Regards
Ajay Singh Yaduwanshi
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
freemind
FREEMIND(1) General Commands Manual FREEMIND(1)
NAME
freemind -- A Java program for creating and viewing mindmaps.
SYNOPSIS
freemind [no_options]
DESCRIPTION
This manual page documents briefly the freemind command.
This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has docu-
mentation as a mindmap (see Help menu in FreeMind).
freemind is a program that allows to create and view so-called mindmaps, as well as export them to HTML or different image formats. It
also has a plugin concept to extend its functionality.
OPTIONS
This program does not have any option. Just start it!
ENVIRONMENT VARIABLES
DEBUG If this environment variable is set, freemind gives more information on how it finds its different elements, as well as some
other information.
JAVACMD Default value for the java virtual machine (the java command).
JAVA_BINDIR
If $JAVACMD is not set, the java virtual machine is searched under $JAVA_BINDIR/java.
JAVA_HOME If $JAVACMD and $JAVA_BINDIR are not set, the java virtual machine is searched under $JAVA_HOME/bin/java.
PATH If all $JAVA... environment variables fail, the java virtual machine command (java) is searched in the $PATH (with which).
CLASSPATH ADD_JARS
The $CLASSPATH variable also lets one specify additional jars, which is good, if you want to add a new Look&Feel jar (the motif
one is so ugly...). Alternatively, the content of $ADD_JARS will be prepended to $CLASSPATH.
FREEMIND_BASE_DIR
Directory where FreeMind searches for its plugins and libraries
FILES
/etc/freemind/freemindrc ~/.freemind/freemindrc
freemind tries to read its environment variables from /etc/freemind/freemindrc and ~/.freemind/freemindrc, so that specific set-
tings are possible at machine and user level.
/usr/bin/java
If all searches through environment variables fail, the java virtual machine is expected to be /usr/bin/java; if not, freemind
exits with an error.
SEE ALSO
The online documentation under http://freemind.sf.net/, especially the Linux related one under the Wiki page link http://freemind.source-
forge.net/wiki/index.php/FreeMind_on_Linux.
AUTHOR
This manual page was written by Eric Lavarde deb@zorglub.s.bawue.de for the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version pub-
lished by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
FREEMIND(1)