• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java file creation problem on Linux  RSS feed

 
Norman Meister
Ranch Hand
Posts: 52
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
It is actually a very simple problem but i can't seem to solve it.

I am trying to create a simple txt or html file in my java program. It works fine but on my local windows machine (file gets created), but the file does not get created when i compile an drun it on linux machine. I have given all the project folders full rights 777, but still no file creation.



javac FileTest.java and java FileTest both work fine and i don't get any exception.
There is no console message and also there are no Test_1.html and /Test.txt files created.

Any idea?

Thanks.
 
Tony Docherty
Bartender
Posts: 3268
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the folder structure "/opt/FileTest/bin" exist?
I'm not that hot on linux but I believe a leading forward slash means from the root of the file system which isn't necessarily the root of the drive as it is on Windows systems.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!