Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8659111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:55:42+00:00 2026-06-12T15:55:42+00:00

I am trying to access some files in a device (having windows CE application

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:55:43+00:00Added an answer on June 12, 2026 at 3:55 pm

    I found the solution to above problem using JMTP library on

    http://code.google.com/p/jmtp/

    Here is my code

        package jmtp;

    import be.derycke.pieter.com.COMException;
    import be.derycke.pieter.com.Guid;
    import java.io.*;
    import java.math.BigInteger;
    import jmtp.PortableDevice;
    import jmtp.*;
    
    public class Jmtp {
    
        public static void main(String[] args) {
            PortableDeviceManager manager = new PortableDeviceManager();
            PortableDevice device = manager.getDevices()[0];
            // Connect to my mp3-player
            device.open();
    
            System.out.println(device.getModel());
    
            System.out.println("---------------");
    
            // Iterate over deviceObjects
            for (PortableDeviceObject object : device.getRootObjects()) {
                // If the object is a storage object
                if (object instanceof PortableDeviceStorageObject) {
                    PortableDeviceStorageObject storage = (PortableDeviceStorageObject) object;
    
                    for (PortableDeviceObject o2 : storage.getChildObjects()) {
    //                    
    //                        BigInteger bigInteger1 = new BigInteger("123456789");
    //                        File file = new File("c:/JavaAppletSigningGuide.pdf");
    //                        try {
    //                            storage.addAudioObject(file, "jj", "jj", bigInteger1);
    //                        } catch (Exception e) {
    //                            //System.out.println("Exception e = " + e);
    //                        }
    //                    
    
                        System.out.println(o2.getOriginalFileName());
                    }
                }
            }
    
            manager.getDevices()[0].close();
    
        }
    }
    

    Donot forget add jmtp.dll files (that comes up with jmtp download) as a native library for more info see my answer on

    http://stackoverflow.com/questions/12798530/including-native-library-in-netbeans
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to access some files stored in the application's documents directory by using
I'm creating a Windows service and am trying to access some files I added
I'm trying to access some C code via Python using ctypes, so I wrote
I am trying to create a function that will block access to some of
I'm trying to access some Ghostscript functions like so: [DllImport(@C:\Program Files\GPLGS\gsdll32.dll, EntryPoint = gsapi_revision)]
I'm having problems trying to upload files using the latest XHR 2 along with
I am trying to access some files in a directory I have under applications
I have Netbeans 7.1.2 running and I am trying to access some text files
I am trying to access the url using the shouldOverrideUrlLoading method. For some reason
I have written an application for BlackBerry devices that stores some files in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.