Comments (10)
The link for the JavaFX 11 docs is: https://openjfx.io/javadoc/11/
A link to the each of the JavaFX modules javadoc jars can be found in Maven central, like:
https://repo1.maven.org/maven2/org/openjfx/javafx-graphics/11.0.1/javafx-graphics-11.0.1-javadoc.jar
or you can download it from your Gradle/Maven build, like:
compile "org.openjfx:javafx-graphics:11.0.1:javadoc"
(same goes for sources)
IntelliJ pics up all the sources/javadoc from the dependencies, I'm not sure if NetBeans can do the same. I've tried to add it to the JavaPlatform sources/JavaDoc tabs to no avail (NetBeans 10.0vc4).
Do you know how to include those javadocs jars on NetBeans?
from openjfx-docs.
Sorry, I don't have a clue. Will play around and see if I can get it to work.
from openjfx-docs.
Some more insights from my end
I have tried various ways to attach the javadocs using the path given above. In all cases I get errors saying "No javadoc for javafx-controls-11-win.jar available." Note the -win in the filename.
The same happens when I want to attached sources from the src.zip from the sdk: "No sources for javafx-controls-11-win.jar available." Again the reference to -win.
When I right-click on the dependencies and click on "Download sources" various steps have been executed downloading javadoc and sources and placing them under .gradle\caches\modules-2\files-2.1\org.openjfx\javafx-*
. So it seems that Netbeans gets confused by the dependency to the -win jars and doesn't find the sources/javadocs without that part in the filename.
Observation: Initially the error message in Netbeans is
Javadoc not found. Either Javadoc documentation for this item does not exist or there is no attached Javadoc to the JAR file containing this item:XXX\.gradle\caches\modules-2\files-2.1\org.openjfx\javafx-controls\11\af8d24de44e16a19ae959028eb23a48c145fb682\javafx-controls-11-win.jar
When I manually rename javafx-controls-11-javadoc.jar to javafx-controls-11-win-javadoc.jar it changes to only
Javadoc not found. Either Javadoc documentation for this item does not exist or you have not added specified Javadoc in the Java Platform Manager or the Library Manager.
So the -win seems to be significant. Probably, after finding the javafx-controls-11-win-javadoc.jar in the proper location then something inside the jar file is missing -win so that parsing fails. But I surely don't know enough here to have any clues.
from openjfx-docs.
Are there some news about this?
I think netbeans takes the source files (eg javafx-graphics-12-ea+4-sources.jar) for the javadoc rendering (strg+space)
If I rename it from javafx-graphics-12-ea+4-sources.jar to javafx-graphics-12-ea+4-win-sources.jar under the gradle cache it works.
So Netbeans has a Problem with the missing -win .....
from openjfx-docs.
No news from end only. I only made the file name changes in the gradle cache and now it works on my end as well :-) Thanks for the tip! At least, we have a workaround now...
from openjfx-docs.
Playing with the workaround, it works fine, with the following consideration: NetBeans only adds javadoc/source jars for a jar with the exact same name and -javadoc
/-source
suffix.
This means that depending on how the dependencies are added to the project, you will have to apply a different solution.
If you use the local JavaFX SDK, where each module has a jar like javafx.graphics.jar
(not empty), then you will need to add to NetBeans->Tools->Java Platforms->JDK 11 -> JavaDoc a jar like javafx-graphics-javadoc.jar
(same applies for sources, and other modules).
If you use Maven or Gradle, then the modules are javafx-graphics-11.0.1.jar
(empty) and javafx-graphics-11.0.1-win.jar
(or -mac, -linux). Then the fix, as mentioned, will be adding javafx-graphics-11.0.1-win-javadoc.jar
(same applies for sources, and other modules).
from openjfx-docs.
Sounds like something worth documenting :-)
Any idea how this could e.g. be included in build.gradle to avoid the manual workaround? Unfortunately, I don't have any clue how this could be achieved...
from openjfx-docs.
For reference:
Maven workaround: https://stackoverflow.com/questions/54278159/javafx-11-in-netbeans-10-with-maven-has-no-sources-javadocs
NetBeans related issue: https://issues.apache.org/jira/browse/NETBEANS-1396
from openjfx-docs.
For java and javafx using OpenJDK, try adding
/usr/share/doc/openjdk-11-doc/api/java.base/
or any /usr/share/doc/openjdk-xxxx/java.base/
to your platform javadocs.
The folder you choose should just contain a java
and a javafx
folder.
derived from solution suggestion for jre 11: https://stackoverflow.com/a/57131296/9597363
from openjfx-docs.
I created NETBEANS-3296 to track all the errors related to using the JavaFX Javadoc and Sources in NetBeans. An identical copy of the issue description is on GitHub at jgneff/netbeans-doc-src.
from openjfx-docs.
Related Issues (20)
- Generic Error
- The type javafx.fxml.FXMLLoader is not accessible HOT 1
- Can not generate working jar
- Failed to execute goal org.openjfx:javafx-maven-plugin:0.0.8:run (default-cli) on project demo3: Error HOT 1
- javac command fails to find javafx.controls with openjfx 18.0.2 HOT 1
- TableView Scroll to bottom issue and adding graphics to the cell
- JavaFX HelloWorld Failed to run HOT 1
- JavaFX 20 release
- Class com.sun.glass.ui.monocle.MonocleWindow does not define or inherit method _updateViewSize(long)
- Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found HOT 2
- javaFX - Run time error - Graphics Device initialization failed HOT 1
- Doesn't work on Apple M1 Mac --> Error. Warning
- Text cannot show some unicode String like "๐ธ๐น๐๐"
- JavaFX runtime components are missing, and are required to run this program HOT 2
- ไธ่ชๅทฑๆไธไธช่ๆๆถๅ๏ผๆฐๅปบไธช้กน็ฎ้ฝๆฅ้
- JavaFX 21 release
- Graphics Device initialization failed for : es2, sw Error initializing QuantumRenderer: no suitable pipeline found HOT 2
- java.lang.module.FindException: Module JavaFXApp not found
- The desired archetype does not exist (org.openjfx:javafx-maven-archetypes:0.0.6) HOT 1
- the javaFX documentation page do not work! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openjfx-docs.