-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLOSURE_PATH location issues on Win7 #14
Comments
Hi man! Sorry for the delay. |
I just used a jar. I downloaded the jar and placed it here: C:\Users\Name\Dropbox\Closure Compiler\compiler.jar The grunt.js file is here: C:\Users\Name\Dropbox\grunt.js I've tried all the settings above as well as using the full path above. Have you been able to run this on windows? This is the warning I'm getting: "Command failed: Unable to access jarfile C:/Users/Name/Dropbox/Closure Use --force to continue." Seems like it's having issues reading the whole folder path. |
Hi, My 2 cents in form of an educated guess: issue with whitespace in the path and fix would be similar to this one yeoman/yeoman#873 ? |
Little late to reply but anyway, after fixing the whitespace issue, you will need to move your built files to inside a For example, using this setting: closurePath: 'C:/closure' Your
This is because this grunt task currently appends |
Now I'm getting an issue. Warning: Command failed: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.minor version 51.0 Looks like version error. What should I do now? Using npm install grunt-closure-compiler doesnt download build/compiler.jar file. Ive manually downloaded jar file and used, but still problem. |
Hello All,
I've tried every variation I can think of to get this working. I've used the closurePath param, I've used system variables, but I cannot get this task to run without it failing, telling me that it cannot find the jar.
Is anyone else having issues on Windows or is it just me? My grunt.js file is in a root directory. I've added a 'Closure Compiler' directory with the compiler.jar file inside. It's one level up. Here are some example values I've set for the closurePath -
closurePath: '',
closurePath: '/',
closurePath: 'Closure Compiler',
closurePath: '/Closure Compiler',
closurePath: 'Closure Compiler/',
closurePath: '/Closure Compiler/',
closurePath: 'Closure Compiler/compiler',
closurePath: '/Closure Compiler/compiler',
closurePath: 'Closure Compiler/compiler.jar',
closurePath: '/Closure Compiler/compiler.jar',
Nothing works. I've tried every variation I thought it could be. Here's my object as it stands now:
'closure-compiler' : {
frontend: {
closurePath : 'Closure Compiler/',
js : 'components/footer.js',
jsOutputFile: 'js/footer.min.js',
maxBuffer : 500,
options : {
compilation_level: 'SIMPLE_OPTIMIZATIONS'
}
}
},
The text was updated successfully, but these errors were encountered: