How can I get permission to create a symbolic link?

I am trying to create a symbolic link from a program, but I keep getting:
A required privilege is not held by the client.
I am running the program from my account which is in the Administrators group, and otherwise has admin rights. However, if I login to the Administrator account the program runs fine, so I know the program code is correct.
I have checked the local security settings, and even added my account explicitly to the local security settings to create symbolic links, but that does not help. I have also turned of UAC, but that does not help.
What do I need to do on Windows 8.1 to be able to create a symbolic link from an account other than Administrator?
Cheers, Eric
Eric Kolotyluk - software developer, music DJ, swing dancer

Basically I have a Scala program that is doing:
  try {
    Files.createSymbolicLink(link21, folder1)
  catch {
    case fileSystemException: FileSystemException =>
      System.err.println("\n\t**** Error configuring test fixture ***\n\n")
      println(fileSystemException)
      if (fileSystemException.getMessage().contains("A required privilege is not held by the client"))
        println("You need to set permissions by...\n")
Where Files is the java.nio API. In fact it's a unit test fixture that tests to make sure my code handles symbolic links properly. The test fixture creates a temporary directory, for example
C:\Users\Eric\AppData\Local\Temp\testFolder-432432684744817467
and more files and folders below that. In one folder, it tries to make a symbolic link to another folder.
I tried what you said with Run As Administrator, in this case, I ran my Eclipse IDE as Administrator and the code works -- thanks for the tip :-)
However, in practice, I need this to work as part of automated unit test running as part of a Maven build, so is there some way to set things up that do not require "Run As Administrator"?
Now that I have one solution, I can probably figure out some hack, but I was hoping there would be some more simple straightforward way to do what I want.
Eric Kolotyluk - software developer, music DJ, swing dancer

Similar Messages

  • How can I get a module created in Captivate 4 to start on slide 2 when launched?

    How can I get a module created in Captivate 4 to start on slide 2 when launched?

    Hello
    Wanted to ask why do you have that first slide then? Just tried this:
    create and Advanced action with one statement: Jump to slide 2
    attach this action to the even Enter slide for the first slide
    You may see very quickly that first slide when playing. To avoid that (but it depends on the content of that first slide) you could  cover up the beginning of that slide for a very short time with a white rectangle.
    Lilybiri

  • How can I get a playlist created on my iPad to iTunes?

    I create a playlist on the iPad... I love it... I want it on the iPhones in my household.
    How can I get that playlist into iTunes, so I can push it out to the other iOS devices?
    When I sync the iPad with iTunes, the playlist created on the iPad is wiped out.
    All devices (iPhone 4S, iPhone 4, iPad 2) are on iOS 5.0.1.
    Mac OS X Lion 10.7.2
    iTunes 10.5.1.
    Thanks

    You can't move an iMovie project file and expect it to play.
    You need to export from the machine that holds the source files to the format supported by the device.

  • How can I get Automator to create a workflow for combining .jpgs into pdf?

    I have a large folder with many subfolders, and each subfolder has many subfolders. Those last mentioned subfolders have many .jpgs inside which I want to make them into a pdf. The question is, how can I get automator to do this for me? I tried using the help but it only made things even more confusing, it didn't help at all. I also have an app for creating pdfs out of combining pngs, jpgs, gifs, etc. (Combine PDF).
    The task of making hundreds of pdfs out of so many jpgs that I have, is there somehow a way I can get automator to do this for me? So far I haven't even found an example with understandable screenshots so that I can get into the correct way of making a workflow do what it is supposed to do correctly.
    Please help...

    Thank you for your reply, the workflow is opened fine, however I'm not sure how to then get this scripted workflow to do what I want to do? I'm a complete n00b when it comes to Automator, is there perhaps a tutorial for idiots that is known where I could read about starting out with Automator to understand it better?
    Thank you

  • How do I manually delete iTunes when I want to re-install the latest program? Error says I have no permission so how can I get permission?

    How do I manually delete iTunes and all its bits prior to re-installing the version 11 when I get a message saying I don't have permission.
    I am the sole owner of my p.c. and nobody else uses it. How do I "get permission" from my own p.c.?
    The p.c. is a Dell Vostro running windows 7 (64 bit) After giving up and exiting iTunes there was an error notification saying msvcr 80 is missing from your computer...Also, when I went (blindly) to administrators etc there was a red question mark against a gobbledegook long line apart from David pc which is me. Would this be some malevelant thing? Help!

    Hi David,
    Open the start menu, then select Control Panel in the right hand column. Open the Programs and Features section, type Apple in the search box at top right. You need to uninstall the components in the order suggested in the user tip.
    Once all have been uninstalled reboot and use Windows Explorer to locate the named folders and delete them. Then reinstall.
    tt2

  • How can I get permission from imovie to use text in my uploaded monetized YouTube clips

    I am able to use imovie to edit movies. I use a small amount of text and no music from imovie. How do I obtain permission from imovie to use a text title for my monetized YouTube uploads?

    You do not need permission for this.

  • How can I get to Yahoo Mail from email links on Craigslist?

    I have looked through the discussions, but I am not finding anything specific to my problem. I am not using Apple Mail at all. I am using a Yahoo email account only. When I am visiting a web site and I click on a link to email someone from that site, Mail always automatically opens. I have to copy the email address, launch Safari, access my Yahoo Mail, compose a new email, and paste in that address in order to send the email from Yahoo. It's a pain.
    My question is this: How can I configure my Mac to NOT automatically open Mail but rather to automatically open Yahoo as the client from which to send an email?
    The best example of when I'd need to do is when surfing Craigslist. When I see an ad I want to reply to, I click the seller's Craigslist-generated email link. I want THAT link to take me to Yahoo, not Apple Mail.
    Any ideas or work-arounds that will enable that to happen?

    There may be an solution but I don't think it will be simple and I don't know what it is.
    One problem is when you say, "open Yahoo as the client." Yahoo isn't a client or application as such, it is just a web page. When you click on a "mailto" link it tells the browser to open your mail application, and Yahoo isn't an application.
    The web page in [this link|http://www.tuaw.com/2006/11/07/tuaw-tip-change-your-default-browser-or-def ault-mail-client-wit> discusses some of the issues you are having. People were complaining that the only way to change your mail preferences was to actually set up an account using OSX's Mail application which was the one you didn't want to use anyway. However, the best you could maybe do using the utilities mentioned on the page is to tell your computer to set Safari as your mail application; I don't know how to get it to then go to the Yahoo website as part of the package. Maybe some kind of advanced scripting?
    Edit: It looks like Yahoo also has a way of connecting directly to it using a mail application if you pay for the premium service.

  • How can i get the name of a symbol and pass to a variable?

    Hello! Is posible to get the name of a symbol and pass to a variable??
    Thanks
    Sonia

    Ok. Bravo
    Please mark this as 'Answered' - it will help others on the forum -

  • How can I get permission to access my own files?

    I recently got a new Mac Pro, and I used a Time Machine backup to migrate my data.  Then I discovered that Time Machine doesn't actually back up everything; it leaves out all the "Build" folders in all of my Xcode projects for some reason.  I transferred all those folders manually, but I couldn't help but wonder what else Time Machine was omitting.  So I decided that before I permanently retire my old computer (a seven year old iMac), I'd make a full backup of all its data onto BD-Roms.  This it turning out to be quite difficult.
    First I tried using Target Disk Mode and running Disk Utility on a second computer to create a disk image.  But after about 15 hours, it wasn't even a third of the way done, so I cancelled that.  Then I tried connecting an external drive to my old computer and just dragging all the files onto it, which seemed to be working at first, but then after a couple hours, it said something like, "You don't have permission to access the Keychain App," and it stopped transferring.  So I tried again, but I omitted the Applications folder, since that's where the Keychain app is.  Then, after a couple more hours, it said something like, "You don't have permission to access some other file."
    Is there any way I can disable this permissions business?  I tried going to "get info" and giving everyone read and write privileges, but it didn't make any difference.  I wouldn't even mind just skipping the files with permission issues, but the problem is that whenever it gets to an "unpermitted" file, it just completely bails out of the whole transfer and then I have to start all over again.  Is there at least a way to make it just skip those files and go on with the transfer?

    Not in your case. System-level folders cannot be backed up by drag-copying; just drag your home folder to the external drive.
    (124214)

  • How can I get permission to use Apple's Airplay Technology for new and innovative Speaker System?

    Hi there!
    I want to integrate Airplay technology in a new and innovative Speaker System.
    I've searched the internet, but couldn't find anything.
    Does anybody know how to get the permission to use it?

    Apple
    1 Infinite Loop
    Cupertino, CA 95014
    408.996.1010
    ...ask to speak to someone about licen$ing.

  • How can I get Flex to create a new email using the client's default that pre-fills a field?

    Assume that I have a String with some emails in it. When a user clicks on "Send Email to these People" I want their default email client (like Outlook or Thunderbird) to open up a window with new email ready to be composed. All I want is for the String's data to appear in the BCC (or Send To:) field of the email. Is there a mailing function (like the equivalent of PHP's mail()) that I can use for this? Thanks for any insight and help!

    Yeah, sorry about that. I remembered after I had already submitted this thread. I've just been so stressed out, little things like this didn't cross my mind. You can delete the other one if you are the admin here.

  • How can I get permission to get my phone unlocked?

    Hi,
    You need a PAYG sim for the carrier and £8.99 in credit on that sim. Then you can follow this process: https://myaccount.ee.co.uk/device-unlock/
    This is the only way.
    Thanks,

    Device not detected in iTunes for Windows

  • How can i get Presenter 7, to export my linked videos that are in my Powerpoint?

    When i publish from Presenter 7, all my videos that i have linked in my Powerpoint 2010 get left out, is there a way round this?
    My videos are in wmvs, do they need to be another format, or is this a feature Presenter 7 can't do?

    Digiking,
    If you convert the original WMV files to FLV you should be able to get them to work.  I used both Format Factory (a free video convertor) and Adobe Media Encoder to change some WMVs into FLVs.  I then imported them into PowerPoint 2010 (32bit version) with the Presenter Plugin.  I the published the PowerPoint (again using Presenter plugin) to our Adobe Connect Server and the videos played back fine.
    (I did get an error message when importing the FLVs into the PowerPoint, but they still imported and played back fine.)
    Hope this helps!

  • Using search pages (i.e. Google) how can I get a different color on a link (website) that I have previously visited? It used to work that way, but now every link is the same color.

    I use Firefox 4.0.1 & Windows 7 Home Premium Edition. In the Options/Contents/Color setting I have the "Allow Pages To Use Their Own Colors" box checked. I tried checking "Use System Colors" with 2 different colors selected for Unvisited Links & Visited Links, but it does not work, & in addition, the Use System Colors messes up my normal view(s). I just want to be able to differentiate between Visited & Unvisited Links. Thank you.

    Hi,
    Agree with Holger, I check on my Lync Windows Store app and can't find the meeting URL as well.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How can I get the option to make an iPod selection playlist when there is not enough space on my iPod for my whole iTunes library?

    I am trying to sync my iPod with my iTunes library and I recently added more music to my library than there is space on my iPod. Normally, I know iTunes is supposed to give you the option of creating an iPod selection playlist, so you can choose which songs you want to put from your library onto your iPod. However, iTunes won't currently give me that option. It simply gives me an error message saying there is not enough free space to sync my iPod. How can I get it to create the iPod selection playlist?

    Start deleting stuff from your iPod to make room. 

Maybe you are looking for

  • Word 2008 doc saves into multiple docs instead of one PDF

    I have installed Acrobat 9 Pro and am trying to print a Word 2008 doc to a PDF. Instead of creating and saving as one document it splits it into several whenever the page set up changes from profile to landsacape or vice versa. This happens whether I

  • OAF page is not able to display the custom error messages

    Hi, I have extended a seeded CO and trying to throw few custom error messages. It was working fine, but suddenly it is not able to display the error messages(but checked that the error messages are still present in application) and saying "Message no

  • Final cut won't open on lion

    Installed final cut  7 on a brand new mac pro os lion.  Opened once then won't open after that.  Now when I click on the icon, it goes thru the loading stuff then just quits.

  • ACR Settings icon question

    I am using CS4, but expect that the question applies to CS3 as well. I cannot get rid of the small icon (two horizontal lines with two small upward-pointing arrowheads) at the upper right of the thumbnail as seen in Bridge. This icon means that the r

  • How to access elements in loop

    hello All, I am new to oracle pl/sql and we are using 11g can any one tell how to use access the columns in the fetch DECLARE CURSOR a_cur IS SELECT program_id FROM airplanes; TYPE myarray IS TABLE OF a_cur%ROWTYPE; cur_array myarray; BEGIN OPEN a_cu