JavaFX와 같은 jar 파일에 대해 Eclipse에서 소스 또는 JavaDoc을 첨부하는 방법은 무엇입니까?
현재 저는 JavaFX로 작업하고 있습니다. JavaFX 메서드 위로 마우스를 가져갈 때마다 다음 오류가 발생합니다.
'Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found'
이 문제를 어떻게 해결해야합니까? 메소드에 대한 설명을 볼 수 있도록 javadoc 또는 소스를 어떻게 첨부 할 수 있습니까?
- JavaDocs가 포함 된 jar 파일을 다운로드합니다.
- 프로젝트 의 빌드 경로 페이지를 엽니 다 (오른쪽 클릭, 속성 , 자바 빌드 경로 ).
- 라이브러리 탭을 엽니 다 .
- 해당 라이브러리 (JavaFX)의 노드를 확장합니다.
- JavaDoc 위치를 선택 하고 편집을 클릭 합니다.
- Javadoc (방금 다운로드 한 파일)이 포함 된 파일의 위치를 입력하십시오.
jar를 다운로드하여 Javadocs를 구성 할 수 있습니다. 기본적으로 javadocs는 인터넷에서 직접 참조됩니다.
완료 단계 :
- 프로젝트의 빌드 경로 페이지를 엽니 다 (오른쪽 클릭, 속성, Java 빌드 경로).
- 라이브러리 탭을 엽니 다.
- 해당 라이브러리 (JavaFX)의 노드를 확장합니다.
- JavaDoc 위치를 선택하고 편집을 클릭하십시오.
- Javadoc이 포함 된 파일의 위치를 입력하십시오. 특히 javaFX javadoc의 경우 http://docs.oracle.com/javafx/2.0/api/를 입력 하십시오.
오프라인 javadocs의 경우 http://www.oracle.com/technetwork/java/javase/documentation/java-se-7-doc-download-435117.html 에서 다운로드 할 수 있습니다 .
Accept License Agreement를 클릭 한 후 javafx-2_2_0-apidocs.zip 을 다운로드 할 수 있습니다.
어느 프로젝트 / 속성 / Javadoc의 위치 나 프로젝트 / 속성 / Java 빌드 경로 / 도서관은 내가 집어까지 저를 도왔 "에 이동하지 않았 주문 및 내보내기 "탭 " 자바 빌드 경로 ", "안드로이드 종속성"및 추가 된 라이브러리 .항아리. 도움이 되길 바랍니다.
또는 다음과 같이 할 수도 있습니다.
1) 방법을 Ctrl + 클릭하여 해당 방법으로 이동합니다. "소스를 찾을 수 없음"이라는 텍스트와 "소스 첨부 .."버튼이있는 새 탭 / 창이 열립니다.
2) "소스 첨부 .."버튼을 클릭합니다.
3) 새 창이 나타납니다. "외부 폴더"버튼을 클릭합니다.
4) JavaFX javadoc 폴더를 찾습니다. 기본 설치 설정으로 Windows를 사용하는 경우 폴더 경로는 다음과 같습니다.C:\Program Files\Oracle\JavaFX 2.0 SDK\docs
첫째, 메시지를 받으면
참고 :이 요소에는 첨부 된 소스도없고 첨부 된 Javadoc도 없으므로 Javadoc을 찾을 수 없습니다.
그러면 프로젝트에 필요한 외부 항아리가 이미 포함되어 있음을 의미합니다.
다음 단계는 외부 jar를 해당 javadoc URL과 연결하는 것입니다.
- 패키지 탐색기로 이동하여 프로젝트 폴더를 확장하고 참조 된 라이브러리를 확장합니다.
- javadoc을 연결할 외부 jar를 마우스 오른쪽 버튼으로 클릭하십시오.
- 클릭 속성-> javadoc 위치
- 온라인에서 검색 한 javadoc의 URL을 복사하여 javadoc 위치 경로에 붙여 넣습니다.
- 적용을 클릭하십시오
그리고 당신은 모두 준비되었습니다!
무엇보다도 모든 대답이 맞지만 매우 편리한 또 다른 방법이 있습니다.
전제 조건 : 프로젝트가 Maven 프로젝트이거나 Maven 프로젝트로 변환합니다.
RightclickOnProject> 구성> Maven 프로젝트로 변환
1 . 소스 또는 javadocs를 다운로드하려는 jar를 선택하십시오.
2 . RightClick> Maven> javadoc 다운로드 또는 javasources 다운로드
I couldn't get the "Attach source..." method to work either, and I tried many different ways. The Javadocs for JavaFX are installed in Program Files\Oracle\JavaFX 2.x SDK\docs. Another way to install the Javadocs is:
- Right click on the project, select Properties
- Select Libraries on the right side of the tab
- At the right top side of the tab, you may see "Default JavaFX Platform" or something similar. Click on the Manage Platforms button. (You can also install this default platform from here if you haven't got this already).
- In the Java Platform Manager tab which appears, select "Default JavaFX Platform" on the left side, and then click on the JavaFX tab on the right side of the window.
- One of the entry fields is labeled "JavaFX Javadoc". Click the "Browse" button next to this field and browse to the installed docs file mentioned above.
Hope this helps some people who were as puzzled as I was.
In addition to the answer of @dhroove (would have written a comment if I had 50 rep...)
The link has changed to: http://docs.oracle.com/javafx/2/api/
At least my eclipse wasn't able to use the link from him.
It already in a different thread, just a simple eclipse setting will automatically download JavaDoc (but, you need to click the method for first time).
Where can I download the JavaDoc for JPA 2.0?
This trick worked for me in Eclipse Luna (4.4.2): For a jar file I am using (htsjdk), I packed the source in a separate jar file (named htsjdk-2.0.1-src.jar; I could do this since htsjdk is open source) and stored it in the lib-src folder of my project. In my own Java source I selected an element I was using from the jar and hit F3 (Open declaration). Eclipse opened the class file and showed the button "Attach source". I clicked the button and pointed to the src jar file I had just put into the lib-src folder. Now I get the Javadoc when hovering over anything I’m using from the jar.
If you are using maven just do:
mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
You could specify the online Javadoc location for a particular JAR in Eclipse. This saved my day when I wasn't able to find any downloadable Javadocs for Kafka.
- 에서
Package Explorer
오른쪽 (프로젝트의 참조 된 라이브러리 또는 메이븐 의존성 또는 같은 것을 아래) 의도 된 JAR를 클릭 클릭Properties
. - 를 클릭하십시오
Javadoc Location
. Javadoc location path
Javadoc URL 아래 의 필드에 온라인 Javadoc의 URL을 입력합니다.이 URL은 대부분/<version>/javadoc/
. 예를 들어, 카프카 2.3.0의 Javadoc과은에 있습니다 http://www.apache.org/dist/kafka/2.3.0/javadoc/ (변경 할 수 있습니다https
로http
는 후 잘못된 위치 경고를 제기으로, URL에Validate...
나를 위해 클릭 ).
'program tip' 카테고리의 다른 글
Intellij 라이브 템플릿 (0) | 2020.10.14 |
---|---|
파이썬 요청 모듈에 헤더 추가 (0) | 2020.10.14 |
Typescript에서 유형을 확장 할 수 있습니까? (0) | 2020.10.14 |
순수 CSS 체크 박스 이미지 교체 (0) | 2020.10.14 |
부트 스트랩 드롭 다운에 슬라이드 효과 추가 (0) | 2020.10.13 |