2013-06-17 4 views
1

Java에서 vaadin 프레임 워크를 사용합니다. addComonent에서 Window(window.addComponent())까지 사용하면 프로그램에 addComponent 메서드가 표시되지 않습니다. 문제가 무엇입니까?Java Vaadin IntelliJ Idea

+0

Alt + Enter를 누르면 나타나는 옵션은 무엇입니까? 또한 빨간색 텍스트 위로 마우스를 가져 가면 어떤 메시지가 표시됩니까? – Dropout

+0

빨간색 텍스트가 없습니다. 아무런 문제없이, Tomcat 서버에서 프로그램을 실행할 때 java.lang.NoShuchMethodError : com.vaadin.ui.Window.setContent (Lcom/vaadin/ui/Component;))와 같은 오류가 발생했습니다 – user2492630

+0

아래 답변. Btw,이 http://plugins.jetbrains.com/plugin/?idea&id=6727을 사용하고 있습니까? – Dropout

답변

0

프로젝트 구조 설정 (라이브러리 탭)을 통해 JAR을 포함시켜보십시오. 이 단계를 통해 IDEA를 사용하여 Vaadin을 설정하는 방법을 단계별 가이드로 확인하는 데 도움이되지 않는 경우 :

1) Download the Vaadin JAR

2) If not already done, install a Tomcat server

3) Start IntelliJ and create new project from scratch (all steps below are performed with IntelliJ 9)

4) Type of project is Java Module and as desired technology you select Web Application. This will create the web folder, including the WEB-INF dir and a web.xml file

5) Create a web/WEB-INF/lib folder and place the Vaadin JAR into that folder

6) Goto Project Structure | Modules and let your module depend on the Vaadin JAR. Mark it as export

7) Create a HelloWorld class and adjust your web.xml file, as described in the book of Vaadin

8) To run/debug, create a new "Tomcat Server" configuration. If not yet present, configure a Tomcat server by providing the link to the installation dir of your Tomcat server

+0

이 단계가 도움이되지 않으면 웹 브라우저에서 – user2492630

+0

과 같은 오류가 발생합니다. HTTP 상태 500 - java.lang.NoSuchMethodError : com.vaadin.ui.Window.setContent (Lcom/vaadin/ui/Component)) V – user2492630

+0

setContent가 정의되었습니다. 이렇게 : setContent (Component content) .. "Lcom/vaadin/ui/Component;"를 설정하려고하는 이유는 무엇입니까? setContent 메서드의 구성 요소로? 예를 들어 세미콜론은 무엇입니까? "V"가 무엇입니까? – Dropout