Hello,
I have a .jar file and am trying to figure out if it is possible to search for some text in all the files in it without extracting it.
I was able to do it using jar xf <filename>.jar and then using grep but want a one liner.
Thanks in advance:) (8 Replies)
Hey Guys,
I need to search inside all the jar files of my directory for a specific string. Can anyone guide me as to how i can do it. I need this urgently please. More specifically i need to search for a class file name in the jar files.
Thanks in advance :-) (4 Replies)
Hello sir,
I have created a jar file having some code in java.What it does is that it calls a shell code (a.sh) which is in the same directory.
Now my requirement is that I want to jar the a.sh also along with the other files and want to call the a.sh which is now inside the jar file and not... (1 Reply)
Hi,
I am new to Linux. I have a executable jar file which I need to run even before the user logs in. The problem is since I don't have good information about the services in Linux its very difficult to understand the same topic posted at other forums.
I have tried many things like java... (0 Replies)
Hi,
I have a below command in ksh ....
$JAVA_HOME/bin/java -cp "/usr/orabase/product/10.2.0/lib:/usr/java/javajar/common/sched.jar:/usr/orabase/product/10.2.0/jdbc/lib/ojdbc14_g.jar:/usr/orabase/product/10.2.0/jdbc/lib/classes12.jar" com.abrt.smart.Smart
I want to know where the... (1 Reply)
Hello everyone,
I am using jar to consolidate a large number of files for transfer, about 2500.
The jar command seems to work fine and it says ....adding.... files while it is building the archive. If I capture the messages to a log the log has 2500 lines each of them says I file was addedd... (2 Replies)
Hi All,
I am having 7 jar files in a dir. abc like listed below
bash-3.00$ cd abc
bash-3.00$ ls
123.jar
23wdawd.jar
dfsa23.jar
dsa.jar
wew234.jar
adsd234234.jar
dfsda423.jarNow i want to assign all this jar files to a variable in the below format
... (6 Replies)
I have a script I am trying to test and run but it runs against a jar file. I wrote an external property file so it would redirect with my script, but it keeps going in search of the previous property file. Is there any way to externally over write the jar file and if not how do you go about... (7 Replies)
Hi,
I am trying to retrieve the "Implementation version" from one of the .jar file
The command which tried is as below.
find /usr/local/platform -name "platform.jar" -exec zipgrep "Implementation-Version:" '{}' \;|awk -F ': ' '{print $2}'I am able to get the version as below
2.9.0-29But... (2 Replies)
Discussion started by: nextStep
2 Replies
LEARN ABOUT CENTOS
build-jar-repository
BUILD-JAR-REPOSITO(1) Java Packages Tools BUILD-JAR-REPOSITO(1)NAME
build-jar-repository - create a symbolic link to a JAR
SYNOPSIS
build-jar-repository [OPTION]... DIRECTORY JAR|artifact-coordinates
DESCRIPTION
Build a JAR repository in the named directory by copying files or creating symbolic links. The JARs can be identified by their names or
Maven artifact coordinates. Artifact coordinates specify Maven artifact and are in format
groupId:artifactId[:extension[:classifier]]:version. If extension is omitted then "jar" is used. If classifier is omitted then empty
classifier is used. For more information see XMvn Configuration Reference.
OPTIONS
If no option is specified the default action will be to create symbolic links
-c, --copy
Copy files.
-h, --hard
Create hard links.
-p, --preserve-naming Try to preserve the names of the original JAR files (in case of a nested hit the slashes in the path will still be
replaced by underscores). Using this option makes any future automated repository rebuild impossible, and implies -c unless specified
otherwise.
-s, --soft, --symbolic Create symbolic links (default).
--help Display help text
EXAMPLES
build-jar-repository . jndi - This will create a symbolic link to the jndi JAR in the current working directory.
build-jar-repository -h /tmp log4j - This will create a hard link to the log4j JAR in /tmp directory.
build-jar-repository -c . org.apache.commons:commons-io - This will copy commons-io JAR to the current working directory.
AUTHOR
Originally written by Nicholas Mailhot and David Walluck.
REPORTING BUGS
Bugs should be reported through Red Hat Bugzilla at http://bugzilla.redhat.com/.
SEE ALSO build-classpath(1), rebuild-jar-repository(1),
JAVAPACKAGES 06/10/2014 BUILD-JAR-REPOSITO(1)