Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsDiscussion Forum → minor java coding question
minor java coding question
2007-05-28, 3:42 PM #1
I have a GUI that allows a user to specify a filename for a .csv file that is going to be written and I want to build a jar file from the source code. However, when I run the .jar file and specify the name of the file (in the GUI) to be written, the output file is not written. Anyone know what I am doing incorrectly here? It's been a while since I've done file output with .jar.
2007-05-28, 3:57 PM #2
Are you specifying a path or just a filename? It sounds like you're trying to write to the jar.
Detty. Professional Expert.
Flickr Twitter
2007-05-28, 3:59 PM #3
Just a filename. Let's assume that upon running the jar, it should write a .csv file. Do I need to specify a full path for the jar to write to?
2007-05-28, 4:02 PM #4
do a sysout on the absolute path of the file object.
Detty. Professional Expert.
Flickr Twitter
2007-05-28, 4:17 PM #5
Ah, I got it. Thanks Detty.

↑ Up to the top!