NetEZ.com NetEZ Community
Enter City & State or US Zip Code:
Change your local weather options
Google
WWW NetEZ.com

NetEZ.com Forum Index  
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

explore and search in .jar archive

 
Post new topic   Reply to topic    NetEZ.com Forum Index -> xplorer˛ Professional
View previous topic :: View next topic  
Author Message
gerarddevos64
New Member
New Member


Joined: 03 Jun 2007
Posts: 16
Location: the netherlands

PostPosted: Fri Apr 11, 2008 6:45 pm    Post subject: explore and search in .jar archive Reply with quote

Hi Nikos,  

Your search tool in xplorer2 works great and is very fast. I use it every day. But i am missing one option.

I am a Java programmer and I still need SpeedCommander to look and search into archives with the extension .jar. The jar-archive contains java-classes. Is there a way xplorer2 can explore these type of archives?

Regards, Gerard de Vos
Back to top
View user's profile Send private message
snakebyte
Gold Member
Gold Member


Joined: 07 May 2003
Posts: 382
Location: Seattle

PostPosted: Fri Apr 11, 2008 9:10 pm    Post subject: Reply with quote

If you rename xyz.jar files to xyz.jar.zip, I think it should work.

You can use X2 mass rename functionality to add as well as remove .zip extension from your jar files.

May be there is a way x2 could treat .jar files as .zip files. Nikos can shed more light on this.
_________________
Help! I'm an AI running around in someone's universe simulator.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
FrizzleFry
Gold Member
Gold Member


Joined: 16 Oct 2005
Posts: 465

PostPosted: Fri Apr 11, 2008 11:37 pm    Post subject: Reply with quote

You can set the .jar extension to CompressedFolder in the registry.

Edit: removed registry tweak


Last edited by FrizzleFry on Mon Apr 14, 2008 11:25 am; edited 1 time in total
Back to top
View user's profile Send private message
gerarddevos64
New Member
New Member


Joined: 03 Jun 2007
Posts: 16
Location: the netherlands

PostPosted: Sat Apr 12, 2008 6:37 pm    Post subject: Thnx Reply with quote

FrizzleFry and snakebyte,

Renaming in jar.zip is a workaround. It does work, but while programming not the option i realy would like.
The sugestion of FrizzleFry made me change the registry for .jar identicaly as .zip. (made a new String value with the name "PerceivedType" and gave it the value "compressed".)

And it does work!!
Thanks for the support, guys!

regards, Gerard de Vos
Back to top
View user's profile Send private message
MKairys
Gold Member
Gold Member


Joined: 15 Apr 2003
Posts: 356
Location: Ann Arbor, Michigan

PostPosted: Mon Apr 14, 2008 9:43 am    Post subject: Reply with quote

FrizzleFry wrote:
You can set the .jar extension to CompressedFolder in the registry.

But then you lose the ability to execute an executable jar.
Back to top
View user's profile Send private message
FrizzleFry
Gold Member
Gold Member


Joined: 16 Oct 2005
Posts: 465

PostPosted: Mon Apr 14, 2008 11:24 am    Post subject: Reply with quote

That's true. I do not have the Java runtime installed on my PC and .jar was associated with WinRAR so I saw no harm in associating .jar with CompressedFolder. You could set up an open with action to execute .jar files.

I have removed the reg file tweak.
Back to top
View user's profile Send private message
gerarddevos64
New Member
New Member


Joined: 03 Jun 2007
Posts: 16
Location: the netherlands

PostPosted: Mon Apr 14, 2008 6:23 pm    Post subject: Reply with quote

ok...

I wil keep this in mind. thanks. I'll  try the tweak tomorrow at work....

regard, Gerard de Vos
Back to top
View user's profile Send private message
nikos
Moderator
Moderator


Joined: 07 Feb 2002
Posts: 12402
Location: UK

PostPosted: Tue Apr 15, 2008 5:15 am    Post subject: Reply with quote

you can always add an extra verb for JAR files so that it opens with xplorer2 like zip for default and with the external program through the context menu
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
MKairys
Gold Member
Gold Member


Joined: 15 Apr 2003
Posts: 356
Location: Ann Arbor, Michigan

PostPosted: Tue Apr 15, 2008 8:07 am    Post subject: Reply with quote

nikos wrote:
you can always add an extra verb for JAR files so that it opens with xplorer2 like zip for default and with the external program through the context menu

I thought about that but couldn't figure out how to do it (easily) because the shell verbs are part of the key "jarfile" and .jar can either be "CompressedFolder" or "jarfile" but not both...

However I fear this is verging OT for this board Smile
Back to top
View user's profile Send private message
FrizzleFry
Gold Member
Gold Member


Joined: 16 Oct 2005
Posts: 465

PostPosted: Tue Apr 15, 2008 9:14 am    Post subject: Reply with quote

That is why I suggested an "open with" action which is set for the extension rather than for the file type. The one I created for the .jar extension is stored here:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jar\OpenWithList
Back to top
View user's profile Send private message
friedolin
New Member
New Member


Joined: 28 Aug 2006
Posts: 16

PostPosted: Mon Dec 22, 2008 8:48 am    Post subject: Reply with quote

I just found a different solution.

  1. Create the key "CLSID" under the file type key (".jar") or the ProgID key (e.g. "jarfile").
  2. Set "{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31}" as the default value.

This will enable searching in .jar files without modifying the defined actions for .jar files.
Back to top
View user's profile Send private message
nikos
Moderator
Moderator


Joined: 07 Feb 2002
Posts: 12402
Location: UK

PostPosted: Mon Dec 22, 2008 9:37 am    Post subject: Reply with quote

so what's inside jar files, java source code or bytecode?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
MKairys
Gold Member
Gold Member


Joined: 15 Apr 2003
Posts: 356
Location: Ann Arbor, Michigan

PostPosted: Mon Dec 22, 2008 9:46 am    Post subject: Reply with quote

Bytecode, a.k.a. .class files.
Back to top
View user's profile Send private message
nikos
Moderator
Moderator


Joined: 07 Feb 2002
Posts: 12402
Location: UK

PostPosted: Mon Dec 22, 2008 9:53 am    Post subject: Reply with quote

so there's not much text to search for!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
MKairys
Gold Member
Gold Member


Joined: 15 Apr 2003
Posts: 356
Location: Ann Arbor, Michigan

PostPosted: Mon Dec 22, 2008 10:33 am    Post subject: Reply with quote

More than you would think, if the code was not obfuscated. Here is a small program:
Code:

public class test
{
public static void main( String[] args )
{
    String string1 = "Hello", string2 = "world";
    System.out.println(string1 + ", " + string2);
}
}


... and here is the result of running "strings" on the class file:
Code:

<init>
Code
LineNumberTable
main
([Ljava/lang/String;)V
SourceFile
        test.java
Hello
world
java/lang/StringBuilder
test
java/lang/Object
java/lang/System
Ljava/io/PrintStream;
append
-(Ljava/lang/String;)Ljava/lang/StringBuilder;
toString
()Ljava/lang/String;
java/io/PrintStream
println
(Ljava/lang/String;)V

[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetEZ.com Forum Index -> xplorer˛ Professional All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP