java.lang.ClassNotFoundException [JavaFx - ObjectProperty]

时间:2015-01-23 09:09:43

标签: java web-services javafx object-property

我在aws服务器上的tomcat上设置了一个WebService。

代码抛出异常:

23-Jan-2015 08:44:07.941 SEVERE [http-nio-8080-exec-4] null.null javafx/beans/property/ObjectProperty
 java.lang.NoClassDefFoundError: javafx/beans/property/ObjectProperty
    at scrabble.webService.ScrabbleGame.<init>(ScrabbleGame.java:72)
    at scrabble.webService.ScrabbleWS.createScrabbleGame(ScrabbleWS.java:151)
    at scrabble.webService.ScrabbleWS.createGame(ScrabbleWS.java:84)

客户端调用构造函数来创建新游戏:

public final class GameManager {


private Board board;
private LettersBank bank;
private String gameName;

private Player[] players;
private final ArrayList<String> resignedPlayers;
private int currentPlayerIndex = 0;

final private ObjectProperty<Player> currentPlayerProperty; <<<<

final private BooleanProperty gameFinishedProperty;
private boolean isLastRound = false;
private boolean isEndGame = false;

public GameManager() {
    this.computerFinishedPlayingProperty = new SimpleBooleanProperty();
    this.gameFinishedProperty = new SimpleBooleanProperty(false);
    this.currentPlayerProperty = new SimpleObjectProperty<Player>();
    this.board = null;
    this.gameName = "";
    this.resignedPlayers = new ArrayList<String>();
    this.bank = new LettersBank();
    computerFinishedPlayingProperty.set(false);
}  

我认为&lt;&lt;&lt;&lt;&lt; 的行是问题所在。

0 个答案:

没有答案