Issue with compilation when running java unit tests
Answered
When I try to run junit tests in my project, IntelliJ IDEA Ultimate Edition 2018.1 is compiling and stop with an error of the type:
Error:java: Illegal character in scheme name at index 0: e:/C:/.....
It is like it is adding a prefix "e:/" to the file path. But I don't even have a "e:/" drive.I don't have the same issue with I don't have this issue with Intellij IDEA Community Edition 2017.2.2
Thanks for your help
Please sign in to leave a comment.
Hi,
Did You find any solution? I've got the same error on IntelliJ IDEA 2018.1.3 x64
Try reinstalling a JDK, use 64-bit Java if you have 32-bit one or vice versa. Change the JDK version used for the project.
If the issue persists, please provide a sample project to reproduce, idea.log and build.log (https://intellij-support.jetbrains.com/hc/articles/207241085).
Hi,
Yes I used 64-bit Java and it was solved.
Hi,
I compile project with IBM Java 1.6 because my project works on IBM WAS 7.x and with IBM Java 1.6 I've got this error.
I change java to Oracle 1.6 and I don't have such error.
Thanks for response.
Does this mean IntelliJ no longer supports compiling code with IBM JDK?
Please try the latest stable build.
I still get this problem on latest version with IBM SDK, only solution I have found it to use Oracle SDK on the project that starts to suffer from this problem.
We can investigate this issue further if you could provide a sample project to reproduce it and report the details at https://youtrack.jetbrains.com/newIssue?project=IDEA . Thank you.