• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File-logging program working in Windows, but not in Linux

 
Denise Advincula
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have an application which writes every processing tasks to a file.

The application is in an executable jar format. In windows, it's working perfectly and the log file is also being successfully written unto.
When I deployed (copy-paste) the jar to linux, and run it by java -jar command, it still worked fine. However, the logging functionality didn't work.

I'm looking at folder permissions so I changed the folder permissions where the log file is supposed to land. I used the System.getProperty(user.dir) as the folder where the log file will be stored. There are no exceptions being thrown as well so I don't know where the error is coming from...

This and all others, I couldn't figure out why log file isn't being created.

I hope you can help me out here. Thanks in advance!
 
Denise Advincula
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

For some unknown reason, it has suddenly worked. I am not really sure if this solved the problem: I did a very simple java program in the same folder that just writes a file in that current folder.

Then when I tried my application again, it mysteriously logs to the file now.

Anyway, thanks!
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic