Good morning,
This morning I was busy with the optimizer Require.js and started to work with difficulty.
I run windows 8 and created a modular backbone.js application, which I am now ready for a package for deployment (production). Now I would like to optimize file theses (concat and minim), the r.js optimizer seems to be just a trick.
The problem I am facing is trying to run the classpath command.
java -classpath path/to/rhino/js.jar;path/to/closure/compiler.jar org.mozilla.javascript.tools.shell.Main r.js main.js
Will output an error - Error: could not find or load the main class org.mozilla.javascript.tools.shell.Main
I am confused because I'm not sure where this package should be, will it not already be part of the optimizer / compiler?
My directory structure is as follows
build - compiler.js js.jar r.js app js -> backbone and application files here css images
I would appreciate any light that could be shed on this, this is the first time I run the require.js optimizer.
source share