Results 1 to 2 of 2

Thread: Apps won't get acces to JAVA RE

  1. #1
    Join Date
    Oct 2008

    Apps won't get acces to JAVA RE


    I just installed a game, TripleA, that is supposed to run great on Ubuntu using JAVA. I extracted the game to the recommended folder but when I try to start it in the the terminal, I get the following message.

    sudo /home/"username"/.Games/TripleA/
    Exception in thread "main" java.lang.NoClassDefFoundError: games/strategy/engine/framework/GameRunner
    Caused by: java.lang.ClassNotFoundException: games.strategy.engine.framework.GameRunner
    at$ 217)
    at Method)
    at ava:205)
    at java.lang.ClassLoader.loadClass( 19)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche
    at java.lang.ClassLoader.loadClass( 64)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade
    Could not find the main class: games.strategy.engine.framework.GameRunner. Program will exit.

    I have JRE already installed via Install and Remove Applications utility. Is there something else I should do? Installing JRE manually seemed a bit troublesome... Is it "safe", i.e. will the other apps that use java still work properly?

    Thanks for your help!


  2. #2
    Join Date
    Oct 2009
    Huntsville, AL, USA
    Ubuntu 10.04 Lucid Lynx

    Re: Apps won't get acces to JAVA RE

    It's finding java just fine. The problem is finding the libraries for the game, because you are using sudo and the script is expecting the first thing you type on the line to be the program itself. Generally a bad idea to run as root unless you absolutely must anyway. Typing the following exactly should work if you don't have some bizarre permissions issue:

    cd /home/"username"/.Games/TripleA/


Posting Permissions

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