|
|
IO Exception
Hi,
I have a Java application which takes in either the server name or IP
address, domain name, user name and password, and copies the files
from the specified server directory to the local C drive.
It works perfectly fine when I run this on my local m/c and I can use
either the server name or the server IP address.
But when I move the jar file to a different workstation and execute it
I get an IO exception - 'Source file does not exist' when I specify
the server using its IP address. It still works on a different
workstation when I pass the server name.
Any clue as to why should it happen?
Thanks,
Beena
|
|
0
|
|
|
|
Reply
|
beenamore
|
10/21/2004 9:19:11 PM |
|
On 21 Oct 2004 14:19:11 -0700, Beena More <beenamore@gmail.com> wrote:
> Hi,
>
> I have a Java application which takes in either the server name or IP
> address, domain name, user name and password, and copies the files
> from the specified server directory to the local C drive.
>
> It works perfectly fine when I run this on my local m/c and I can use
> either the server name or the server IP address.
>
> But when I move the jar file to a different workstation and execute it
> I get an IO exception - 'Source file does not exist' when I specify
> the server using its IP address. It still works on a different
> workstation when I pass the server name.
>
> Any clue as to why should it happen?
My Crystal Ball is currently being re-adjusted. It might help if
you posted your code, and told us the exact exception (including
the stack trace).
--
Whom the gods wish to destroy they first call promising.
|
|
0
|
|
|
|
Reply
|
Stefan
|
10/21/2004 9:30:13 PM
|
|
If you show the offending line, I'm sure better assistance could be
provided.
Though, all anyone would do is read the API spec., and reiterate it to you.
Aren't you capable of this?
Speculation suggests that you are attempting to open a file for read that
doesn't exist.
--
Tony Morris
http://xdweb.net/~dibblego/
|
|
0
|
|
|
|
Reply
|
Tony
|
10/21/2004 9:31:32 PM
|
|
Hi,
Are you sure, you are NOT using loopback IP address (i.e. 27.0.0.1) when you
execute your jar on different workstation. If you are using loopback IP
address then you must change it with the server's network IP address.
Regards,
Yasir
"Beena More" <beenamore@gmail.com> wrote in message
news:8f6853fb.0410211319.68e8563b@posting.google.com...
> Hi,
>
> I have a Java application which takes in either the server name or IP
> address, domain name, user name and password, and copies the files
> from the specified server directory to the local C drive.
>
> It works perfectly fine when I run this on my local m/c and I can use
> either the server name or the server IP address.
>
> But when I move the jar file to a different workstation and execute it
> I get an IO exception - 'Source file does not exist' when I specify
> the server using its IP address. It still works on a different
> workstation when I pass the server name.
>
> Any clue as to why should it happen?
>
> Thanks,
> Beena
|
|
0
|
|
|
|
Reply
|
Yasir
|
11/1/2004 5:18:02 AM
|
|
|
3 Replies
178 Views
(page loaded in 0.086 seconds)
|
|
|
|
|
|
|
|
|