We help IT Professionals succeed at work.

extract file jar file in Windows

duncanb7
duncanb7 asked
on
Dear Expert,

Whne  I try to unzip a jar jave library file on windows vista, some files are missing because the windows will
treat the file name of "ABC.class" same as "abc.clss"  that will let both files wiil be overswritten and only allow
final one of both ABC or abc.class file existed. People suggested me to extract it in Linux/Unix platform  but it doesn't
help when I reload it unzip directory into windows because of the similar reason just mentioned above.
How can I make WIndows file/directory system to be case sensitive similar to Java is also case senitive so that
we could extract the exact number of file from jar jave file without overwrite issue ?

BR
Duncan
Comment
Watch Question

Author

Commented:
In other words, how to make windows is fully compatiable to java file in case senitive also
Brian PiercePhotographer
Awarded 2007
Top Expert 2008

Commented:
simple answer - you can't
Windows is not and cannot be made case sensitive - you need to use filenames that are distinct.
Brian PiercePhotographer
Awarded 2007
Top Expert 2008

Commented:
It appears I am mistaken !
I just checked to be sure and found a reference that says that of you install the .net framework Windows can be made case sensitive

The key is the  HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\ dword:ObCaseInsensitive registry entry

1, the file system is treated as case insensitive.
0, the file system is treated as case sensitive.

Author

Commented:
in other words, there is nothing to do with windows vista for the issue besides I switch to use Window .net frame system, Right  ?
No other possibility ?
Brian PiercePhotographer
Awarded 2007
Top Expert 2008

Commented:

Author

Commented:
Yes, it is good and possibe to make the file system to be case sentitive  in windows, but where I can
change NFS setting and let it to "0" instead of "1" after downland .net frame  in Windows.

Please advise it

Thanks

Duncan

Author

Commented:
ANd let you know , my PC is not acted for server that is okay to make my windows to be case senitive ?
since I would like to run jar of java program for extracting file, tar libary has such file AA.class aa.class files....etc..

Author

Commented:
And probably, I need to install IIS in my windows vista if I want to my file system to be case senitive for such
java jar application, RIght ? Any alternative is possible , please correct me if I made any mistake, thanks
TolomirAdministrator
Top Expert 2005

Commented:
seems to me like you can use the switch mentioned above to preserve case sensitivity and when you install certain versions of  .net this is undone.

See for details:

A file system that was case sensitive becomes case insensitive after you install an update for the .NET Framework 2.0
http://support.microsoft.com/kb/929110

This problem occurs because a  problem in the original .NET Framework  2.0 Setup sets the value of the  HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\ dword:ObCaseInsensitive registry key to 1. The HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\ dword:ObCaseInsensitive registry key determines whether a file system is  case sensitive or case insensitive. If the value of this key is set to 1, the file system is treated as case  insensitive. If the value of this key is set to 0, the file system is  treated as case sensitive...Note This problem does not occur in updates for the .NET Framework 2.0 that were released after November 27, 2006.  

so in short it seems like you only need to set the switch and you are done, no need to install iis or .net for that purpose.

tolomir

Author

Commented:
In other words, I need to install .net framework 2.0 instead of my using of windows vista to solve
the case sensititve issue, Right ? Please advise


Duncan
Brian PiercePhotographer
Awarded 2007
Top Expert 2008

Commented:
just set the switch

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel\ dword:ObCaseInsensitive

Author

Commented:
I tried "dword"  before, it doesn't work, others suggest using SUA in Vista Bussiness or Ultimate, please
review my question in other links
Duncan

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_26258231.html

Author

Commented:
Switc "dword" doesn't response on Vista Home Edition, RIght ?
Brian PiercePhotographer
Awarded 2007
Top Expert 2008

Commented:
You need to create a key of Dword type
Administrator
Top Expert 2005
Commented:
download the attached file and double-click on it.

It will set the required parameter

registry.reg
TolomirAdministrator
Top Expert 2005

Commented:
restart your computer after changing the setting

Author

Commented:
It is solved finally and thanks to all of
you to reply this email

Duncan