Solved

jar file search

Posted on 2014-01-22
12
400 Views
Last Modified: 2014-02-13
Hi,

I have a specific word (let us say xyz) that i need to search in my jar file within one javascript file. I have about 500 jar files in my eclipse workspace environment.

Eclipse i searched on file search but says 0 words found

please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
12 Comments
 
LVL 1

Accepted Solution

by:
Smart_Kid earned 250 total points
ID: 39802043
In Eclispe Search, give the File name pattern as *.jar.
Also un-tick the case sensitive option, if you are not sure about it.

See the image..
Eclipse Search

And the outcome for that is..
Output
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39802578
Why are javascripts in the jar file(s)?
0
 
LVL 12

Assisted Solution

by:Sharon Seth
Sharon Seth earned 125 total points
ID: 39802746
That js seems to be one that came with jquery , so probably that's within the jquery jar
0
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 
LVL 7

Author Comment

by:gudii9
ID: 39806786
the primefaces-3.4 jar has printer.js which has lot of jQuery code in that as below.The code in the printer.js looks as below

(function(b){var a;b.fn.jqprint=function(d){a=b.extend({},b.fn.jqprint.defaults,d);var c=(this instanceof jQuery)?this:b(this);if(a.operaSupport&&b.browser.opera){var e=window.open("","jqPrint-preview");e.document.open();var g=e.document}else{var f=b("<iframe  />");if(!a.debug){f.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"})}f.appendTo("body");var g=f[0].contentWindow.document}if(a.importCSS){if(b("link[media=print]").length>0){b("link[media=print]").each(function(){g.write("<link type='text/css' rel='stylesheet' href='"+b(this).attr("href")+"' media='print' />")})}else{b("link").each(function(){g.write("<link type='text/css' rel='stylesheet' href='"+b(this).attr("href")+"' />")})}}if(a.printContainer){g.write(c.outer())}else{c.each(function(){g.write(b(this).html())})}g.close();(a.operaSupport&&b.browser.opera?e:f[0].contentWindow).focus();setTimeout(function(){(a.operaSupport&&b.browser.opera?e:f[0].contentWindow).print();if(e){e.close()}},1000)};b.fn.jqprint.defaults={debug:false,importCSS:true,printContainer:true,operaSupport:true};jQuery.fn.outer=function(){return b(b("<div></div>").html(this.clone())).html()}})(jQuery);

Open in new window



when i search for text 'b.fn.jqprint.defaults' in same way it cannot find the text in jars. can you please advise
0
 
LVL 7

Author Comment

by:gudii9
ID: 39824417
I tried to search as
b\.fn\.jqprint\.defaults
and
b/.fn/.jqprint/.defaults

that also did not work. please advise
0
 
LVL 7

Author Comment

by:gudii9
ID: 39824444
when i search on defaults alone it did search in jar file too...not sure why it is not searching with multiple words with dots in between. please advise
JarSeachDefaults.jpg
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39824465
b.*fn.*jqprint.*defaults

Open in new window


Try the above with 'Regular expressions' checked
0
 
LVL 7

Author Comment

by:gudii9
ID: 39829833
I tried
b.*fn.*jqprint.*defaults


It is not working either. please advise
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39830447
That pattern is in printer.js
0
 
LVL 7

Author Comment

by:gudii9
ID: 39842736
I know it is there but I wonder why it did not find in the search.

I searched on
b.*fn.*jqprint.*defaults

with/without regular expression check box. still did not work. what is the importance of Regular Expression check box? Please advise
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 125 total points
ID: 39842794
Maybe you have a different version of that jar from the one i tested. If you post a link to it, i'll try it with the same one
0
 
LVL 7

Author Comment

by:gudii9
ID: 39854417
can you please send me screenshot of how you are searching in eclipse for confirmation that i am doing correct way.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jsp login check 12 67
Java array 10 87
convert Absolute path to relative path of FTP location 7 51
Retrieve multiple results between delimiters in a String in Java 13 25
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question