处理(Java):无法检测到库的原因列表(Linux) [英] Processing (Java): List of reasons why a library won't be detected (Linux)

查看:510
本文介绍了处理(Java):无法检测到库的原因列表(Linux)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

处理无法检测到外部库的安装有很多原因。

There are apparently numerous reasons why Processing will not detect the installation of an external library.

1)库安装在错误的文件夹中

该库必须安装在sketchbook文件夹中的libraries目录中,该目录可能不在安装目录中。小心Linux区分大小写,因此库和库是两个不同的目录,如sketchbook和Sketchbook。

The library must be installed in a directory "libraries" in the sketchbook folder, which is probably not in the installation directory. Careful Linux is case sensitive so libraries and Libraries are two different directories, as are sketchbook and Sketchbook.

2)库安装在正确的文件夹中但错误引用

通过查看Processing编辑器的File菜单中的Preferences,可以确认Processing使用的当前sketchbook目录。

It's possible to confirm the current sketchbook directory used by Processing by looking in "Preferences" in the "File" menu of the Processing editor.

3)preferences.txt问题

Preferences.txt允许手动输入。如果您没有preferences.txt,则没有问题

Preferences.txt allows manual entries to be made. If you don't have a preferences.txt then there's no problem

4)文件夹本身的权限

5)??

这是我的问题。出于某种原因,虽然一切都在应有的位置,但是当它从zip文件中提取时,处理器无法识别SoundCipher,如从网上下载并按照每个博客,自述文件等的指示,我可以找到。

And that is my question. For some reason, although everything is where it should be, Processing doesn't recognise SoundCipher when it has been dropped in as extracted from a zip file, as downloaded from the net and as instructed by every blog, readme file, etc I can find.

所以我假设还有其他东西可能会对Processing检测库的能力造成严重破坏?

So I'm assuming there's something else that may cause havoc with Processing's ability to detect a library?

操作系统:
Ubuntu 14 LTS

编辑器出错:
类SoundCipher不存在

错误消息是:
找不到arb.soundcipher的库
找不到arb.soundcipher.constants的库
库必须安装在'sketchbook'文件夹中名为'libraries'的文件夹中。

Sketchbook文件夹路径:
/ home / steg / sketchbook

Sketchbook folder path: /home/steg/sketchbook

在首选项中,sketchbook路径为:
/ home / steg / sketchbook

In Preferences, sketchbook path is: /home/steg/sketchbook

图书馆的路径是:
/ home / steg / sketchbook / l ibraries / soundcipher

来源的路径是:
/ home / steg / sketchbook / libraries / soundcipher / src

soundcipher文件夹中的所有其他目录都是......但是错误似乎与听众无关。

All other directories in soundcipher folder are as is... Yet the error is not related to soundcipher seemingly.

草图中的代码:

 import arb.soundcipher.*; 
 import arb.soundcipher.constants.*;

 SoundCipher sc = new SoundCipher(this);


推荐答案

向草图添加库的最简单方法是只需将库jar拖到Processing编辑器上。

The easiest way to add a library to a sketch is to simply drag the library jar onto the Processing editor.

您不必在库目录中安装库。只需找到 SoundCipher.jar 并将其直接拖到处理编辑器中的草图上。

You don't have to install the library in the libraries directory. Just find SoundCipher.jar and drag it directly onto your sketch in the Processing editor.

这将添加库到你的草图,你将能够使用 SoundCipher 类。

That will add the library to your sketch, and you'll be able to use the SoundCipher class.

这篇关于处理(Java):无法检测到库的原因列表(Linux)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆