(私の英語は申し訳ありません、Google翻訳を使用しています) javafx.fxml.LoadException: ファイル:/ C:/Users/soare/Documents/NetBeansProjects/ProjetoAcademia/dist/run502448431/ProjetoAcademia.jar!/私は覚えているものを変更しませんでした。 projetoacademia/FXMLDocument.fxml私のプログラムは突然動いていませんでしたが、私は覚えているものを変更しなかったので、今度は2番目のエラーが出ます:javafx.fxml.LoadException
私のメインクラス:
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class ProjetoAcademia extends Application {
@Override
public void start(Stage stage) throws Exception {
try {
Parent root = FXMLLoader.load(getClass().getResource("FXMLDocument.fxml"));
Scene scene = new Scene(root);
stage.setScene(scene);
stage.setTitle("Sistema de Gerenciamento de Controle de Academia do IFPI (SGCA-IFPI)");
stage.show();
} catch (Exception error) {
System.out.println("aqui>>>>" + error + "<<<<<");
}
}
public static void main(String[] args) {
launch(args);
}
}
ここに私のプログラムの残りの部分があります(Iプラットフォームのトンのグリッド) 4SharedまたはMega
これは私のSQLコードです:
I did not change anything that I remember
そして、その問題を解決するには、バージョン管理と呼ばれている:
create table matricula (
cpf integer NOT NULL,
rg integer NOT NULL,
cod_matricula character varying primary key NOT NULL,
)
create table aluno(
nome character varying NOT NULL,
telefone integer NOT NULL,
idade integer NOT NULL,
email character varying NOT NULL,
id_aluno serial NOT NULL,
cod_matricula_alunofk character varying NOT NULL
)
create table professor
( nome character varying NOT NULL,
idade integer NOT NULL,
id_professor serial NOT NULL,
cod_matricula_professorfk character varying NOT NULL,
telefone integer NOT NULL,
email character varying NOT NULL
)
create table servidor(
nome character varying NOT NULL,
idade integer NOT NULL,
id_servidor serial,
cod_matricula_servidorfk character varying NOT NULL,
telefone integer NOT NULL,
email character varying NOT NULL
)
create table indicacao_medica
(tipos_aparelho character varying NOT NULL,
observacao character varying,
id_indicacao serial NOT NULL
)
create table inscricao
(turno character varying NOT NULL,
id_inscricao serial NOT NULL,
id_alunofk integer,
id_indicacaofk integer,
id_professorfk integer,
id_servidorfk integer
)
プロジェクトのディレクトリ構造はどのように見えますか? .fxmlファイルを移動しましたか? –
あなたのプログラムは外部ファイルを開くのに問題があるようです。例外メッセージに指定されたファイルはまだ存在しますか?テキストエディタなどの別のプログラムで開くことができますか? –
ありがとうございました。私は、 "clTurnoT.setCellValueFactory(new PropertyValueFactory <>(" turno "));行を削除するときにエラーを停止させることができました; "private void initialize"のうちの1つ。私はそれがコントローラのコードではなく、FXMLではないことに気づいたので、エラー –