java.lang.IllegalArgumentException: URI scheme is not "file"
890338Sep 25 2011 — edited Sep 25 2011hi,
i am a new Bee on this .. so i hope i am in the appropriate forum.
I develop java application that run on the "java web Start" - so far it is doing a good job.
I add to project some jar file that contain the following line :
44. URL url = BuildInfo.class.getProtectionDomain().getCodeSource().getLocation();
45. File file = new File(url.toURI());
46. JarFile jar = new JarFile(file);
i am getting the following Exception :
Caused by: java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.<init>(Unknown Source)
at org.openqa.selenium.internal.BuildInfo.loadBuildProperties(BuildInfo.java:45)
at org.openqa.selenium.internal.BuildInfo.<clinit>(BuildInfo.java:37)
when i try to run this application not by using the java Web Start ( using command line ) it work's 100%.
i try several thing's like :
1. add the jar to the resource jnlp file ( but failed )
2. signe the jar first - then add it to project ( but failed )
my question is what i am i doing wrong ?
i will be happy to get your help on this.
Thanks in advanced
Erezs