Find the answer to your Linux question:
Results 1 to 3 of 3
hi friends I have developed a game in java which is based on the popular sudoku puzzles. preview U can view more information about the game here Now the problem ...
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    10

    free sudoku in linux - help me

    hi friends
    I have developed a game in java which is based on the popular sudoku puzzles.
    preview

    U can view more information about the game
    here
    Now the problem is that the game runs only in windows.
    The main game file is an executable jar file.So double click on the file opens the game.
    But in linux the jar files gets opened and shows the archived class files.
    So plz help me ,how can i make the game run in linux ?
    I cannot use applet bcoz the game interacts with the local files for saving records.
    Moreover the java files are not compiling in linux.
    I have recently installed FC4.When i try to compile java files on terminal,it gives the following warning (in case of inheritance)
    eg.
    class now extends JFrame
    {
    ,.....
    .....
    }
    $javac now.java
    Warning: The serializable class now does not declare a static final serialVersionUID field of type long

    However the same file works perfectly well when run on Windows.The JVM on FC4 is 1.4.2 and even though i have installed the latest version of gcc(4.0.1)the problem still persists

    Plz help me....

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,789
    can u not run it with:

    Code:
    java -jar filename.jar
    obviously changing "filename.jar" to the relevent filename
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  3. #3
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Belgium
    Posts
    1,429
    It took me also some time to figure it out, but that's the way it should be done . Java is cross-platform, remember .
    ** Registered Linux User # 393717 and proud of it ** Check out www.zenwalk.org
    ** Zenwalk 2.8 - Xfce 4.4 beta 2- 2.6.17.6 kernel = Slack on steroids! **

Posting Permissions

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