PDA

View Full Version : Sudokool on linux - plz help me


tech_cheetah
30-09-2005, 07:31 PM
hi friends
I have developed a game in java which is based on the popular sudoku puzzles.
preview
http://img347.imageshack.us/img347/5704/preview4mt.th.gif (http://img347.imageshack.us/my.php?image=preview4mt.gif)
U can view more information about the game in the thread
here (http://www.thinkdigit.com/forum/viewtopic.php?t=29367)
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....[/url]

desertwind
01-10-2005, 03:26 PM
Oh! Its working on my FC4 Box.
i just gave the command

java -jar Sudokool.jar

Well. but theres seems a problem for me. No numbers at all. all i see is some dots all over.
http://img108.imageshack.us/img108/2113/screenshotsudokool2fe.th.png (http://img108.imageshack.us/my.php?image=screenshotsudokool2fe.png)

tech_cheetah
01-10-2005, 07:45 PM
which jre are u using on ur FC4?
I mean u seem to have upgraded the default jre1.4 to jre1.5.
if so plz tell me the source ie. rpm,or source ,better give me the link.
Well i think the problem lies in the layout manager of java in linux.
The same problem occured when i gave wrong size to buttons in windows.

desertwind
01-10-2005, 07:50 PM
i use jre1.5.0 update 5. No, i havent upgraded, it was a fresh install.

Downloaded it from java.sun.com

tech_cheetah
01-10-2005, 07:57 PM
The problem might have solved if i had given resizing option.But i didn't give it to avoid any improper layout of buttons on resizing window.
Why don't u try to change resolution of ur screen.

desertwind
01-10-2005, 10:40 PM
I'm already on 1024x768. Do i need more resolution ?

tech_cheetah
02-10-2005, 08:08 PM
no ,what i meant was that u change ur resolution... since u r now at 1024x768 plz try 800x600 ... may be that bring some change in the layout.

e-freak
02-10-2005, 08:49 PM
I am getting this message when i use java -jar Sudokool.jar

Invalid or corrupt jarfile Sudokool.jar

I am using jre1.4.2

desertwind
02-10-2005, 11:22 PM
@e-freak: He has clearly mentioned here (http://www.thinkdigit.com/forum/viewtopic.php?t=29367) that this one will work smoothly on jre 1.5.0. Try using it.

@tech_cheetah: I tried 800x600, but still it doesnt seems to work. still shows some dots instead of numbers

e-freak
03-10-2005, 10:14 AM
So much for platform independent!

tech_cheetah
03-10-2005, 06:21 PM
There might be some problem during downloading due to which the jar file got corrupted.I advise e-freak to download again.
desertwind : u r right.. we should blame Sun for the so-called platform independent technology... we can clearly c the difference in the GUI in windows and in linux. So now i will have to optimise and recompile the game for linux :x

e-freak
04-10-2005, 02:11 AM
I use Blackdown Java JRE as well as JDK. It gives me the plugin for my AMD 64 system! :D

e-freak
04-10-2005, 02:15 AM
Ok now I tried the file on Windoze and WinRaR gives me an error while extracting itself! Tech_cheetah, please check the file on the link and get back.

tech_cheetah
05-10-2005, 03:14 PM
here (http://rapidshare.de/files/5629756/Sudokool.exe.html)
u will get the exe file,which is a self extracting archive.

e-freak
05-10-2005, 11:02 PM
Uhh... I cant really say when I will have to (unfortunately) boot into Windoze...so please give me a link to the jar file as it is.

GNUrag
06-10-2005, 01:30 PM
I cant really say when I will have to (unfortunately) boot into Windoze...
heh, Maybe at your college :lol: :lol:

tech_cheetah
06-10-2005, 05:09 PM
here (http://rapidshare.de/files/5939777/Sudokool.zip.html) get the zipped archive.