前提・実現したいこと
EdgeCloudSimをJAVAで実行したい
ここに質問の内容を詳しく書いてください。
JAVAを実行したいが指定されたパスがないと表示されるのはどうすればいいのか
■■な機能を実装中に以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
Simulation setting file, output folder and iteration number are not provided! Using default ones...
java.io.FileNotFoundException: scripts\sample_app1\config\default_config.properties (指定されたパスが見つかりません。)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at edu.boun.edgecloudsim.core.SimSettings.initialize(SimSettings.java:125)
at edu.boun.edgecloudsim.applications.sample_app1.MainApp.main(MainApp.java:60)
Edge Devices XML cannot be parsed! Terminating simulation...
java.io.FileNotFoundException: C:\Users\user\Desktop\EdgeCloudSim-master\scripts\sample_app1\config\applications.xml (指定されたパスが見つかりません。)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:623)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:148)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:806)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
at edu.boun.edgecloudsim.core.SimSettings.parseApplicatinosXML(SimSettings.java:474)
at edu.boun.edgecloudsim.core.SimSettings.initialize(SimSettings.java:184)
at edu.boun.edgecloudsim.applications.sample_app1.MainApp.main(MainApp.java:60)
エラーメッセージ
該当のソースコード
ソースコード
試したこと
https://eng-entrance.com/java-install-env のサイトにある環境変数の設定などはすべてしました
しかし、なぜかパスがないと出ます
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー