totallymorten / java-adventure-game

A small experimental multiplayer engine written in java
4 stars 1 forks source link

Build failed #1

Open dmitrykolesnikovich opened 7 years ago

dmitrykolesnikovich commented 7 years ago

build-project: [echo] Adventure: d:\workspace\java-adventure-game\build.xml [javac] d:\workspace\java-adventure-game\build.xml:30: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for rep eatable builds [javac] Compiling 98 source files to d:\workspace\java-adventure-game\bin [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7 [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:47: error: package engine does not exist [javac] import engine.JavaEngine; [javac] ^ [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:48: error: package engine does not exist [javac] import engine.Keys; [javac] ^ [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:50: error: cannot find symbol [javac] public class AdventureGame extends JavaEngine [javac] ^ [javac] symbol: class JavaEngine [javac] d:\workspace\java-adventure-game\src\adventure\game\LoginScreen.java:8: error: package engine does not exist [javac] import engine.Keys; [javac] ^ [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:59: error: cannot find symbol [javac] String className = this.getClass().getName(); [javac] ^ [javac] symbol: method getClass() [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:89: error: cannot find symbol [javac] setBackground(Color.WHITE); [javac] ^ [javac] symbol: method setBackground(Color) [javac] location: class AdventureGame [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:111: error: no suitable constructor found for Thread(AdventureGame) [javac] (new Thread(new AdventureGame(fps, args[0], args[1], args[2]))).start(); [javac] ^ [javac] constructor Thread.Thread(Runnable) is not applicable [javac] (argument mismatch; AdventureGame cannot be converted to Runnable) [javac] constructor Thread.Thread(String) is not applicable [javac] (argument mismatch; AdventureGame cannot be converted to String) [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:132: error: cannot find symbol [javac] AudioInputStream is = AudioSystem.getAudioInputStream(getClass().getResource(fileName)); [javac] ^ [javac] symbol: method getClass() [javac] location: class AdventureGame [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:155: error: cannot find symbol [javac] return ImageIO.read(getClass().getResource(name)); [javac] ^ [javac] symbol: method getClass() [javac] location: class AdventureGame [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:278: error: method does not override or implement a method from a supertype

[javac]     @Override
[javac]     ^
[javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:287: error: cannot find symbol
[javac]                     if (Keys.pull(KeyEvent.VK_ENTER))
[javac]                         ^
[javac]   symbol:   variable Keys
[javac]   location: class AdventureGame
[javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:319: error: cannot find symbol
[javac]             super.handleKeys();
[javac]             ^
[javac]   symbol:   variable super
[javac]   location: class AdventureGame
[javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:331: error: cannot find symbol
[javac]             if (Keys.pull(KeyEvent.VK_RIGHT))
[javac]                 ^
[javac]   symbol:   variable Keys
[javac]   location: class AdventureGame
[javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:335: error: cannot find symbol
[javac]             else if (Keys.pull(KeyEvent.VK_LEFT))
[javac]                      ^
[javac]   symbol:   variable Keys
[javac]   location: class AdventureGame
[javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:339: error: cannot find symbol
[javac]             else if (Keys.pull(KeyEvent.VK_UP))
[javac]                      ^
[javac]   symbol:   variable Keys
[javac]   location: class AdventureGame
[javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:343: error: cannot find symbol
[javac]             else if (Keys.pull(KeyEvent.VK_DOWN))
[javac]                      ^
[javac]   symbol:   variable Keys
[javac]   location: class AdventureGame
[javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:385: error: method does not override or implement a method from a supertype

[javac]     @Override
[javac]     ^
[javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:486: error: method does not override or implement a method from a supertype

[javac]     @Override
[javac]     ^
[javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:497: error: method does not override or implement a method from a supertype

[javac]     @Override
[javac]     ^
[javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:505: error: method does not override or implement a method from a supertype

[javac]     @Override
[javac]     ^
[javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:515: error: method does not override or implement a method from a supertype

[javac]     @Override
[javac]     ^
[javac] d:\workspace\java-adventure-game\src\adventure\game\LoginScreen.java:49: error: cannot find symbol
[javac]             if (Keys.pull(KeyEvent.VK_BACK_SPACE))
[javac]                 ^
[javac]   symbol:   variable Keys
[javac]   location: class LoginScreen
[javac] d:\workspace\java-adventure-game\src\adventure\game\LoginScreen.java:55: error: cannot find symbol
[javac]             else if (Keys.pull(KeyEvent.VK_DOWN) || Keys.pull(KeyEvent.VK_TAB))
[javac]                      ^
[javac]   symbol:   variable Keys
[javac]   location: class LoginScreen
[javac] d:\workspace\java-adventure-game\src\adventure\game\LoginScreen.java:55: error: cannot find symbol
[javac]             else if (Keys.pull(KeyEvent.VK_DOWN) || Keys.pull(KeyEvent.VK_TAB))
[javac]                                                     ^
[javac]   symbol:   variable Keys
[javac]   location: class LoginScreen
[javac] d:\workspace\java-adventure-game\src\adventure\game\LoginScreen.java:77: error: cannot find symbol
[javac]             else if (!(Keys.pull(KeyEvent.VK_SHIFT)) && Keys.hasKey())
[javac]                        ^
[javac]   symbol:   variable Keys
[javac]   location: class LoginScreen
[javac] d:\workspace\java-adventure-game\src\adventure\game\LoginScreen.java:77: error: cannot find symbol
[javac]             else if (!(Keys.pull(KeyEvent.VK_SHIFT)) && Keys.hasKey())
[javac]                                                         ^
[javac]   symbol:   variable Keys
[javac]   location: class LoginScreen
[javac] d:\workspace\java-adventure-game\src\adventure\game\LoginScreen.java:79: error: cannot find symbol
[javac]                     activeText.append(Keys.pullKeyEvent().getKeyChar());
[javac]                                       ^
[javac]   symbol:   variable Keys
[javac]   location: class LoginScreen
[javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[javac] 27 errors
[javac] 1 warning

BUILD FAILED d:\workspace\java-adventure-game\build.xml:30: Compile failed; see the compiler error output for details.

Total time: 11 seconds

totallymorten commented 7 years ago

Yeah, I'm not sure the build.xml works.

Also the game engine base: https://github.com/totallymorten/java-game-engine needs to be located in the same folder to build properly.

If you place both these projects in eclipse it should build nicely (maybe you would need to add the Engine project as a dependency for the adventure game, but that should basically be it).

If you can't get it to work, I will fix it for you so just let me know.