Fixed compiling after location change.
Fixed compiling. Added automatic javac compilation before jar generation.
This commit is contained in:
parent
a5e5750362
commit
907b9e165b
@ -1 +1,2 @@
|
||||
jar cvfm Game.jar manifest.txt java/*.class java/config/Pokemon.txt
|
||||
javac.exe -cp java java/Game.java
|
||||
jar cvfm Game.jar manifest.txt -C java config/Pokemon.txt java/*.class
|
2
Run.bat
2
Run.bat
@ -1 +1 @@
|
||||
java -jar Game.jar -Dfile.encoding=UTF-8
|
||||
java.exe -jar Game.jar -Dfile.encoding=UTF-8
|
@ -241,7 +241,7 @@ public class Game {
|
||||
}
|
||||
/** If the file is compiled as jar, this will prevent an empty list. */
|
||||
if (pokemon.size() < 1) {
|
||||
try (Scanner file = new Scanner(Game.class.getResourceAsStream("/Pokemon.txt"))) {
|
||||
try (Scanner file = new Scanner(Game.class.getResourceAsStream("/config/Pokemon.txt"))) {
|
||||
while (file.hasNextLine()) {
|
||||
pokemon.add(new Pokemon(file.nextLine()));
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
Main-Class: Game
|
||||
Name: pokemon-cmd/package/
|
||||
Sealed: true
|
||||
Sealed: true
|
||||
|
Loading…
Reference in New Issue
Block a user