首页 \ 问答 \ Ant:无法创建任务或输入javac(Ant: failed to create task or type javac)

Ant:无法创建任务或输入javac(Ant: failed to create task or type javac)

当我运行我的ant任务时,我收到以下错误

/build.xml:61:问题:无法创建任务或输入javac原因:找不到类org.apache.tools.ant.taskdefs.Javac。 操作:检查组件是否已正确声明,并且实现JAR位于以下位置之一: - / idea-IC-107.587 / lib / ant / lib - / home / .ant / lib -a目录在命令行中添加-lib参数

但是我在上面提到的路径中有ant.jar(包含Javac类)。 任何人都可以告诉我这个问题的原因是什么。


When I run my ant task I get the following error

/build.xml:61: Problem: failed to create task or type javac Cause: the class org.apache.tools.ant.taskdefs.Javac was not found. Action: Check that the component has been correctly declared and that the implementing JAR is in one of: -/idea-IC-107.587/lib/ant/lib -/home/.ant/lib -a directory added on the command line with the -lib argument

But I have the ant.jar(which contains the Javac class) in the above mentioned path. Can anyone tell me what is the cause for this issue.


原文:https://stackoverflow.com/questions/28427083
更新时间:2021-12-08 06:12

最满意答案

您可以在客户端计算机上配置多个IPv4地址。 在客户端上运行的进程应该接收源IP地址作为参数,并将connect socket绑定到它。 因此,使用10个IP地址,您可以轻松达到400000个连接。


You can configure multiple IPv4 address on the client machine. Process that runs on client should receive source IP address as parameter, and bind connect socket to it. So with 10 IP addresses you can easily reach 400000 connections.

相关问答

更多
  • 有时候,行为不端的客户端会得到或发送它想要的,然后立即退出(关闭套接字并突然切断连接)。 偶尔在任何暴露于互联网的服务中看到这种情况是很正常的。 如果是你自己的代码造成这种情况,请确保你发送任何“我现在完成”命令(一种常见的是“退出”),并在关闭之前正确“关闭”连接。 除此之外,关于您应该造成的唯一重置将涉及您的互联网访问剥落。 Sometimes a misbehaving client will get or send what it wants to, then immediately quit (c ...
  • 不幸的是,ZeroMQ只是将其传递到下一层。 因此,您在ZeroMQ之上实现的协议必须处理这个问题。 建议使用心跳。 基本上,如果连接空闲,则只有一方发送消息。 另一方可以将缺少此类消息视为失败条件并关闭连接。 您可能希望修改更高级别的协议以使其更加健壮。 例如,您可以提交命令,查询其状态,并允许另一方忘记该命令。 这样,如果连接丢失,您可以重新连接并查询任何未完成的命令。 任何它没有,你知道没有通过,可以重新提交。 一旦你得到一个命令结果的回复,你可以告诉对方它现在可以忘记响应。 这使您可以在长时间运行的 ...
  • 因为服务器和客户端使用SOCK_STREAM套接字,所以它们都知道TCP会话(包括端口,IP和( SEQ_NUMBER , ACK_NUMBER )),因此当会话正在进行时,您将不得不执行TCP hikacking和IP欺骗以发送消息在流中。 换句话说,您将不得不猜测(或窃取)服务器的ACK号码,以便使用badclient向客户端发送虚假消息。 但是,如果您将以某种方式使用goodclient回答您而不是服务器,则应运行以下命令: iptables -A FORWARD -j NFQUEUE --queue ...
  • 如果您的变量SendTimeOut <1000,那么您的recv超时将为0,我不确定这是否与设置O_NONBLOCK相同,但如果是,则听起来这是正常的过程,您应该循环直到成功(或者您获得EISCONN)或者使用不同的错误代码失败。 如果这是预期的,您可能应该只显式设置O_NONBLOCK。 http://linux.die.net/man/3/connect EINPROGRESS O_NONBLOCK被设置为套接字的文件描述符,并且无法立即建立连接; 连接应异步建立。 ... 如果无法立即建立连接并且为套 ...
  • “连接被拒绝” - 部分听起来好像你有防火墙阻止你自己的应用程序进入Socket1234或你没有打开ServerSocket 1234连接到尚未。 你能连接到ServerSocket吗? telnet 127.0.0.1 1234 如果你使用Windows? The "Connection refused"-part sounds like you either have a firewall which blocks your own application from getting to Socket ...
  • 我向Apple的开发者技术支持部门提出了这个问题,他们说过,限制用户客户端访问kexts的唯一受支持的方法是区分根和非根进程。 就个人而言,为了减少攻击面,删除用户客户端权限确实很有用。 检查特定组成员身份的Linux方式似乎也适用于OS X. (例如,您通常需要成为'kvm'组的一部分才能在Linux上使用KVM虚拟化技术。)成为组成员的唯一方法是通过root权限(设置Launch Daemon的GroupName需要root权限所以这应该是安全的。 我还没有尝试过这个,但我有2个项目,这是有意义的,所以 ...
  • 啊,愚蠢的错误! 我丢失了对客户端套接字的引用,因此在尝试关闭它时,抛出异常,但被抑制了......只需关闭套接字即可关闭客户端的telnet会话。 Ah, stupid mistake! I lost the reference to the client's socket and thus when trying to close it, an exception was thrown, but was suppressed... Simply closing the socket closes the ...
  • 您可以在客户端计算机上配置多个IPv4地址。 在客户端上运行的进程应该接收源IP地址作为参数,并将connect socket绑定到它。 因此,使用10个IP地址,您可以轻松达到400000个连接。 You can configure multiple IPv4 address on the client machine. Process that runs on client should receive source IP address as parameter, and bind connect s ...
  • 没有内置的方法来做到这一点。 你必须在客户端捕获异常,并自己实现一个重试机制。 伪代码: Socket sock = null; while (retryCounter < threshold) { try { retryCounter++; sock = new Socket(form, 1234); } catch (...) { // handle exceptions // possibly add a sleep period } } if (sock == ...
  • 最好的方法是响应超时。 因此发送请求(带超时)然后等待超时响应。 如果服务器在超时内没有响应,您可以尝试连接到下一个服务器。 像这样: if (client.TrySendFrame(TimeSpan.FromSeconds(2), jData) && client.TryReceiveFrame(TimeSpan.FromSeconds(2), out jData) ) { // Server is online } else { // Server is down } T ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。