Arduino not appearing when RXTX searches for serial ports

I'm trying to have my arduino board communicate with a Java program via the serial port. I'm using the RXTX library as shown at Arduino Playground - Java, but the program prints "Could not find COM port" and exits. I did some more looking around and saw that the CommPortIdentifier.getPortIdentifiers() method returns an empty enumeration. I've tried the solutions currently on stack overflow and other websites with no luck.

I'm running Windows 8 64-bit. Thanks in advance.

Which Arduino board? Running what sketch?

Board is an Arduino Uno. Code is as follows. This works when I run on a friend's computer but not when I run it on my own. The RXTX library was installed in the same way and the same location on both computers.

#include <Wire.h>
#include <Adafruit_NFCShield_I2C.h>

#define IRQ (2)
#define RESET (3)

Adafruit_NFCShield_I2C nfc(IRQ, RESET);

void setup(void)
{
  Serial.begin(115200);
  
  nfc.begin();
  
  uint32_t versiondata = nfc.getFirmwareVersion();
  if(! versiondata)  {
     Serial.print("No board found");
    while(1); 
  }
  
  nfc.setPassiveActivationRetries(0xFF);
  
  nfc.SAMConfig();
}

void loop() 
{
  boolean success;
  uint8_t uid[] = {0, 0, 0, 0};
  uint8_t target[] = {131, 182, 6, 153};
  uint8_t uidLength;
  
  success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, &uid[0], &uidLength);
  
  if(success)  {
     for(uint8_t i = 0; i < uidLength; i ++)  {
        Serial.print(uid[i]); 
        Serial.print(" ");
     }
     
     Serial.println("");
     delay(1000);
  }
  
  else  {
  }
}

This works when I run on a friend's computer but not when I run it on my own.

Did you upload that code from your computer? Or from your friend's computer?

It sounds like you used your friend's computer, and that you have not installed the necessary device drivers on your computer.