2 Replies Latest reply: Mar 18, 2009 5:44 PM by 843849 RSS

    how can I create new file on windows mobile?

    843849
      hi all,
      I deployed application on Creme and windows mobile 5. But I always can not create new file on device.
      try{
        File dd = new File("\\d.txt");
        dd.createNewFile();
        System.out.println(dd.getAbsolutePath());
      } catch (IOException ex) {
        ex.printStackTrace();
      }
      I am getting following exception when I run above code.
      Environment: Netbeans 6.5 with Creme 4.12
      Microsoft Windows Mobile 5.0 MSFP Emulator Images

      java.lang.NullPointerException
      at org.netbeans.modules.j2me.cdc.project.nsicom.NSIcomExecDeployTask.execute(NSIcomExecDeployTask.java:267)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor332.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
      at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273)
      at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:499)
      at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)

      can anyone tell how to create file on mobile?

      Thank You

      Edited by: smallbeetle on Mar 13, 2009 10:46 AM