08-08-2008
Quote:
Originally Posted by
satish2712
Hi,
I have to run my JAVA programs in UNIX server. The java program uses some external jar files for compiling. I have set the classpath to the folder where all the jar files are present using EXPORT classpath command.
But when i compile, it shows errors.. saying that the classes relating to the jar files are not found.
which means it is not recognising the jar files !!!
Please let me know how to make this compile ?
You should set CLASSPATH so that it points to the jar file. Pointing it to the folder will not work.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I recieve the following error when trying to run the following command in a ksh. The operating system is AIX5.1.
/usr/bin/jar -xvf {filename}.zip
Can't find class java.lang.System
But when I run it on the command line it unzips the file fine.
Does anybody know why this... (2 Replies)
Discussion started by: ctcuser
2 Replies
2. UNIX for Dummies Questions & Answers
Hi Folks,
I'm a serious UNIX newbie... I'm using a bash shell on Mac OS X.
Basically I took up unix in order to use a specific image processing software package... I've learned enough to write a script to batch process all of my images, but I have so many that I would like to use an... (1 Reply)
Discussion started by: Slanter
1 Replies
3. UNIX for Dummies Questions & Answers
Hi...
I have build a program for the Velleman K8000 interface card, in java, which works just fine in windows, but now I want to use the program on a Unix-System.
Is it possible to somehow convert the dll file to a format that Unix supports, or do I have to find another way?
Dll-file:... (3 Replies)
Discussion started by: Scorp-D
3 Replies
4. Shell Programming and Scripting
Hi all,
I have a Unix script that will compile all Java files in a sub folder as follows:
find . -name "*.java" -print -exec $JAVA_HOME/bin/javac -cp .:$CLASSPATH '{}' \;
I would like to enhance it to only compile those Java files who:
1.) Have no class file
2.) Have a class file... (1 Reply)
Discussion started by: Annorax
1 Replies
5. Ubuntu
Hi,
how to add external jar file in jsp application on eclipse.
Thanks
SN:confused: (0 Replies)
Discussion started by: snallusami
0 Replies
6. Shell Programming and Scripting
Hi,
I have created a Shell Script and invoke through java using Process Builder
It's working fine, if (Shell script file ) in the same directory as java file.
By Problem:
How to run the Shell Script file( resides in external directory) using java. What configuration i have... (1 Reply)
Discussion started by: nanthagopal
1 Replies
7. Programming
Hello!
This is my first post, and I just learned what UNIX was this week. For a JAVA programming class I am taking, I must be able to create a directory in UNIX, use the nano command to create a JAVA program, compile it, and then run it on the command prompt using the java command.
For some... (5 Replies)
Discussion started by: UNdvoItX
5 Replies
8. Shell Programming and Scripting
I have a .jar placed in my Unix directory. The .jar creates a .csv file .I want to execute the .jar and place the output file in a target Unix directory.
The Unix Script is as follows. The issue that i am facing is that the file is not being placed in the REPORTDIR=/cdunix/IQNavigator/wrk instead... (4 Replies)
Discussion started by: pankajkargeti12
4 Replies
9. Shell Programming and Scripting
unzip -v gives CRC info of each file in a zip(in my case .EAR) file.
# unzip -v my-application.ear
Archive: my-application.ear
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
197981 Defl:N 183708 7%... (1 Reply)
Discussion started by: kchinnam
1 Replies
BND(1) BND for Debian GNU/Linux BND(1)
NAME
bnd - Create and diagnose OSGi R4 bundles.
SYNOPSIS
bnd [general-options] [cmd] [cmd-options]
bnd [general-options] <file>.jar
bnd [general-options] <file>.bnd
DESCRIPTION
The bnd tool helps you create and diagnose OSGi R4 bundles. The key functions are:
* Show the manifest and JAR contents of a bundle
* Wrap a JAR so that it becomes a bundle
* Create a Bundle from a specification and a class path
* Verify the validity of the manifest entries
GENERAL OPTIONS
-failok
Same as the property -failok. The current run will create a JAR file even if there were errors.
-exceptions
Will print the exception when the software has ran into a bad exception and bails out. Normally only a message is printed. For
debugging or diagnostic reasons, the exception stack trace can be very helpful.
COMMANDS
print ( -verify | -manifest | -list | - all ) * <file>.jar +
The print function will take a list of JAR file and print one or more aspect of the JAF riles. The following aspects can be added.
* -verify - Verify the JAR for consistency with the specification
The print will exit with an error if the verify fails.
* -manifest - Show the manifest
* -list - List the entries in the JAR file
* -all - Do all (this is the default.
"bnd print -verify *.jar"
buildx ( -classpath LIST | -eclipse <lt>file> | -noeclipse | -output <file> ) * <file>.bnd +
The build function will assemble a bundle from the bnd specification. The default name of the output bundle is the name of the bnd file
with a .jar extension.
* -classpath - A list of JAR files and/or directories that should
be placed on the class path before the calculation starts.
* -eclipse - Parse the file as an Eclipse .classpath file, use
the information to create an Eclipse's project class path.
If this option is used, the default .classpath file is not read
* -noeclipse - Do not parse the .classpath file of an Eclipse
project.
* -output - Override the default output name of the bundle or the
directory. If the output is a directory, the name will be
derived from the bnd file name.
"bnd build -classpath bin -noeclipse -output test.jar xyz.bnd"
wrap ( -classpath (<lt>file>(','<lt>file>)*)-output <lt>fileE|dir<gt> | -properties <lt>file> ) * -ignoremanifest? <lt>file>.jar *
The wrap command takes an existing JAR file and guesses the manifest headers that will make this JAR useful for an OSGi Service
Platform. If the output file is not overridden, the name of the input file is used with a .bar extension. The default bnd file for the
header calculation is:
Export-Package: *
Import-Package: <packages inside the target jar>
If the target bundle has a manifest, the headers are merged with the properties.
The defaults can be overridden with a specific properties file.
* -output - Set the output file or directory
* -classpath - Sets the classpath as a comma separated list
* -properties - Use a special property file for the manifest
calculation.
* -ignoremanifest - Do not include the manifest headers from
the target bundle
"bnd wrap -classpath osgi.jar *.jar"
SEE ALSO
<http://www.aqute.biz/Code/Bnd>
AUTHOR
Ludovic Claude <ludovic.claude@laposte.net>
Damien Raude-Morvan <drazzib@debian.org>
bnd-1.50.0 2011-10-25 BND(1)