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

2
8 comments
Avatar
Permanently deleted user

Hi,

Did You find any solution? I've got the same error on IntelliJ IDEA 2018.1.3 x64

0

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).

0
Avatar
Permanently deleted user

Hi,

Yes I used 64-bit Java and it was solved. 

0
Avatar
Permanently deleted user

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.

1
Avatar
Permanently deleted user

Does this mean IntelliJ no longer supports compiling code with IBM JDK?

0
Avatar
Yaroslav Bedrov

Please try the latest stable build.

0
Avatar
Permanently deleted user

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.

0

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.

0

Please sign in to leave a comment.