MisterTea / MAMEHub

Netplay-capable multi-machine emulator
http://www.mamehub.com
116 stars 29 forks source link

Cannot run jar after build (Ubuntu 14.04) #384

Closed Razzlegames closed 5 years ago

Razzlegames commented 7 years ago

Probably the readme just needs updating but after gradle build I cannot run the jar produced. Also, I should note, the build doesn't respect $JAVA_HOME. I had to do the following: gradle solid -Dorg.gradle.java.home=/usr/lib/jvm/java-8-oracle

java -jar solid/MAMEHubClient-0.0.1-SNAPSHOT.jar no main manifest attribute, in solid/MAMEHubClient-0.0.1-SNAPSHOT.jar

I don't see a good entry point either.

12:53:43:kyle2:Client: (master)$ grep -Rn main src/main/java/com/mamehub/client/
src/main/java/com/mamehub/client/imageflow/CrystalCaseFactory.java:6: * The original code is from Romain Guy's example "A Music Shelf in Java2D".
src/main/java/com/mamehub/client/imageflow/ImageFlow.java:6: * The original code is from Romain Guy's example "A Music Shelf in Java2D".
src/main/java/com/mamehub/client/imageflow/MainTest.java:6: * The original code is from Romain Guy's example "A Music Shelf in Java2D".
src/main/java/com/mamehub/client/imageflow/MainTest.java:82:  public static void main(String[] args) {
src/main/java/com/mamehub/client/cfg/CfgReader.java:71:  public static void main(String[] args) throws IOException {
src/main/java/com/mamehub/client/cfg/TestJoystick.java:17:  public static void main(String[] args) {
src/main/java/com/mamehub/client/cfg/CfgWriter.java:91:  public static void main(String[] args) throws IOException,
src/main/java/com/mamehub/client/cfg/InputConfigFrame.java:43:  public static void main(String[] args) {
src/main/java/com/mamehub/client/utility/HexTest.java:12:  public static void main(String[] args) throws IOException {
src/main/java/com/mamehub/client/utility/SevenZHeaderReader.java:42:    private long bytesRemaining;
src/main/java/com/mamehub/client/utility/SevenZHeaderReader.java:47:      this.bytesRemaining = size;
src/main/java/com/mamehub/client/utility/SevenZHeaderReader.java:52:      if (bytesRemaining > 0) {
src/main/java/com/mamehub/client/utility/SevenZHeaderReader.java:53:        --bytesRemaining;
src/main/java/com/mamehub/client/utility/SevenZHeaderReader.java:62:      if (bytesRemaining == 0) {
src/main/java/com/mamehub/client/utility/SevenZHeaderReader.java:66:      if (bytesToRead > bytesRemaining) {
src/main/java/com/mamehub/client/utility/SevenZHeaderReader.java:67:        bytesToRead = (int) bytesRemaining;
src/main/java/com/mamehub/client/utility/SevenZHeaderReader.java:71:        bytesRemaining -= bytesRead;
src/main/java/com/mamehub/client/utility/OSValidator.java:7:  public static void main(String[] args) {
src/main/java/com/mamehub/client/NotifyFrame.java:132:  public static void main(String[] args) {
src/main/java/com/mamehub/client/audit/DirectorySelector.java:32:  public static void main(String[] args) {
src/main/java/com/mamehub/client/audit/GameAuditor.java:341:  public static void main(String[] args) throws IOException {
src/main/java/com/mamehub/client/UpdateProfileDialog.java:43:  public static void main(String[] args) {
src/main/java/com/mamehub/client/MAMEHub.java:64:  public static void main(String[] args) throws IllegalArgumentException,
src/main/java/com/mamehub/client/MAMEHub.java:77:    // Ensure that databases are made in the main thread.
src/main/java/com/mamehub/client/MainFrame.java:144:  final JTabbedPane mainTabbedPane;
src/main/java/com/mamehub/client/MainFrame.java:414:    logger.info("Adding mainframe window");
src/main/java/com/mamehub/client/MainFrame.java:433:        logger.info("Removing mainframe window");
src/main/java/com/mamehub/client/MainFrame.java:470:    mainTabbedPane = new JTabbedPane(SwingConstants.TOP);
src/main/java/com/mamehub/client/MainFrame.java:471:    panel_3.add(mainTabbedPane);
src/main/java/com/mamehub/client/MainFrame.java:474:    mainTabbedPane.addTab("Games", null, hostGamePanel, null);
src/main/java/com/mamehub/client/MainFrame.java:722:    mainTabbedPane.addTab("Downloads", null, downloadsPanel, null);
src/main/java/com/mamehub/client/MainFrame.java:725:    mainTabbedPane.addTab("Log", null, logTabPanel, null);
src/main/java/com/mamehub/client/MainFrame.java:1329:    mainTabbedPane.setSelectedIndex(1);
src/main/java/com/mamehub/client/EmulatorUpdater.java:238:  public static void main(String[] args) throws InterruptedException {
src/main/java/com/mamehub/client/UpdateSettingsDialog.java:36:  public static void main(String[] args) {
src/main/java/com/mamehub/client/login/NewAccountDialog.java:38:  public static void main(String[] args) {
src/main/java/com/mamehub/client/login/LoginDialog.java:452:      MainFrame mainFrame = new MainFrame(rpcEngine, clientHttpServer,
src/main/java/com/mamehub/client/login/LoginDialog.java:455:      mainFrame.setVisible(true);
src/main/java/com/mamehub/client/login/LoginDialog.java:462:                mainFrame,
src/main/java/com/mamehub/client/login/LoginDialog.java:472:                mainFrame,
Razzlegames commented 7 years ago

Ok, I found a logical place to go.

java -cp solid/MAMEHubClient-0.0.1-SNAPSHOT.jar com.mamehub.client.MAMEHub

Updating the readme would be a big help ;)

Razzlegames commented 7 years ago

Ha ha, but when I try to login, it says my client is out of date (latest build). I cannot run this, for the life of me.

java -cp solid/MAMEHubClient-0.0.1-SNAPSHOT.jar com.mamehub.client.MAMEHub
SOUND FILE: /sounds/playerjoin.wav
SOUND FILE: /sounds/gamestart.wav
SOUND FILE: /sounds/ding.wav
SOUND FILE: /sounds/gamestop.wav
SOUND FILE: /sounds/startup.wav
Creating server...
Creating server...
[13:00:46,715  INFO PortOpener.java:153] ONE HOST IP ADDRESS IS 192.168.2.9
[13:00:46,717  INFO PortOpener.java:157] FORWARDING PORTS: 6805 AND 6806
[13:00:46,719  INFO PortOpener.java:174] Starting Cling...
Starting server
[13:00:46,766  INFO Server.java:254] jetty-8.0.y.z-SNAPSHOT
Starting server
[13:00:46,769  INFO Server.java:254] jetty-8.0.y.z-SNAPSHOT
[13:00:46,824  INFO AbstractConnector.java:333] Started SelectChannelConnector@0.0.0.0:8914
Blocking until shutdown
[13:00:46,824  INFO AbstractConnector.java:333] Started SelectChannelConnector@0.0.0.0:6805
Blocking until shutdown
[13:00:47,021  INFO PortOpener.java:93] Remote device available: Belkin International Share N300 Wireless N Router F7D7302 v1
[13:00:47,065  INFO UDPReflectionServer.java:30] SERVER: Waiting for packet
[13:00:47,074  INFO PortOpener.java:93] Remote device available: Belkin International Share N300 Wireless N Router F7D7302 v1
[13:00:47,112  INFO LoginDialog.java:104] Adding intro dialog
[13:00:49,907  INFO PortOpener.java:93] Remote device available: Roku Stick 3400X
[13:00:58,510  INFO LoginDialog.java:111] Got windowClosed for intro dialog
[13:00:58,510  INFO LoginDialog.java:121] Removing intro dialog
[13:00:58,510  INFO Utils.java:219] No windows left, exiting
[13:00:58,511  INFO PortOpener.java:38] Stopping Cling...
[13:00:58,609  INFO PortOpener.java:119] Before shutdown, the registry has devices: 3
[13:00:58,611  INFO PortOpener.java:125] Shutdown of registry complete!
MisterTea commented 7 years ago

Hey, this is probably because I need to push the latest client to github. I'll do it later today.

On Sat, Jul 23, 2016, 1:01 PM Kyle Luce notifications@github.com wrote:

Ha ha, but when I try to login, it says my client is out of date (latest build). I cannot run this, for the life of me.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MisterTea/MAMEHub/issues/384#issuecomment-234737264, or mute the thread https://github.com/notifications/unsubscribe-auth/AASuv83d4o5vhbAV0PcWWP_ztudFWqFhks5qYnMwgaJpZM4JTbmn .

Razzlegames commented 7 years ago

No worries friend. Great project here. Lots of fun to be had. I am running the stable release after some finagling with SDL lib paths (Ubuntu 14.04)

On Mon, Jul 25, 2016 at 8:55 AM, Jason Gauci notifications@github.com wrote:

Hey, this is probably because I need to push the latest client to github. I'll do it later today.

On Sat, Jul 23, 2016, 1:01 PM Kyle Luce notifications@github.com wrote:

Ha ha, but when I try to login, it says my client is out of date (latest build). I cannot run this, for the life of me.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <https://github.com/MisterTea/MAMEHub/issues/384#issuecomment-234737264 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AASuv83d4o5vhbAV0PcWWP_ztudFWqFhks5qYnMwgaJpZM4JTbmn

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MisterTea/MAMEHub/issues/384#issuecomment-234996428, or mute the thread https://github.com/notifications/unsubscribe-auth/AIWVf-c2wlu6OCz380AQaVilHbmyVwstks5qZNyGgaJpZM4JTbmn .

MisterTea commented 7 years ago

Alright, I just pushed the latest changes to master including revving the version number to make the client and server compatible. Let me know if you have any more issues.

On Mon, Jul 25, 2016 at 10:14 AM Kyle Luce notifications@github.com wrote:

No worries friend. Great project here. Lots of fun to be had. I am running the stable release after some finagling with SDL lib paths (Ubuntu 14.04)

On Mon, Jul 25, 2016 at 8:55 AM, Jason Gauci notifications@github.com wrote:

Hey, this is probably because I need to push the latest client to github. I'll do it later today.

On Sat, Jul 23, 2016, 1:01 PM Kyle Luce notifications@github.com wrote:

Ha ha, but when I try to login, it says my client is out of date (latest build). I cannot run this, for the life of me.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/MisterTea/MAMEHub/issues/384#issuecomment-234737264 , or mute the thread <

https://github.com/notifications/unsubscribe-auth/AASuv83d4o5vhbAV0PcWWP_ztudFWqFhks5qYnMwgaJpZM4JTbmn

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/MisterTea/MAMEHub/issues/384#issuecomment-234996428 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AIWVf-c2wlu6OCz380AQaVilHbmyVwstks5qZNyGgaJpZM4JTbmn

.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/MisterTea/MAMEHub/issues/384#issuecomment-235018958, or mute the thread https://github.com/notifications/unsubscribe-auth/AASuv-QEFTMsb_BKheWSV3-9mbCFIhhKks5qZO79gaJpZM4JTbmn .