| Forum |
|
|||||||
| Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Broken In
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
|
I have developed a game in java which is based on the popular sudoku puzzles. preview ![]() U can view more information about the game in the thread 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....[/url] |
|
|
| Advertisements. Register and be a member of the community to get rid of them. | |
|
Advertisement
|
|
|
|
#2 (permalink) |
|
Wise Old Owl
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
|
Oh! Its working on my FC4 Box.
i just gave the command Code:
java -jar Sudokool.jar
__________________
Sometime you'll think you understand everything ...Then you'll regain consciousness |
|
|
|
|
#3 (permalink) |
|
Broken In
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
|
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.
__________________
Be honest . By that way u can be sure that the world is short of atleast one rascal. |
|
|
|
|
#4 (permalink) |
|
Wise Old Owl
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
|
i use jre1.5.0 update 5. No, i havent upgraded, it was a fresh install.
Downloaded it from java.sun.com
__________________
Sometime you'll think you understand everything ...Then you'll regain consciousness |
|
|
|
|
#5 (permalink) |
|
Broken In
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
|
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.
__________________
Be honest . By that way u can be sure that the world is short of atleast one rascal. |
|
|
|
|
#7 (permalink) |
|
Broken In
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
|
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.
__________________
Be honest . By that way u can be sure that the world is short of atleast one rascal. |
|
|
|
|
#8 (permalink) |
|
Apprentice
Join Date: Jun 2005
Location: Mumbai
Posts: 74
|
I am getting this message when i use java -jar Sudokool.jar
Invalid or corrupt jarfile Sudokool.jar I am using jre1.4.2
__________________
Let the windows open and the penguins come in. ------------------ Regards, Sanket Medhi. |
|
|
|
|
#9 (permalink) |
|
Wise Old Owl
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
|
@e-freak: He has clearly mentioned here 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
__________________
Sometime you'll think you understand everything ...Then you'll regain consciousness |
|
|
|
|
#11 (permalink) |
|
Broken In
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
|
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 |
|
|
|
|
#13 (permalink) |
|
Apprentice
Join Date: Jun 2005
Location: Mumbai
Posts: 74
|
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.
__________________
Let the windows open and the penguins come in. ------------------ Regards, Sanket Medhi. |
|
|
|
|
#15 (permalink) |
|
Apprentice
Join Date: Jun 2005
Location: Mumbai
Posts: 74
|
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.
__________________
Let the windows open and the penguins come in. ------------------ Regards, Sanket Medhi. |
|
|
|
|
#16 (permalink) | |
|
FooBar Guy
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
|
Quote:
__________________
- -- http://www.MovieAB.com - A tiny movie mashup! |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|