首页 \ 问答 \ 上传jedis .jar文件到Git Repository(Uploading jedis .jar file To Git Repository)

上传jedis .jar文件到Git Repository(Uploading jedis .jar file To Git Repository)

我正在关注一个jedis教程 ,我似乎无法通过引用Jedis来编译java文件。 我继续收到此错误:

error: package redis.clients.jedis does not exist
import redis.clients.jedis.Jedis;
                          ^

我从这个链接下载了这个文件 (名为jedis-2.9.0.jar),因为它是当时的最新版本。 当我在基于Redis的应用程序中右键单击“库”并单击“添加JAR /文件夹...”时,我成功添加了文件,jedis在我的Netbeans环境中正常运行。

在Netbeans Library Link中的jedis jar的图片,因为我需要更多的点来嵌入图像

问题 :我无法在命令行中编译任何jedis java文件。 无论我在哪个目录中,错误都会持续存在。我还想在存储库中的某处保存这个.jar文件,这样当我将这个项目提交到git repo时,.jar也会出现。

有什么方法可以打包这个.jar所以它可以和其他文件一起旅行吗? 我很想把它放在以下任何一个地方:

> Projectname  
>> nbproject  
>> src  
>> test  
>> build.xml  
>> manifest.mf  

I'm following a jedis tutorial, and I can't seem to javac-compile java files with references to Jedis. I keep on getting this error:

error: package redis.clients.jedis does not exist
import redis.clients.jedis.Jedis;
                          ^

I downloaded this file (named jedis-2.9.0.jar) from this link because it was the latest version at the time. When I right-clicked 'Libraries' in my Redis-based application and clicked 'Add JAR/Folder...', I successfully added the file and jedis runs normally in my Netbeans Environment.

Picture of jedis jar in Netbeans Library Link because I need more points to embed images

The Problem: I cannot compile any jedis java files in the command line. The error persists no matter what directory I'm in. I also want to save this .jar file somewhere within the repository so that when I commit this project to a git repo, the .jar comes along too.

Is there any way I can pack this .jar so it can travel with the rest of the files? I would love to put it in any of these locations:

> Projectname  
>> nbproject  
>> src  
>> test  
>> build.xml  
>> manifest.mf  

原文:https://stackoverflow.com/questions/51121472
更新时间:2024-02-06 17:02

最满意答案

检查以下内容 - 1.在HTML中,您已声明两次表单名称行,这不是必需的。 2.您应该在配置为邮件服务器的服务器/ PHP配置文件中进行设置。 如果未连接邮件服务器,则无法发送邮件


Check the following things- 1. In your HTML you have declared Name Line of form twice, which is not required. 2. You should have setting in your server/PHP configuration file configured to a mail Server. Without Mail server connected, you can't send mails

相关问答

更多
  • 根据您的错误,看起来您的系统中没有安装PHP。 你可以在这里下载PHP: http : //php.net/downloads.php 如果您使用的是Windows操作系统,我建议您安装xampp以方便使用。 你可以在这里下载xampp: https : //www.apachefriends.org/index.html Based on your error, look like you doesn't have PHP installed in your system. You can downloa ...
  • 您在
    标记之外有提交代码
    进行以下更改: 第一变化: 在表单标签中,只需根据服务器上的指定名称添加名称。
  • 检查以下内容 - 1.在HTML中,您已声明两次表单名称行,这不是必需的。 2.您应该在配置为邮件服务器的服务器/ PHP配置文件中进行设置。 如果未连接邮件服务器,则无法发送邮件 Check the following things- 1. In your HTML you have declared Name Line of form twice, which is not required. 2. You should have setting in your server/PHP configura ...
  • 看看你更新的if语句。 它说:如果表单已经提交,那么显示“谢谢”,如果表单尚未提交,则显示“似乎有问题”。 这就是你总是看到“似乎有问题”的原因,因为当你查看表单而不提交它时,你的if语句的else块会触发。 你应该删除else块,因为它没有任何意义,所以它变成: if ($_SERVER['REQUEST_METHOD'] == 'POST') { // form has been submitted, handle the data and say thanks... echo "Tha ...
  • 好的,我回答了我的评论。 if(isset($_POST['Submit'])) 更改提交以提交 。 你也可以使用 if(isset($_POST)) 代替 Ok, I make an answer of my comment. if(isset($_POST['Submit'])) Change Submit to submit. You can also use if(isset($_POST)) instead
  • 作为Dhinju Divakarans答案的替代方案,您可以更改邮件服务器设置以使用外部邮件服务器(例如gmail) 我是通过编辑/xampp/sendmail/sendmail.ini 。 查找以下代码并更改值。 在我的情况下,以下工作正常: smtp_server=smtp.googlemail.com auth_username= (put the gmail email address here) auth_password= your password hostname=smtp.googlema ...
  • 如果没有正确配置php.ini,您将永远不会在本地发送任何电子邮件(您需要设置smtp服务器权限)。 但是,当您将其上传到您的虚拟主机位置时,它将开始工作,没有任何电子邮件混淆。 它将使用来自服务器的smtp设置。 只要尝试上传,你就会看到这种魔力。 Without correct configuration of php.ini you will never send any email locally (you need to set smtp server right). But when you u ...
  • 您的表单需要将该POST请求发送到.php文件的路径。 目前,表单的URL将变为“#”。 一旦您将请求发送到正确的URL(.php路径),它将执行该.php脚本,该脚本应该从那里处理事情。 所以如果你的web根文件结构看起来像这样... |_ . |_ .. |_ js/ |_ css/ |_ index.php |_ request.php 然后,您可以简单地将表单URL指向“/request.php”。 您还需要一个按钮来实际提交需要在标记内的 :
  • 完整的脚本它应该没有任何问题

相关文章

更多

最新问答

更多
  • 获取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的基本操作命令。。。