4 Replies Latest reply on Sep 12, 2010 5:27 AM by 843790

    File.createTempFile() throws exception on Win7


      When i call File.createTempFile() on a Win7 system it throws the following exception. This happens when i run my application as a windows service. If i run the application just as a simple java application then it works fine.

      java.io.IOException: The system cannot find the path specified
      + at java.io.WinNTFileSystem.createFileExclusively(Native Method)+
      + at java.io.File.checkAndCreate(Unknown Source)+
      + at java.io.File.createTempFile(Unknown Source)+
      + at java.io.File.createTempFile(Unknown Source)+
      + at com.ultravisual.app.client.CmdLineContextAdapter.getImageData(CmdLineContextAdapter.java:260)+
      + at com.ultravisual.pcm.routing.RoutingService.runIteration(RoutingService.java:357)+
      + at com.ultravisual.pcm.routing.RoutingServiceWindowsRunner.run(RoutingServiceWindowsRunner.java:168)+
      + at java.lang.Thread.run(Unknown Source)+

      I would really appreciate if somebody could help me out with this problem