glenncameronjr / voiceid

Automatically exported from code.google.com/p/voiceid
0 stars 0 forks source link

Compress back LIUM_SpkDiarization-4.7(given in voiceid-0.2/share) into jar after extracting #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I extract the folder LIUM_SpkDiarization-4.7.jar given in share folder and 
then compress it back using export from eclipse, install the setup again, the 
code stops working and gives the following error :

OSError: Subprocess <subprocess.Popen object at 0x7f63576588d0> closed 
unexpectedly [java -Xmx2048m -jar 
/usr/local/share/voiceid/LIUM_SpkDiarization-4.7.jar 
fr.lium.spkDiarization.system.Diarization --fInputMask=%s.wav 
--sOutputMask=%s.seg --doCEClustering s27]

Using voiceid-0.2 in Ubuntu-12.04

Code runs successfully but once extract LIUM_SpkDiarization-4.7.jar and 
compress back again into .jar , it stops working.Can you please help on what 
method to use for compressing?

Original issue reported on code.google.com by goelanur...@gmail.com on 3 Jul 2013 at 8:59

GoogleCodeExporter commented 9 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Yes that works!! Thanks a lot!

Original comment by goelanur...@gmail.com on 8 Jul 2013 at 2:16