I want to bridge Processing and AIR. The
Merapi project is just what I need. When trying to import the Merapi java library into my Processing sketch, I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at merapi.Bridge.<init>(Bridge.java:360)
at merapi.Bridge.getInstance(Bridge.java:85)
at merapi_test.<init>(merapi_test.java:40)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at processing.core.PApplet.main(PApplet.java:7252)
My Java skills aren't hardcore enough to decipher this error message...
Any help getting Merapi to work within Processing is highly appreciated, thanks!
I am trying to connect to Lego NXT via Bluetooth using the Serial library.
After one succesful connection, all I get now is this error message: "Error inside Serial.<init>() gnu.io.PortInUseException: Unknown Application".
Having trawled the internet for every possible solution to this problem and still getting this #€!§ error, I am finally declaring myself checkmate... *sigh*
QUESTIONS
- Does the version of RXTX (2.1-7) that ships with the current release of Processing use lock files?
- Does the version of RXTX (2.2pre2) available at
http://jlog.org/rxtx-mac.html use lock files? According to
this section in the RXTX wiki, releases above 2.1-7 use I/O Kit instead of lock files. If this is true, why do I need to run the supplied
fixperm-217-leo.sh script to fix permissions, append group memberships and create lock directories?
- Using Terminal to check my group memberships, I am not a member of the "uucp" group after running
fixperm-217-leo.sh. Even as an admin using all "sudo"s in the world, I am not able to become a member of the "uucp" group. How does this affect my use of the RXTX library? Any ideas of why I am not able to join this group?
- Using the Serial library to connect to my Arduino is succesful. Could it be that the errors are linked to my Bluetooth setup rather than RXTX?
SETUP
Mac Os X Version 10.5.8
2.2 GHz Intel Core 2 Duo
Processing 1.2.1 (clean install)
RXTX 2.1-7 (the ones that ship with Processing 1.2.1)
No other RXTX files present anywhere in my system
JAVA
J2SE 5.0 (32 bit) version 1.5.0_26-b03
Java SE 6 (64 bit) version 1.6.0_22-b04-307
J2SE 5.0 (64 bit) version 1.5.0_26-b03
J2SE 1.4.2 (32 bit) version 1.4.2_22 (disabled)
CODE
Serial port;
void setup() {
size(400, 400);
println(Serial.list());
port = new Serial(this, Serial.list()[0], 9600);
}
(BTW: I moved my question from
http://forum.processing.org/#Topic/25080000000066289 to new seperate thread instead of a comment to an already answered question... still getting acquainted to the modus operadi of the new forum, sorry.)
As commented
here, the hint(ENABLE_ACCURATE_TEXTURES) is (supposedly?) integrated into the painfully slow smooth() in P3D (... and I totally agree with grant that accurate textures and smoothing should be dealt with as two seperate things)
No matter how I try, I can't even get remotely close to achieving the same accurate texture mapping I got with the deprecated hint(ENABLE_ACCURATE_TEXTURES) in P3D.
Activating hint(ENABLE_ACCURATE_TEXTURES) in my current release of Processing (1.2.1) messes thing up completely (a known bug reported
here).
So... my question is: How do I get accurate textures in P3D (without subdividing and getting a truckload of extra vertices as suggested
here)? Is it at all possible in the current release of Processing?