Compile Failed; File %s could not be created

syslocksyslock Junior MemberPosts: 45
Please can anyone shed some light on this compile error. All of a sudden out of the blue I started getting this error in 6 separate projects all systems that I'm busy adding RMS to.
Its worth noting that I'm working on Windows 10 in a virtual machine(vbox). My other projects that don't require the RmsNetLinxAdapter_dr4 module all compile fine.


Here is the code I'm compiling

PROGRAM_NAME='Test Compile Error'
(***********************************************************)
(* DEVICE NUMBER DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_DEVICE
vdvRMS = 41111:1:1
//dvRMSControlSystems1 = 0:1:1

//RMS
define_module 'RmsNetLinxAdapter_dr4_0_0' mdlRMSNetLinx(vdvRMS)
//


Starting NetLinx Compile - Version[2.5.2.420] [01-18-2016 12:40:22]
C:\Users\vetus\Desktop\SBSA `Current Code\Test Compile Error.axs
ERROR: (0): L20206: File [commons-codec-1.4-AMX-01.jar] could not be found
ERROR: C:\Users\vetus\Desktop\SBSA `Current Code\Test Compile Error.tkn(15): L20215: Compile failed; File %s could not be created
C:\Users\vetus\Desktop\SBSA `Current Code\Test Compile Error.axs - 2 error(s), 0 warning(s)
Compiled Code takes 23819 bytes of memory -- Token and Variable Count is 748 (Maximum is 200000)
NetLinx Compile Complete [01-18-2016 12:40:22]

Also if I double click on the compile error it opens file Test Compile Error.tkn and ith as a single character in it. ?

Thanks in advance

Comments

  • GregGGregG Just some guy... Posts: 249
    I had an update issue a while back where studio lost my libraries and includes settings.

    You may want to check under netlinx studio's "Settings...Preferences" menu in the netlinx compiler side tab, in the directories box area. Check the drop-downs from "Library Files" to "Module Files" and make sure that the directory where you have "commons-codec-1.4-AMX-01.jar" is still listed somewhere in there.

    If all else fails, you can put commons-codec-1.4-AMX-01.jar in the project code folder, but with all the stuff RMS includes, it is better not to replicate it 47 times.
  • LightDemonLightDemon Junior Member Posts: 2
    edited September 20

    I know I am bumping a very old thread but I just started having this issue after windows updated to 1903. I don't get a file can not be found error just the .tkn: L20215: Compile failed; File %s could not be created. The .tkn file does seem to be created and it appears to have data in it thou I cant determine the encoding so it is just jibberish but at least there is data. Has anyone seen this recently or have any idea?

  • HARMAN_quirkHARMAN_quirk Harman Professional Tech Support Posts: 25

    @LightDemon said:
    I know I am bumping a very old thread but I just started having this issue after windows updated to 1903. I don't get a file can not be found error just the .tkn: L20215: Compile failed; File %s could not be created. The .tkn file does seem to be created and it appears to have data in it thou I cant determine the encoding so it is just jibberish but at least there is data. Has anyone seen this recently or have any idea?

    Please try reinstalling Netlinx Studio 4.

  • LightDemonLightDemon Junior Member Posts: 2

    @HARMAN_quirk said:

    Please try reinstalling Netlinx Studio 4.

    I have uninstalled and reinstalled Netlinx Studio 4 and am still receiving the same error.

  • richardhermanrichardherman not-so-junior member Posts: 214

    I've had this happen (Compile failed; File %s could not be created ) when I didn't have the correct permissions for the location the file would be written to, for instance a network share. I wouldn't be surprised if some new protection feature in version 1903 would trigger this.

  • John NagyJohn Nagy CineTouch Product Manager Posts: 1,509

    Recent SMB share revisions in Win10 make older (V1) SMB communication really flakey, and there is no cure. I was fortunate to be able to use NFS on my old NAS, after being unfortunate to waste 2 days figuring out why it had to be done.

Sign In or Register to comment.