File count limit in jar ?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users File count limit in jar ?
# 1  
Old 12-31-2009
File count limit in jar ?

Hello everyone,
I am using jar to consolidate a large number of files for transfer, about 2500.
The jar command seems to work fine and it says ....adding.... files while it is building the archive. If I capture the messages to a log the log has 2500 lines each of them says I file was addedd compression info etc.
Yet when I jar -x the archive file I only re-genereate 489 files of the original 2500.
Is there a limitations on the jar command, or any of the flags I should be setting for it really to contain all the files in itself?
Please let me know.
Thanks.
# 2  
Old 12-31-2009
is the jar file > 4GB? There used to be a bug relating to filesize and 32 bit file pointers.

what does
Code:
jar -t filename.jar | wc -l

give you .... 2500?
# 3  
Old 12-31-2009
When I do the jar -tvf file I get a list of 486 entries, which is what I am able to get if I extract out from the file using jar -x.
Yet at time of creation via jar command a log file containing 2500 lines told me that all of the files went though with the ...adding..... deflate info.
Any idea?
Thanks!

---------- Post updated at 03:21 PM ---------- Previous update was at 03:20 PM ----------

The file size is not that large, less than 1Gig

---------- Post updated at 03:36 PM ---------- Previous update was at 03:21 PM ----------

Just one more piece to this puzzle ....even if the log of the jar creation contains the whole 2500 files listed one at a time, what is getting listed when I run the jar -tvf of the created file are only the last 486 of the 2500. Any reason why this would begin to make sense?

---------- Post updated at 03:45 PM ---------- Previous update was at 03:36 PM ----------

FYI ..... I am using jar for java 1.4
Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Getting the version from jar file

Hi, I am trying to retrieve the "Implementation version" from one of the .jar file The command which tried is as below. find /usr/local/platform -name "platform.jar" -exec zipgrep "Implementation-Version:" '{}' \;|awk -F ': ' '{print $2}'I am able to get the version as below 2.9.0-29But... (2 Replies)
Discussion started by: nextStep
2 Replies

2. Programming

Altering a jar file

I have a script I am trying to test and run but it runs against a jar file. I wrote an external property file so it would redirect with my script, but it keeps going in search of the previous property file. Is there any way to externally over write the jar file and if not how do you go about... (7 Replies)
Discussion started by: risarose87
7 Replies

3. UNIX and Linux Applications

Limit Website access upto specific count

Hi to all, I am new to Linux. but i am facing issue with my web server in Ubuntu 11.10. In my webserver i want to restrict maximum users website access (e.g., suppose i want to restrict users to access web to 250 persons in single time). So can you please suggest me to how to do that in... (1 Reply)
Discussion started by: Chintanghanti
1 Replies

4. Shell Programming and Scripting

Want to write all the jar name in single with delimiter ":" in beween the jar name

Hi All, I am having 7 jar files in a dir. abc like listed below bash-3.00$ cd abc bash-3.00$ ls 123.jar 23wdawd.jar dfsa23.jar dsa.jar wew234.jar adsd234234.jar dfsda423.jarNow i want to assign all this jar files to a variable in the below format ... (6 Replies)
Discussion started by: natraj005
6 Replies

5. UNIX for Dummies Questions & Answers

httpd count exceeded threshold limit

Hello Everyone, I am new to this forum and also unix/linux. Our application today threw an alert whcih read as "The users active count on host has crossed the threshold limit of 50 and is standing at 65." This was although cleared when I restarted tomcat. But I am not sure why this count... (0 Replies)
Discussion started by: ykhati
0 Replies

6. Ubuntu

Add external Jar file

Hi, how to add external jar file in jsp application on eclipse. Thanks SN:confused: (0 Replies)
Discussion started by: snallusami
0 Replies

7. UNIX for Dummies Questions & Answers

How to create a service from a jar file.

Hi, I am new to Linux. I have a executable jar file which I need to run even before the user logs in. The problem is since I don't have good information about the services in Linux its very difficult to understand the same topic posted at other forums. I have tried many things like java... (0 Replies)
Discussion started by: ankushpandit
0 Replies

8. UNIX for Dummies Questions & Answers

down in JAR file

Hello sir, I have created a jar file having some code in java.What it does is that it calls a shell code (a.sh) which is in the same directory. Now my requirement is that I want to jar the a.sh also along with the other files and want to call the a.sh which is now inside the jar file and not... (1 Reply)
Discussion started by: nsharath
1 Replies

9. Shell Programming and Scripting

Jar File Search!

Hi vgersh99, Iam sorry for that. In future, I will start new threads for different topics. Assuming that we don't know what the name of the jar file, we are searching for is, do we have any way, of finding a string or a file in it. Is there any Unix command for it? thanks. (2 Replies)
Discussion started by: pjanakir
2 Replies
Login or Register to Ask a Question