Sourcetrail icon indicating copy to clipboard operation
Sourcetrail copied to clipboard

can I run Sourcetrail with openjdk11?

Open silloy opened this issue 5 years ago • 11 comments

I hava download sourcetrail, but I install jdk11,can't run?

image

silloy avatar May 29 '20 10:05 silloy

my version 2020.1.117

silloy avatar May 29 '20 10:05 silloy

when I revert to 2019.4.102, it run well?

silloy avatar May 29 '20 10:05 silloy

Using a path of the form /Library/Java/JavaVirtualMachines/<jdk_version>/Contents/MacOS/libjli.dylib should work. Please see this comment

egraether avatar Jun 02 '20 21:06 egraether

I'm closing this, please reopen if you still have issues.

egraether avatar Jun 02 '20 21:06 egraether

Hi,

I've done it myself but exactly the same problem! I used OpenJDK 11 (11.0.7+10) and 8 (1.8.0_252-b09) with the exact path you gave

image

Have a nice day

Neila142 avatar Jun 03 '20 16:06 Neila142

@Etienne-Schmitt you can try revert version to 2019.4.102, I has revert and it works well

silloy avatar Jun 04 '20 02:06 silloy

Yes ofc I already do it when I work but this is still an issue and you could reopen the issue this need to be investigated...

Neila142 avatar Jun 04 '20 02:06 Neila142

I have the exact same issue (JDK jdk1.8.0_261.jdk) and the latest Sourcetrail version Sourcetrail_2020_2_43_macOS_64bit. I've also tried JDK 14.02, but no path I've provided within settings did the trick.

Everything works, as soon as I've reverted to 2019.4.61

Zwischenablage avatar Aug 03 '20 11:08 Zwischenablage

I wonder how I should configure JRE System Library if I rum Sourcetrail with JDK 9 or later?

In the later version of JDK, there is no jar files, they use jmod instead.

无标题

Downstream1998 avatar Jan 05 '21 01:01 Downstream1998

Good point. I think we need to handle this case at https://github.com/CoatiSoftware/Sourcetrail/blob/master/java_indexer/src/main/java/com/sourcetrail/JavaIndexer.java#L89

mlangkabel avatar Jan 05 '21 10:01 mlangkabel

I just checked but it looks like the JRE System Library setting is a relict form the past when Sourcetrail was based on JavaSymbolSolver. So I tested #418 again, without anything in the JRE System Library and it works! Maybe we can remove that setting now. @Downstream1998: Is everything working fine if you leave JRE System Library empty? Or do you experience issues?

mlangkabel avatar Jan 11 '21 13:01 mlangkabel