Fabio Landoni

Greenhorn
+ Follow
since Mar 25, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fabio Landoni

Joanne Neal wrote:That's how File works.

From the javadoc for File

Instances of the File class are immutable; that is, once created, the abstract pathname represented by a File object will never change.




Ok thank you
13 years ago
I have a little problem with the file name.

This is my code:

After the renameTo I check thath "hasBeenRenamed" is true and i hask for a syste.out.println(oldFile.getName()) it gives me the old name of the file, but in the filesystem the file has been renamed!

Some one can help me?
thanks
13 years ago
Hi!
I have a problem.
The situation is the following: i wrote an application which serialize on a file (dati.dat).
The application has this structur:
- pachage application
- package gui
- file dati.dat

I make the jar of my application wiht Eclipse (export->runnubla jar).

I put the jar e the dati.dat file in a folder on linux. When I opne it with double click on the jar the application doesn't find the dati.dat file.
The jar find dati.dat only when dati.dat is in the home directory.

If I ran the jar from the shell ther is no problem. the application find the dati.dat when it's in the same folder of the jar.

I've tried the following thing:

giving then

for the path's file but the problem is still here.


Printing to screen the path, I saw that the path is correct, but...


The jar must work on Linux and on windows.
In windows I have no problem. Double clic on the jar and all work properly.

Anyone can hel me?
Thanks.
14 years ago