Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse can't import org.fxmisc.richtext.model #478

Closed
ecarney1 opened this issue Apr 2, 2017 · 6 comments
Closed

Eclipse can't import org.fxmisc.richtext.model #478

ecarney1 opened this issue Apr 2, 2017 · 6 comments

Comments

@ecarney1
Copy link

ecarney1 commented Apr 2, 2017

Hi all,

I have added the fat jar file to my build path in eclipse, but I am unable to run the JavaKeywords demo because Eclipse fails to import org.fxmisc.richtext.model for some reason. It says "org.fxmisc.richtext.model cannot be resolved."

It also can't find org.fxmisc.flowless.VirtualizedScrollPane.

Anyone seen any issues like this?

Thanks!

@ghost
Copy link

ghost commented Apr 3, 2017

Which fat JAR, at what version? Related to #476 maybe?
There is new version released 3h after you posted this issue.

@ecarney1
Copy link
Author

ecarney1 commented Apr 3, 2017

I'll grab the new release. It looks like this is related to Issue #236 maybe. I can tell you that instead of following the imports in the source at the following link, I had to change to StyleSpans imports to the following. Still having no luck with VirtualizedScrollPane.

import org.fxmisc.richtext.StyleSpans;
import org.fxmisc.richtext.StyleSpansBuilder;

https://github.com/TomasMikula/RichTextFX/blob/master/richtextfx-demos/src/main/java/org/fxmisc/richtext/demo/JavaKeywords.java

@ecarney1
Copy link
Author

ecarney1 commented Apr 3, 2017

It looks like the demos jar is different from the stable release jar. I downloaded the stable release, but only the demos jar has org.fxmisc.richtext.model. I think the demos jar will solve my problem. I will confirm tonight when I get home.

@ghost
Copy link

ghost commented Apr 3, 2017

Ahh, I see - you used "outdated" fat JAR link from README. I wrote "outdated", because it's linking to the latest "stable" version, that is pretty old (1.5 years).
Demos link is using the lastest tagged version.
Use links from that page: https://github.com/TomasMikula/RichTextFX/releases

@JordanMartinez
Copy link
Contributor

I checked the "fat jar" links on the ReadMe. The only one that is "outdated" is the stable release. So, if that's the one you downloaded, that would explain why. All the other links that after their demo's screenshot use the most recent release.

Is this issue now closed?

@ecarney1
Copy link
Author

ecarney1 commented Apr 4, 2017

Yes, it works now. Issue closed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants