Re: Trying to extract Selenium Server in Windows = META-INF\license : could not create directory

877 views
Skip to first unread message

Mike Riley

unread,
Jan 27, 2013, 10:23:57 PM1/27/13
to seleniu...@googlegroups.com
Why?  You simply run it:
java -jar selenium-server-standalone-2.29.0.jar [options]

Mike

On Friday, January 25, 2013 1:33:16 PM UTC-8, chrismcc...@gmail.com wrote:
I am new to Selenium and currently trying to extract the server jar file (selenium-server-standalone-2.29.0.jar) on a Windows 7 PC and I am getting an error that I think is due to the fact that Windows is not case sensitive and the extraction is trying to create a directory META-INF\license when a directory META-INF\LICENSE already exists.  Does anyone know how to get around this?  Someone extracting on Windows had to have come across this...Thanks!
-Chris
 
$ jar -xvf selenium-server-standalone-2.29.0.jar
..
..
 inflated: org/cyberneko/html/xercesbridge/XercesBridge_2_3.class
java.io.IOException: META-INF\license : could not create directory
        at sun.tools.jar.Main.extractFile(Main.java:909)
        at sun.tools.jar.Main.extract(Main.java:852)
        at sun.tools.jar.Main.run(Main.java:242)
        at sun.tools.jar.Main.main(Main.java:1149)
 
$ jar -xvf selenium-server-standalone-2.29.0.jar META-INF/LICENSE
 inflated: META-INF/LICENSE.txt
 inflated: META-INF/LICENSE

$ jar -xvf selenium-server-standalone-2.29.0.jar META-INF/license
java.io.IOException: META-INF\license : could not create directory
        at sun.tools.jar.Main.extractFile(Main.java:909)
        at sun.tools.jar.Main.extract(Main.java:887)
        at sun.tools.jar.Main.run(Main.java:236)
        at sun.tools.jar.Main.main(Main.java:1149)
 

Krishnan Mahadevan

unread,
Jan 27, 2013, 10:25:49 PM1/27/13
to seleniu...@googlegroups.com
Its a windows 7 PC, so have you tried Winzip/Winrar/7 Zip and see if that helps ? If all that you are interested in doing is merely extract the contents of the jar, then it shouldnt really matter how you are extracting the contents of a jar right ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/tB0L5FdX-6IJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Bradford Thorn

unread,
Jan 28, 2014, 12:26:28 PM1/28/14
to seleniu...@googlegroups.com
Came accross this issue while working with the standalone. It's because there is a "LICENSE" file and a "license" folder in the same directory, which is a conflict under Windows. What I ended up doing was using 7-Zip to go in and rename the LICENSE files to LICENSE.file both in the root and in the META-INF directory. Don't know if doing this causes any problems, but haven't seen any so far, and should allow the extraction command to work.

Evan Burrows

unread,
Nov 9, 2016, 10:17:18 PM11/9/16
to Selenium Users
I know this is a really old thread but I am seeing this now.  Is this something that we can fix in the repo itself?  I am pushing to a PaaS and it is throwing this area and I would prefer not to rebuild the jar file after every update.  Thoughts?
Reply all
Reply to author
Forward
0 new messages