Results 1 to 7 of 7

Thread: Mario in java

  1. #1
    ryozkidz is offline Member
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    0

    Default Mario in java

    I have downloaded a public source of mario game from the official website of mario ai competition 2010.
    And when I tried to run the game, it pops out some error as below:
    java.lang.ClassLoader.defineClass1
    java.lang.ClassLoader.defineClass
    java.security.SecureClassLoader.defineClass
    java.net.URLClassLoader.defineClass
    java.net.URLClassLoader.access$000
    java.net.URLClassLoader$1.run
    java.security.AccessController.doPrivileged
    java.net.URLClassLoader.findClass
    java.lang.ClassLoader.loadClass
    sun.misc.Launcher$AppClassLoader.loadClass
    java.lang.ClassLoader.loadClass
    java.lang.ClassLoader.loadClassInternal

    Does this mean that I have some missing libraries that yet to be installed into my java compiler?

  2. #2
    DerekRaimann is offline Member
    Join Date
    Dec 2010
    Posts
    45
    Rep Power
    0

    Default I think I figured it out

    I saw your post and decided to give the Mario AI 2010 script a try. I was able to get it to run successfully, but only after placing it in a directory that is in my classpath. I have a directory called C:\javadev\java in my ClassPath environment variable. I copied the MarioAI folder to that folder, and then went to the C:\javadev\java\MarioAI\bin directory and ran the following command:

    java ch.idsia.scenarios.Main

    If this isn't done that way I described (meaning the MarioAI folder must either be in your ClassPath, or in as a subdirectory in a ClassPath folder) I don't believe it will work because it can't find the other classes it needs to run. Please let me know if this works for you, the program is really cool!

    -Derek

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  4. #4
    DerekRaimann is offline Member
    Join Date
    Dec 2010
    Posts
    45
    Rep Power
    0

    Default

    In the instructions were on the download page for how to execute the program, but they never explained that the files should be contained under a folder specified in your ClassPath environment variable. That was the part I had to figure out, but the program worked fine after that. Did you try to run it again?

    -Derek

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by DerekRaimann View Post
    In the instructions were on the download page for how to execute the program, but they never explained that the files should be contained under a folder specified in your ClassPath environment variable. That was the part I had to figure out, but the program worked fine after that. Did you try to run it again?

    -Derek
    Then why don't you post an article there, if you they allowed, about the configuration. I think there must explanation about the configurations as well, since it's not works fine at once, isn't it?

  6. #6
    DerekRaimann is offline Member
    Join Date
    Dec 2010
    Posts
    45
    Rep Power
    0

    Default

    I haven't posted on the site yet, but I surely will. Perhaps they included the instructions somewhere else or assumed people would be placing the folder of files in one of their ClassPath folders, however assumptions are always bad to make! ;) I will make a post on their site and let them know.

    -Derek

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Posting Permissions

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