Questions tagged [jmtp]

JMTP is a project aimed at allowing Java programs to access MTP compatible portable media players. The main target is currently windows, by wrapping the WPD api, but design decisions have been made to support both linux and mac os x in the future with the same API.

JMTP is a project aimed at allowing java programs to access MTP compabitble portable media players. The main target is currently windows, by wrapping the WPD api, but design decisions have been made to support both linux and mac os x in the future with the same API.

6 questions
2
votes
1 answer

Use of jmtp.jar to find portable devices attatched to linux OS

I want to monitor portable devices attached to my linux OS using jmtp.jar. Below is the code that i am using to do the same. It's working fine in Windows but when i run this code it gives me "Not supported OS exception". do jmtp.jar support linux…
1
vote
1 answer

How to use a slightly modified JMTP library in Java Project?

I need to use the following library from GitHub: https://github.com/reindahl/jmtp However, there are no build instructions or any instruction how to use it for that matter. I know that the original JMTP libary was downloadable as a jar, which made…
Stxfie
  • 23
  • 2
1
vote
0 answers

Exception in thread "main" java.lang.RuntimeException

I am working on Java SWT for windows application. In this project I need to check whether a phone device is connected to system or not. For this I used JMTP.jar and org.eclipse.swt.win32.win32.x86-3.5.1.jar My code is PortableDeviceManager manager…
user2085965
  • 393
  • 2
  • 13
  • 33
0
votes
1 answer

Cannot Resolve PortableDeviceToHostImpl32 in jmtp library

I am using jmtp library and most of the code is working fine like device read , device file read and write. But when i used PortableDeviceToHostImpl32 for copy From Portable Device To Host show Cannot resolve "PortableDeviceToHostImpl32". I have…
Harish Rawal
  • 226
  • 2
  • 15
0
votes
1 answer

file.listRoots not working for a portable USB drive in Java

file.listRoots() works fine for internal file drive information, but is not getting USB and portable file info. Here is my code: File[] paths; try { // returns pathnames for files and directory paths = File.listRoots(); for (File path :…
Harish Rawal
  • 226
  • 2
  • 15
0
votes
0 answers

problems with adding jMTP API for 64 bit OS

i downloaded jMTP library for java but when i add it like every .jar file i get so many compilation errors so i researched for solutions and i found that the library does not support 64 bit JVM because of dll file who supports only 32 bit, so i…
MITMA
  • 1