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

  • Home
  • SEARCH
  • 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 6371947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:09:46+00:00 2026-05-25T01:09:46+00:00

I have a netbeans project setup with the following absolute paths pointing to files

  • 0

I have a netbeans project setup with the following absolute paths pointing to files on my harddrive.

/Users/Name/NetBeansProjects/DissertationUpnpDevices/src/my/upnpdevices/MSXbox360Device.java
/Users/Name/NetBeansProjects/DissertationUpnpDevices/src/my/upnpdevices/resources/description/MS_Xbox360description.xml

I will be moving my project over to a pc and I’ve been trying to convert the above paths into relative paths. But it’s not working out for me. So far I have tried:

private final static String DESCRIPTION_FILE_NAME = "resources\description\MS_Xbox360\description.xml";
private final static String DESCRIPTION_FILE_NAME = "resources\/description\/MS_Xbox360\/description.xml";

But the above 2 attempts don’t work. They give me an ‘illegal escape character’ error. I have also tried the following below

private final static String DESCRIPTION_FILE_NAME = "resources/description/MS_Xbox360/description.xml";
private final static String DESCRIPTION_FILE_NAME = "resources//description//MS_Xbox360//description.xml";
private final static String DESCRIPTION_FILE_NAME = "resources\\description\\MS_Xbox360\\description.xml";
private final static String DESCRIPTION_FILE_NAME = "./resources/description/MS_Xbox360/description.xml";
private final static String DESCRIPTION_FILE_NAME = ".//resources//description//MS_Xbox360//description.xml";
private final static String DESCRIPTION_FILE_NAME = ".\\resources\\description\\MS_Xbox360\\description.xml";

These all give me “java.io.FileNotFoundException“. Any other suggestions as to how I can convert the absolute mac URI to a relative URI for my pc? The files on the pc are setup in the corresponding directories.

  • 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-05-25T01:09:46+00:00Added an answer on May 25, 2026 at 1:09 am

    Most of the paths you have above should work fine for you (specific’./resources/description/MS_Xbox360/description.xml’). I just got done with a project and the Mac version didn’t like relative paths with ‘\\’ so I changed them to ‘/’ and everything works fine now. Also, the java.io.FileNotFoundException should print out what file it’s looking for. Inspect the error closely and make sure the file actual does or doesn’t exist.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP project setup in Netbeans (v6.8) where all the PHP files
Assume the following project setup in Netbeans Project A depending on Project B depending
I have created several files with unit tests on existing classes in NetBeans project.
I have setup a Netbeans project having as development host a remote machine. My
I currently have a NetBeans php project setup to sync from my user directory
I have a NetBeans project set up with a bunch of source classes and
We have a netbeans project that has an xsd that we use to create
I have a NetBeans project and the Mercurial repository is in the project root.
Java Newbie here. I have a JFrame that I added to my netbeans project,
In Netbeans (I have the 6.5 version), in the project properties under Application> Webstart

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.