Open GoogleCodeExporter opened 8 years ago
Hi, this is a bit unusual question. I can just suggest you to type the java
command line that gives the error directly in shell and see what happens.
Before you do that, run once the vid script with your options and the -k flag,
which keeps all the intermediate files; otherwise the java command can give you
errors about missing files, which can confuse you.
I think you can better understand what differs between the two jars if you look
into them; the command jar -tvf file.jar can give you a hint: it shows what
dirs or files are in the jar.
Remember that a jar is basically a zip file with a different extension, so you
can also open it using winzip, winrar or 7zip on windows, or file-roller on
linux.
Original comment by maurome...@gmail.com
on 3 Jul 2013 at 9:40
Thanks for your reply!!I used the command jar -tvf file.jar and found that some
of the files are indded missing.Here is the method I used:
I extracted the jar folder using file-roller on linux.I create a new java project in eclipse and give it the same name as extracted folder so that it includes all the classes and java files of the extracted folder.But what I found was that it somehow does not have the files of some of the folders , example: javax.
Is there any solution that you might suggest to convert extracted files into
jar files again?
Original comment by goelanur...@gmail.com
on 8 Jul 2013 at 5:49
I usually put in a dir all I want to have in the jar.
Then I cd into that dir and ran the command
`jar cvf /path/to/jar_file.jar *`
The jar file path _must_ be in another dir.
It works also for adding to existing jars, but I recommend you to always build
a new one.
Hope this helps!
Original comment by maurome...@gmail.com
on 8 Jul 2013 at 9:04
Yes that works!! Thanks a lot!
Original comment by goelanur...@gmail.com
on 8 Jul 2013 at 2:16
Original issue reported on code.google.com by
goelanur...@gmail.com
on 3 Jul 2013 at 8:59