I am trying to access some files in a device (having "windows CE" application in it) that appears as portable device in windows 7 using java applet....
My device path is like
"Computer\Attari's Device\myfile.txt"Now i am trying to access file from it using the same address but it gives path error or file not found.
Similarly i used
"\\.\Attari's Device\myfile.txt"but it resulted in same error tell me how to access portable devices using java applet
When i navigate to connected device and right-click on file and see it's properties then it shows it's location as
Location: Computer\Attari's Device
Also when i open this file it is automatically placed in temp files of my computer. I am using Signed Applet as well so there is no issue of file access denied
I also used
File.listRoots()but it also does not list attached portable devices I have to write some file in portable device using java applet
I found the solution to above problem using JMTP library on
Here is my code
Donot forget add jmtp.dll files (that comes up with jmtp download) as a native library for more info see my answer on