SWT standelone application over network [message #463566] |
Wed, 09 November 2005 04:43  |
Eclipse User |
|
|
|
Originally posted by: frederic.lebeau.websurf.be
Hello,
I'v got a problem with my swt Standelone application.
My application jar file are on the enterprise network.
My workstation start the SWT application and the java classloader loads
classes when needed.
Sometimes, when the user click on a swt button, the application shut
down...
I can reproduce the problem when i remove the network cable of my
computer...
So my question is:
Is it a java problem, or an well known swt problem...
Any solutions(we can not install the application on each workstation)
Thanks in advance
|
|
|
Re: SWT standelone application over network [message #463569 is a reply to message #463566] |
Wed, 09 November 2005 05:50  |
Eclipse User |
|
|
|
This is a Java 'problem'.
When loading classes from .jar files Java holds the .jar file open and then reads the .classes from the .jar file as needed.
If the .jar file is suddenly made inaccessible and the application requires a .class file from the .jar that has not yet been
loaded then bad things will happen.
Using Java WebStart to deploy your application to each workstation would be a way to avoid this problem.
--------
However, I don't think there's really anything wrong with deploying your application on a network server.
The 'enterprise network' should not be suddenly becoming inaccessible, there's something goofy about that.
---------------
Another cause of the problem might be a corrupted .jar file
Frederic lebeau wrote:
> Hello,
>
> I'v got a problem with my swt Standelone application.
> My application jar file are on the enterprise network.
> My workstation start the SWT application and the java classloader loads
> classes when needed.
>
> Sometimes, when the user click on a swt button, the application shut
> down...
> I can reproduce the problem when i remove the network cable of my
> computer...
>
> So my question is:
>
> Is it a java problem, or an well known swt problem...
>
> Any solutions(we can not install the application on each workstation)
>
>
> Thanks in advance
>
|
|
|
Powered by
FUDForum. Page generated in 0.04376 seconds