First disclaimer: I did not do this with PIC and Java, only with AVR32B from VB to PC.
If you use a USB CDC USB device on the USB interface of the microcontroller and connect it to a USB HOST computer, it will be listed and displayed as a new COM port. This is then processed by the application as a regular serial port. I used the standard USB driver USBSER.SYS.
I assume that the microchip provides an example of source code for their USB peripheral device so that it can work in different classes of devices. (I know what Atmel does for the AVR32 families)
source share