• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

regarding filerenameing when server is running

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am calling a method of my class as a remote method from flex and i am using blazeds .
my method is like this

String path="c://JStudio//JStudio";
public String editFactBook(String factStoreName,String oldFactBookName,String newFactBookName)
{

String class name =path+factStoreName+"\\"+oldFactBookName + ".odt";
String newClassName =path+factStoreName+"\\"+newFactBookName ;
try
{
File file =new File(class name);
File new file =new File(newClassName);
if(file.exists())
{
file.rename to(new file);

}
else
{
return "no such file";
}
}
catch(Exception e)
{
e.printStackTrace();
}
return newFactBookName;
}
It is working fine using eclipse that means i am calling this method from main.
it is not working in server side.
can anybody please help me.
 
reply
    Bookmark Topic Watch Topic
  • New Topic