• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 496
  • Last Modified:

jar file search

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
gudii9
Asked:
gudii9
3 Solutions
 
Smart_KidCommented:
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
 
CEHJCommented:
Why are javascripts in the jar file(s)?
0
 
Sharon SethCommented:
That js seems to be one that came with jquery , so probably that's within the jquery jar
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
gudii9Author Commented:
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
 
gudii9Author Commented:
I tried to search as
b\.fn\.jqprint\.defaults
and
b/.fn/.jqprint/.defaults

that also did not work. please advise
0
 
gudii9Author Commented:
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
 
CEHJCommented:
b.*fn.*jqprint.*defaults

Open in new window


Try the above with 'Regular expressions' checked
0
 
gudii9Author Commented:
I tried
b.*fn.*jqprint.*defaults


It is not working either. please advise
0
 
CEHJCommented:
That pattern is in printer.js
0
 
gudii9Author Commented:
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
 
CEHJCommented:
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
 
gudii9Author Commented:
can you please send me screenshot of how you are searching in eclipse for confirmation that i am doing correct way.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now