View Full Version : js builder file no find exception

20 Jul 2011, 5:17 AM
I try to run JSBuilder script (*.bat file):

"java.exe" -jar JSBuilder2.jar --projectFile "script_name.jsb2" --homeDir "C:\Users\Tomasz\Desktop" --verbose

in script_name.jsb2 I got:

"projectName": "Name",
"deployDir": "\\Name\\Deploy",
"licenseText": "licence",
"pkgs": [{
"name": "Name",
"file": "Name.js",
"isDebug": true,
"fileIncludes": [ {
"text": "file1.js",
"path": "\\Name\\"
"text": "file2.js",
"path": "\\Name\\"
"resources": []

and I got error:

java.io.FileNotFoundException: null\Name\file1.js

I can not find how `null` is coming from ? files and folders (homeDir) existing, - this is Windows 7, on different one (XP) similar script has no such problems...

What I am missing ?

20 Jul 2011, 3:24 PM
Are you sure you need to escape those slashes like that? Perhaps that's causing the issue

20 Jul 2011, 5:29 PM
removing one or both slashes, exchanging them for backslash regardless of using single or double quotes still return same error...

java.io.FileNotFoundException: null\file1.js ...

homeDir is setup but somehow word 'null' starts the path to js file regardless is attribute 'path' in 'fileIncludes' is empty string or got value...

15 Oct 2011, 5:23 AM
You should use full path to .jsb2 in your command line.

For example:

java -jar bin/JSBuilder2.jar --projectFile D:\Project\project.jsb2 --homeDir ../..