Problem with Jar Files

Hi Guys,

I am facing a strange problem. I have been working on a Swing project which is about 1MB in size. After I have created a .jar file, I find that it works fine on some computers and not on others. In the computers where it will not run, it runs to the extent to opening the main window, after that the program will just not respond.

Some one suggested that it might be a problem with not having sufficient ram memory. There fore I tried running the program on various machines having 128MB and 64MB rams. While it will not run on 64MB ram machines at all the program will not run on some of the 128MB ram machines.

Can anyone tell me what is going wrong out here? Also how much memory is sufficient to run a Swing program?

Abhi

[772 byte] By [abhimanyu31] at [2007-9-26 2:51:02]
# 1

I got some similar problem once, but it was not related to memory for me. I was using threads, one of them had the maximum priority. It worked fine under linux (tested on several computers, various size of ram), and just freezed under window 98 (tested on several computers and various size of ram as well). So my question would more be on: do you use threads?

even though you might not use threads, I think you should rather try to find a link between OSes, JDK insatlled and classpath rather than memory.

remu at 2007-6-29 10:38:02 > top of Java-index,Archived Forums,Swing...