The file named jdk-7u67-windows-x64.exe
is approximately 129 megabytes in size.
WinRAR indicates that the total size of the file, including jre.msi
(~27.7MB), jre1041.MST
, and jre2052.MST
, is 29,170,176 bytes.
However, when using 7-Zip, the total size is approximately 184 megabytes, which appears to be the correct result.
Tutorials found through a Google search on how to install the JDK without admin rights all recommend using 7-Zip to extract the installer. The reason for this is unclear.
3 Answers
Introduction
Compressed files are a convenient way of storing large amounts of data in a smaller space. They are used for sharing files over the internet, archiving files, and even for installing software on computers. Zip files are a common type of compressed file, but there are others such as RAR, 7-Zip, and Tar. These compressed files can be opened using different software, and while most of them can open the same file, the contents of the file may appear different. This blog post will explain why WinRAR and 7-Zip show distinct files when opening the same compressed file.
What are WinRAR and 7-Zip?
WinRAR and 7-Zip are two popular software programs used for compressing and decompressing files. WinRAR is a proprietary software developed by RARLAB for Windows, while 7-Zip is an open-source software developed by Igor Pavlov for Windows and Linux. Both programs support a wide range of file formats and offer various compression algorithms to reduce the size of files.
How do WinRAR and 7-Zip work?
WinRAR and 7-Zip use different algorithms for compressing files, and this can affect the size of the compressed file and the way it appears when opened. WinRAR uses the RAR algorithm, which is known for its high compression ratio and ability to split large files into smaller parts. On the other hand, 7-Zip uses the LZMA algorithm, which is also known for its high compression ratio but is slower than the RAR algorithm.
When a file is compressed using WinRAR or 7-Zip, the software creates a compressed archive that contains all the files and folders that were selected for compression. The archive is then saved with a file extension that corresponds to the type of compression used. When the archive is opened using WinRAR or 7-Zip, the software decompresses the archive and displays its contents.
Why do WinRAR and 7-Zip show distinct files?
The reason why WinRAR and 7-Zip show distinct files when opening the same compressed file is due to the different algorithms used for compression. The RAR algorithm used by WinRAR is known for its ability to split large files into smaller parts, which can be useful when transferring files over the internet or when storing files on a disk with limited space.
However, when a file is compressed using WinRAR, the software creates a compressed archive that contains the files split into parts. These parts are then stored in the archive in a compressed format. When the archive is opened using 7-Zip, the software may not be able to recognize the parts of the file as they are stored in a different format. This can cause the file to appear different when opened using 7-Zip.
On the other hand, when a file is compressed using 7-Zip, the software creates a compressed archive that contains all the files and folders that were selected for compression. These files are compressed using the LZMA algorithm and stored in the archive in a compressed format. When the archive is opened using WinRAR, the software can recognize the files and folders as they are stored in a format that is compatible with the RAR algorithm. This can cause the file to appear different when opened using WinRAR.
Which software should you use?
The choice of software to use for opening a compressed file depends on the type of file and the purpose of opening it. If the file was compressed using WinRAR, it is recommended to use WinRAR to open it. Similarly, if the file was compressed using 7-Zip, it is recommended to use 7-Zip to open it. This will ensure that the file is opened correctly and all the contents are displayed.
However, if the file was compressed using a different software program, it is recommended to use a software program that is compatible with the file format. For example, if the file was compressed using Tar, it is recommended to use a software program that supports Tar files such as WinRAR or 7-Zip.
Conclusion
In conclusion, the reason why WinRAR and 7-Zip show distinct files when opening the same compressed file is due to the different algorithms used for compression. While both programs are capable of opening the same file, the contents of the file may appear different. It is recommended to use the software program that was used to compress the file, or a software program that is compatible with the file format to ensure that the file is opened correctly and all the contents are displayed.
It’s possible that the jdk-7u67-windows-x64.exe file you mentioned is actually a self-extracting archive, rather than a traditional compressed file like a .zip or .rar file. Self-extracting archives are executable programs that contain a compressed archive and can extract the files contained within them when they are run.
In this case, it’s likely that the self-extracting archive was created using a different tool than the one you’re using to extract it. This could explain why the file appears differently when you open it with different tools.
As for why tutorials might recommend using 7-Zip to extract the installer, it could be because 7-Zip is a free and open-source tool that is widely available and can handle a variety of different archive formats, including self-extracting archives. It may also be because 7-Zip has a good reputation for being easy to use and reliable.
If you have the jdk-7u67-windows-x64.exe file and you’re trying to extract it to access the files inside, you can try using 7-Zip or another tool that is capable of handling self-extracting archives. Some other tools that can extract self-extracting archives include WinRAR, WinZip, and PeaZip.
It’s worth noting that the jdk-7u67-windows-x64.exe file may not actually be a self-extracting archive, and the discrepancy in the file sizes you observed could be due to other factors. It’s possible that the file was modified or damaged in some way, or that the file size was reported incorrectly by one of the tools you used.
If you’re having trouble extracting the file or you want to understand more about why the file appears differently when you open it with different tools, it might be helpful to do some additional research or seek out additional guidance from online resources or forums.
An EXE file is not a standard archive format, but a Windows executable program.
Different installer package builders, such as Ninite, use different methods to store compressed data inside an EXE file. They do this by adding the data as a resource, which is a binary component that can be accessed by the program. An EXE file can have many resources, such as icons, images, sounds, etc.
When you try to open an EXE file with an archiver program, such as WinRAR or 7-Zip, the archiver has to guess which resource contains the data you want to extract. This is not always easy, because different installer package builders may use different resource types or names. That’s why you may see different content when you open the same EXE file with different archivers.