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
Can't run jsdoc on the included rhino bundle from Windows command line #533
Comments
I can't reproduce this issue on Windows 7. Do you have another version of Rhino in your CLASSPATH? Also, which version of Java are you using? |
|
Try running Also, try running the command |
|
Okay, three more things to try. First, add the following code at line 8 of jsdoc.js: java.lang.ClassLoader.getSystemClassLoader().getURLs().forEach(function(url) {
print(url.toString());
}); That code will print the classpath that JSDoc is using at runtime. You should see a reference to If the classpath looks okay, try running And if that doesn't work, you could try upgrading to JDK 1.7.0_45, which is what I'm testing with right now. It shouldn't make a difference, but you never know. If none of that stuff helps, I'm at a loss. I suggest emailing jsdoc-users to see if anyone else has encountered this issue. You could also run JSDoc with Node.js instead (but first, be sure to remove the
|
Closing due to lack of information. |
I have the same problems too. The language is german but it mean the same as the messages above
Run cmd as administrator didn't work. I didn't try it with "node" |
Sorry, I didn't notice that you had already tried this. I'll reopen the issue and see if I can think of another idea. |
Thank you. PS: renamed Soldier-Boy -> ximex Edit:
|
@ximex: Are you saying that commit a8c9100 works fine, and commit 6651a85 fails? That would be surprising, but it's not impossible. If commit 6651a85 also works for you, it would be extremely helpful if you could use It makes sense that |
I have the same issue, with JSDoc 3.3 on Windows XP SP3 C:\abc\jsdoc\jsdoc.js is available in my directory.
|
Okay, I'm now able to reproduce this issue. Investigating... |
includes a new Rhino .jar: jsdoc3/rhino@0d8fe75b
This should now be fixed on master and in 3.3.0-alpha4. Thanks for your patience, everyone! |
tried on 3.3.0-Alpha4 and still the same issue for me C:\Users\User>echo %CLASSPATH% C:\Users\User>java -version C:\Users\User>java org.mozilla.javascript.tools.shell.Main D:\progs\jsdoc>jsdoc.cmd |
@Crusty82, please help me investigate by providing the following information:
|
Hello there,
I followed more or less this tutorial: |
I have the same problem -- here are the steps I took:
Here's my Java version information: java version "1.7.0_51" I'm trying this on Windows 8, 64-bit. edit: like ximex, a8c9100 works however. |
Thanks, everyone. I can reproduce this and am investigating. |
I also encountered the same problem. I have modified "jsdoc.cmd" as follows. Then, the problem was solved.
My environment is follows.
|
hat tip to @opengl-8080 for the fix!
@opengl-8080, that seems to have fixed the issue! Many thanks for figuring this out. Everything should be working fine on master. If anyone continues to see this error after doing a pull, please reopen the issue. |
@adufilie: I just cloned the repo from master, and I am not able to reproduce this issue. Please provide the following information so I can investigate further:
|
(Updated) Short answer: It works now that I switched to the Windows command prompt. It didn't work in cygwin. This may be due to them using different versions of Java. Long answer:
|
@adufilie: Many thanks for following up so thoroughly! I'm glad you were able to resolve the issue. The error from running The error message is generated by Java code in Rhino, so it's not so easy to trace at runtime. |
Hi all, encountering this issue when attempting to run tests from Windows via Edit: using 6b85173 Edit 2: If I change the classpath in the java command to
The difference here being Here's the exact error:
Please let me know if there's any additional information you need! |
1.) Download the latest jsdoc release; unzip to Desktop
2.) Open cmd.exe, "cd Desktop\jsdoc-master"
3.) "jsdoc --help"
Throws the exception:
???
Windows 7 SP1, 64-bit
The text was updated successfully, but these errors were encountered: