[2.0.5] ImagePath: using a class as folder reference does not work when running a jar containing the images --- fixed in. 2.0.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
tracked on Github: https:/
-------
Hi , i tried to locate the image path using ("someClass/
My Project Structure
src
-main
--java
--JarMainClass
-resources
--images
---app2
----image1.png
Code:
public class JarMainClass {
public static void main(String[] args) throws IOException, URISyntaxException, FindFailed {
}
Console:
[ERROR Commons] parameter(main: JarMainClass/
[ERROR Commons] makeURL: file does not exist: C:\Users\
[ERROR Commons] parameter(main: file:/C:
[ERROR Commons] makeURL: URL protocol not implemented
1: [null, C:\Users\
Environment
sikulixapi: 2.0.5
java: 1.8
OS: Windows Server 2012 R2
Maven
---------
I am able to add path by providing absolute path (e.g. src/main/
[ERROR Commons] parameter(main: file:\C:
[ERROR Commons] makeURL: mainFile.
[ERROR Commons] parameter(main: file:\C:
[ERROR Commons] makeURL: file does not exist: C:\Users\
path:[null]
Changed in sikuli: | |
importance: | Undecided → High |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 2.0.6 |
status: | New → In Progress |
description: | updated |
Changed in sikuli: | |
status: | In Progress → Fix Committed |
importance: | High → Critical |
summary: |
[2.0.5] ImagePath: using a class as folder reference does not work when - running a jar containing the images + running a jar containing the images --- fixed in. 2.0.6 |