I am trying to run the google closure compiler fuzzer, but it's asking for a config file.
In the /build/classes/ directory I run
java -cp ../compiler.jar com.google.javascript.jscomp.fuzzing.Driver --number_of_runs 5 --config
It returns
Option "--config" takes an operand
Can anyone tell me what the config is supposed to look like or where I can find it? Thanks.
Solved. There is a missing json file that will be changed soon.
Related
I am trying to figure out how to add the command line arguments
-XX:CompileCommand=print,javax/swing/text/GlyphView,getBreakSpot
to eclipse in order to fix a JIT problem documented in
http://kingsfleet.blogspot.com.br/2014/11/but-thats-impossible-or-finding-out.html
but i am unsure how to add this.
If this is part of building as indicated in your question's title then: You can't. That is an argument specific to Oracle's javac. Eclipse's Java Builder uses Eclipse's compiler. If you use ant or any other external tool, to run Oracle's javac then you can add arguments for it.
If this is a runtime option (since you mention the JIT), then you can add any arguments for the JRE in the Run Configuration dialog.
I just skimmed the article you referenced. It is an argument to 'java', not 'javac' and has nothing to do with building. Enter it in the Arguments tab of the Run Configuration dialog.
It seems like you need "boot time parameters" for your Eclipse, well before the projects are loaded. If I have understood the question correctly, have you tried using eclipse.ini? Here are a few lines from my ini file where I change some parameters.
--launcher.appendVmargs$
-vmargs$
-Dosgi.requiredJavaVersion=1.6$
-XX:MaxPermSize=256m$
-Xms40m$
-Xmx1524m$
-Dgrails.console.enable.interactive=false$
-Dgrails.console.enable.terminal=false$
-Djline.terminal=jline.UnsupportedTerminal$
-Dgrails.console.class=grails.build.logging.GrailsEclipseConsole$
If I havent' understood your question, please clarify, if not, hope this helps.
Getting the below error when trying to initiate call.
<SIP/xx.xxx.xxx.xx-00000000>AGI Rx << VERBOSE "No script configured for URL 'AGI://localhost/xxx.agi' (script 'xxx.agi')" 1
Can anyone help me to resolve this error.
Thanks
This is already old, but still i got stucked yesterday with same issue, and found the solution.
A lot of people saying about the classpath where your properties file should be, and they are right.
As long as you running the asterisk jar in terms to run the test script, it doesn't have the properties file inside with YOUR script pointed there. So you need to direct it.
Try to use this command, but modify it with your path:
java -cp /home/your user/folder with project/src/main/java/:/home/your user/folder with jar file placed/asterisk-java-2.0.2.jar org.asteriskjava.fastagi.DefaultAgiServer
org.asteriskjava.fastagi.DefaultAgiServer - this is the path which you use to run a server. Even if you will write something like:
java -jar asterisk-java-2.0.2.jar
it will call the DefaultAgiServer anyway.
So my point is, that the classpath here is a keyword, and command above will solve this problem for sure =)
UPD: Although it fix the issue with classpath of .properties file, that doesn't mean that it will solve this problem, in case if your script placed in additional packages =)
If path to your script is something like
com.yourcompany.yourpackage.YourScript
that mean that you need write down the same thing in a properties. Something like:
hello.agi = com.yourcompany.yourpackage.YourScript
Hope this will help somebody ;)
This error is writed by your java code. See java code for more info about how to do call. Most likly need do something like
AGI://localhost/xxx.agi?function=func
I'm a total Java noob so please understand =) I need a quick advice on how to fix the issue.
I cloned the official selenium git repo, changed the code a bit (need to dump the page into some specified dirs), and tried to rebuilt it:
./go //java/server/src/org/openqa/selenium/remote/server:server:uber //java/client/src/org/openqa/selenium:client-combined:uber
It was successful but when I tried to execute it I got this:
$ java -jar build/java/server/src/org/openqa/selenium/remote/server/server-standalone.jar
Failed to load Main-Class manifest attribute from
build/java/server/src/org/openqa/selenium/remote/server/server-standalone.jar
Tried to check classpath, CLASS_PATH and CLASSPATH env variables (as a friend of mine suggested) - I simply don't have any.
At the same time, the pre-compiled standalone server from the official downloads works out of the box.
The official docs didn't help. There's nothing about it there.
So - I need a quick advice how to compile it? Thanks.
P.S. JDK 8 (latest), Mac OS 10.7
P.P.S. That friend of mine tried to build it by himself and he was lucky - he got a new build/dist folder where the target big file was. But in my case, the build folder is created, but there's not 'dist' folder in it.
Finally found the answer: I should have built it like that:
./go clean release
it's really strange that all the docs state I need to use these long /bla/bla/:uber things to get a whole single 'uber' server.
This question was already asked here on Stack Overflow, BTW even after reading the answer provided, I do not manage to add MyOwnAnalyzer, so that I can use it directly from Luke.
Please can someone help me on the right way to do, that is how and what to do so that MyOwnAnalyzer can be usable directly from Luke?
Can I do this (it did not work, may be my included jar are incomplete?):
java -cp .;d:\java\mylibs\MyOwnAnalyzer.jar -jar lukeall-3.5.0.jar
(MyOwnAnalyzer.jar was built from Eclipse and contains : MyOwnAnalyzer.java, MyOwnTokenizer.java, and MyOwnToken.java inside a subdirectory com.MyCompany... Eclipse added META-INF and manifest.mf for me)
Maybe I am wrong in adding classpath and MyOwnAnalyzer.jar with my command line?
Or must I build Luke from source including MyOwnAnalyzer somewhere in its directory?
Or is there something else to include/write so that my analyzer can be usable and imported from Luke? (looks like there is a mechanism to detect all classes that subclasses Analyzer - MyOwnAnalyzer is already declared as "extends Analyzer" )
BTW, even if it not really the same question but still in the same topic of using a custom analyzer from Luke... si I have an Error when using the tab Analyzer Tool I get Error analyzing:com/google/common/io/CharStreams , this lib is included in a jar, where I included a main that do a sample analysis to check and everything work fine when using it alone. If I use it as explained by JPountz, from Luke, I can see MyOwnAnalyzer from all the Luke tabs, but it did not work!
from the Luke code source, I think what throw the exception this is located somewhere inside the method analyze.
Note: The call to CharStreams.toString(input); is to transform the Reader input to a String inside MyOwnTokenizer.
Java ignores the -cp option when the -jar option is also used. You need to run Luke this way:
java -cp lukeall-3.5.0.jar;MyOwnAnalyzer.jar org.getopt.luke.Luke
I'm trying to write an SVN Post-Commit hook to generate javadoc on a webpage whenever someone submits any changes to relevant files.
I was new to the hook concept, but I didn't expect to run in any strange errors when generating the javadoc.
java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc
at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
at com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:811)
at com.sun.tools.doclets.formats.html.AbstractIndexWriter.printComment(AbstractIndexWriter.java:186)
After a few succesful searches on StackOverFlow I discovered it had something to do with third-party-annotations. (I make use of the Play framework and that uses a number of other libraries)
So I included everything in a script:
#!/bin/sh
CLASSPATH="~/Play/play-1.1.1/;"
javadoc -d ~/svndoc/ -classpath $CLASSPATH -sourcepath ~/svntest/avon/trunk/ScoreDB/app #packages
But this generates the exact same errors. Sometimes there are 10 warnings, but most of the time there are 27 of them.
Could you guys help me out?
Thanks in advance,
Jasper
Your classpath looks wrong. First, there should be no ; in it (in Unix, the separator is :, but it is not needed at the end). Secondly, do you really have the individual class files in this directory? If there are jar files, you need to either list them individually, or put a * there (but pay attention that bash does not expand it, since you would need : instead of spaces between).
I have no idea if this would solve the problem, though.