Results 1 to 6 of 6
  1. #1
    ragalie is offline Member
    Join Date
    Feb 2012
    Posts
    3
    Rep Power
    0

    Default Settlers of Catan Java Applet won't load

    Hi guys,

    Right off the bat - I have ZERO java knowledge :) Did some programming some years back, but bye now it's all long gone. What I'm trying to do is load a java applet to play Settlers of Catan board game. The applet is publicly available and ppl play it just fine AFAIK, but I'm a retard and can't :)

    The project is available here - JSettlers2 - Java Settlers of Catan | Free Games software downloads at SourceForge.net

    The instructions are for monkeys - start the server first, then run the client and, if a friend wants to connect to your server, he just needs to know your IP and port number (using the client). But somehow I can't start the server. When I run the dedicated jar file (JSettlersServer), it just.. doesn't do shit. No error messages, no window, no nothing. When I try to load it via command line, I get the following message - "JDBC driver is unavailable: com.mysql.jdbc.Driver" and it just hangs there, I have to break it with CTRL+C. Friends trying to connect get the same message - Server is unavailable, connection refused.

    One more thing - I do NOT want nor need a mysql server. According to the instructions, I don't really need it if I don't want to maintain a user db, which I don't. However, I do have PostgreSQL 8.4 installed on my machine.

    Anyone has any ideas how I can start this thing?

    Thanks!

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,945
    Rep Power
    19

    Default Re: Settlers of Catan Java Applet won't load

    There's not much we can say but see if there's a start up option to not use a database.
    Which would hopefully be in any instructions?

    This is very much application specific.

  3. #3
    ragalie is offline Member
    Join Date
    Feb 2012
    Posts
    3
    Rep Power
    0

    Default Re: Settlers of Catan Java Applet won't load

    Thanks for your reply!

    Well the instructions are pretty straightforward i guess..

    SERVER STARTUP:

    Start the server with the following command (server requires Java 1.4 or higher):

    java -jar JSettlersServer.jar 8880 10 dbUser dbPass

    If MySQL or another database is not installed and running (See "Database Setup"), you will see a warning with the appropriate explanation:

    Warning: failed to initialize database: ....

    The database is not required: Without it, the server will function normally except that user accounts cannot be maintained. If you do use the database, you can give users a nickname and password to use when they log in and play. People without accounts can still connect, by leaving the password field blank, as long as they aren't using a nickname which has a password in the database.

    I tried it with both PostgreSQL service started and stopped, with the same results.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,945
    Rep Power
    19

    Default Re: Settlers of Catan Java Applet won't load

    Sounds to me like a bug in your version then.
    If you have a look in the JSettlersServer.jar using an archive/zip viewer of some sort and look in the META_INF directory and post the contents of the MANIFEST here might help.
    I'm wondering if it needs the JDBC jar file as well (that's the file that would let it talk to the database and contains that missing class). Only at that point, where it attempts to connect to the db, would it fail gracefully. Possibly.

  5. #5
    ragalie is offline Member
    Join Date
    Feb 2012
    Posts
    3
    Rep Power
    0

    Default Re: Settlers of Catan Java Applet won't load

    Here it is:

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.7.1
    Created-By: 1.5.0_26-156 (Apple Inc.)
    Main-Class: soc.server.SOCServer
    Class-Path: JSettlers.jar

    In the meantime I sent an email to the developers, hopefully they got it and will give me a hint.

    Thanks again, Tolls, much appreciated!

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,945
    Rep Power
    19

    Default Re: Settlers of Catan Java Applet won't load

    Oh well, nothing in the Class-Path there to suggest they expected a jdbc jar available.
    Which is reasonable.
    Hopefully the devs'll get back to you.

Similar Threads

  1. Test applet failing to load on browser...
    By Javasubbu in forum New To Java
    Replies: 0
    Last Post: 11-03-2011, 02:42 PM
  2. Java Applet Will Not Load.
    By PaulMoretti in forum Advanced Java
    Replies: 3
    Last Post: 08-16-2011, 05:19 PM
  3. Replies: 1
    Last Post: 08-14-2011, 03:07 AM
  4. [SOLVED] JAR applet won’t load.
    By Master Zero in forum Java Applets
    Replies: 14
    Last Post: 09-06-2008, 11:10 PM
  5. Replies: 0
    Last Post: 03-31-2008, 04:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •