| View previous topic :: View next topic |
| Author |
Message |
gerarddevos64 New Member

Joined: 03 Jun 2007 Posts: 16 Location: the netherlands
|
Posted: Fri Apr 11, 2008 6:45 pm Post subject: explore and search in .jar archive |
|
|
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 |
|
 |
snakebyte Gold Member


Joined: 07 May 2003 Posts: 382 Location: Seattle
|
Posted: Fri Apr 11, 2008 9:10 pm Post subject: |
|
|
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 |
|
 |
FrizzleFry Gold Member


Joined: 16 Oct 2005 Posts: 465
|
Posted: Fri Apr 11, 2008 11:37 pm Post subject: |
|
|
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 |
|
 |
gerarddevos64 New Member

Joined: 03 Jun 2007 Posts: 16 Location: the netherlands
|
Posted: Sat Apr 12, 2008 6:37 pm Post subject: Thnx |
|
|
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 |
|
 |
MKairys Gold Member

Joined: 15 Apr 2003 Posts: 356 Location: Ann Arbor, Michigan
|
Posted: Mon Apr 14, 2008 9:43 am Post subject: |
|
|
| 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 |
|
 |
FrizzleFry Gold Member


Joined: 16 Oct 2005 Posts: 465
|
Posted: Mon Apr 14, 2008 11:24 am Post subject: |
|
|
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 |
|
 |
gerarddevos64 New Member

Joined: 03 Jun 2007 Posts: 16 Location: the netherlands
|
Posted: Mon Apr 14, 2008 6:23 pm Post subject: |
|
|
ok...
I wil keep this in mind. thanks. I'll try the tweak tomorrow at work....
regard, Gerard de Vos |
|
| Back to top |
|
 |
nikos Moderator


Joined: 07 Feb 2002 Posts: 12402 Location: UK
|
Posted: Tue Apr 15, 2008 5:15 am Post subject: |
|
|
| 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 |
|
 |
MKairys Gold Member

Joined: 15 Apr 2003 Posts: 356 Location: Ann Arbor, Michigan
|
Posted: Tue Apr 15, 2008 8:07 am Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
FrizzleFry Gold Member


Joined: 16 Oct 2005 Posts: 465
|
Posted: Tue Apr 15, 2008 9:14 am Post subject: |
|
|
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 |
|
 |
friedolin New Member

Joined: 28 Aug 2006 Posts: 16
|
Posted: Mon Dec 22, 2008 8:48 am Post subject: |
|
|
I just found a different solution.
- Create the key "CLSID" under the file type key (".jar") or the ProgID key (e.g. "jarfile").
- 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 |
|
 |
nikos Moderator


Joined: 07 Feb 2002 Posts: 12402 Location: UK
|
Posted: Mon Dec 22, 2008 9:37 am Post subject: |
|
|
| so what's inside jar files, java source code or bytecode? |
|
| Back to top |
|
 |
MKairys Gold Member

Joined: 15 Apr 2003 Posts: 356 Location: Ann Arbor, Michigan
|
Posted: Mon Dec 22, 2008 9:46 am Post subject: |
|
|
| Bytecode, a.k.a. .class files. |
|
| Back to top |
|
 |
nikos Moderator


Joined: 07 Feb 2002 Posts: 12402 Location: UK
|
Posted: Mon Dec 22, 2008 9:53 am Post subject: |
|
|
| so there's not much text to search for! |
|
| Back to top |
|
 |
MKairys Gold Member

Joined: 15 Apr 2003 Posts: 356 Location: Ann Arbor, Michigan
|
Posted: Mon Dec 22, 2008 10:33 am Post subject: |
|
|
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 |
|
 |
|