Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

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.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 30-09-2005, 07:31 PM   #1 (permalink)
Broken In
 
tech_cheetah's Avatar
 
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
Default Sudokool on linux - plz 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 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]
tech_cheetah is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 01-10-2005, 03:26 PM   #2 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

Oh! Its working on my FC4 Box.
i just gave the command

Code:
java -jar Sudokool.jar
Well. but theres seems a problem for me. No numbers at all. all i see is some dots all over.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 01-10-2005, 07:45 PM   #3 (permalink)
Broken In
 
tech_cheetah's Avatar
 
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
Default

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.
tech_cheetah is offline  
Old 01-10-2005, 07:50 PM   #4 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

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
desertwind is offline  
Old 01-10-2005, 07:57 PM   #5 (permalink)
Broken In
 
tech_cheetah's Avatar
 
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
Default

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.
tech_cheetah is offline  
Old 01-10-2005, 10:40 PM   #6 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

I'm already on 1024x768. Do i need more resolution ?
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 02-10-2005, 08:08 PM   #7 (permalink)
Broken In
 
tech_cheetah's Avatar
 
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
Default

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.
tech_cheetah is offline  
Old 02-10-2005, 08:49 PM   #8 (permalink)
Apprentice
 
Join Date: Jun 2005
Location: Mumbai
Posts: 74
Default

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.
e-freak is offline  
Old 02-10-2005, 11:22 PM   #9 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default

@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
desertwind is offline  
Old 03-10-2005, 10:14 AM   #10 (permalink)
Apprentice
 
Join Date: Jun 2005
Location: Mumbai
Posts: 74
Default

So much for platform independent!
__________________
Let the windows open and the penguins come in.
------------------
Regards,
Sanket Medhi.
e-freak is offline  
Old 03-10-2005, 06:21 PM   #11 (permalink)
Broken In
 
tech_cheetah's Avatar
 
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
Default

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
tech_cheetah is offline  
Old 04-10-2005, 02:11 AM   #12 (permalink)
Apprentice
 
Join Date: Jun 2005
Location: Mumbai
Posts: 74
Default

I use Blackdown Java JRE as well as JDK. It gives me the plugin for my AMD 64 system!
__________________
Let the windows open and the penguins come in.
------------------
Regards,
Sanket Medhi.
e-freak is offline  
Old 04-10-2005, 02:15 AM   #13 (permalink)
Apprentice
 
Join Date: Jun 2005
Location: Mumbai
Posts: 74
Default

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.
e-freak is offline  
Old 05-10-2005, 03:14 PM   #14 (permalink)
Broken In
 
tech_cheetah's Avatar
 
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
Default

here
u will get the exe file,which is a self extracting archive.
__________________
Be honest . By that way u can be sure that the world is short of atleast one rascal.
tech_cheetah is offline  
Old 05-10-2005, 11:02 PM   #15 (permalink)
Apprentice
 
Join Date: Jun 2005
Location: Mumbai
Posts: 74
Default

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.
e-freak is offline  
Old 06-10-2005, 01:30 PM   #16 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default

Quote:
Originally Posted by e-freak
I cant really say when I will have to (unfortunately) boot into Windoze...
heh, Maybe at your college
__________________
- --
http://www.MovieAB.com - A tiny movie mashup!
GNUrag is offline  
Old 06-10-2005, 05:09 PM   #17 (permalink)
Broken In
 
tech_cheetah's Avatar
 
Join Date: Jul 2005
Location: Gurgaon
Posts: 150
Default

here get the zipped archive.
__________________
Be honest . By that way u can be sure that the world is short of atleast one rascal.
tech_cheetah is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 05:04 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2