Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » [Java] issues creating a file
[Java] issues creating a file [message #666611] Thu, 21 April 2011 10:09
nicholas pacini is currently offline nicholas paciniFriend
Messages: 31
Registered: December 2010
Member
hello all,

I'm working at a java plugin that has a command that should create files in the project from which it is called.

I've tried this approach:
File result = new File(file);
result.createNewFile();


where file is defined with the following format:
platform:/resource/project/filename


when the code is executed i get a java.io.IOException that says that the syntax of the file, directory or volume is not correct.

So i wanted to ask: is there someway to create a new file using that path format? (I mean the one starting with platform:/resource). Or is there some other workaround?

thanks,
Nicholas
Previous Topic:How to create a project in another Workspace programatically?
Next Topic:debug java class launched by ant task
Goto Forum:
  


Current Time: Tue Mar 19 11:14:40 GMT 2024

Powered by FUDForum. Page generated in 0.03365 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top