Skip to content

Instantly share code, notes, and snippets.

@macournoyer
Created December 12, 2008 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macournoyer/35214 to your computer and use it in GitHub Desktop.
Save macournoyer/35214 to your computer and use it in GitHub Desktop.
Error while running applet.
processing/core/PApplet.java:1242:in `createGraphics': java.lang.RuntimeException: You need to use "Import Library" to add processing.opengl.PGraphicsOpenGL to your sketch. (NativeException)
from processing/core/PApplet.java:1015:in `size'
from processing/core/PApplet.java:959:in `size'
from sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
from sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
from sun/reflect/DelegatingMethodAccessorImpl.java:25:in `invoke'
from java/lang/reflect/Method.java:585:in `invoke'
from org/jruby/javasupport/JavaMethod.java:250:in `invokeWithExceptionHandling'
from org/jruby/javasupport/JavaMethod.java:219:in `invoke'
... 22 levels...
from java/lang/Thread.java:613:in `run'
from samples/kinetic-type.rb:18:in `setup'
from :1
Complete Java stackTrace
java.lang.RuntimeException: You need to use "Import Library" to add processing.opengl.PGraphicsOpenGL to your sketch.
at processing.core.PApplet.createGraphics(PApplet.java:1242)
at processing.core.PApplet.size(PApplet.java:1015)
at processing.core.PApplet.size(PApplet.java:959)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling(JavaMethod.java:250)
at org.jruby.javasupport.JavaMethod.invoke(JavaMethod.java:219)
at org.jruby.javasupport.JavaClass$InstanceMethodInvoker.execute(JavaClass.java:417)
at org.jruby.internal.runtime.methods.SimpleCallbackMethod.call(SimpleCallbackMethod.java:67)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:94)
at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:206)
at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:366)
at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1141)
at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:355)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:172)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:148)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:265)
at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:146)
at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:302)
at ruby.Users.marc.projects.ruby_minus_processing.samples.kinetic_minus_type.method__1$RUBY$setup(samples/kinetic-type.rb:18)
at ruby.Users.marc.projects.ruby_minus_processing.samples.kinetic_minus_typeInvokermethod__1$RUBY$setupFixed0.call(Unknown Source)
at org.jruby.RubyClass.invoke(RubyClass.java:238)
at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:323)
at org.jruby.javasupport.proxy.JavaProxyConstructor$1.invoke(JavaProxyConstructor.java:187)
at processing.core.PApplet$Proxy0.setup(Unknown Source)
at processing.core.PApplet.handleDisplay(PApplet.java:1390)
at processing.core.PGraphics.requestDisplay(PGraphics.java:690)
at processing.core.PApplet.run(PApplet.java:1562)
at java.lang.Thread.run(Thread.java:613)
...internal jruby stack elided...
processing/core/PApplet.java:1242:in `createGraphics': java.lang.RuntimeException: You need to use "Import Library" to add processing.opengl.PGraphicsOpenGL to your sketch. (NativeException)
from processing/core/PApplet.java:1015:in `size'
from processing/core/PApplet.java:959:in `size'
from sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
from sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
from sun/reflect/DelegatingMethodAccessorImpl.java:25:in `invoke'
from java/lang/reflect/Method.java:585:in `invoke'
from org/jruby/javasupport/JavaMethod.java:250:in `invokeWithExceptionHandling'
from org/jruby/javasupport/JavaMethod.java:219:in `invoke'
... 22 levels...
from java/lang/Thread.java:613:in `run'
from samples/kinetic-type.rb:18:in `setup'
from :1
Complete Java stackTrace
java.lang.RuntimeException: You need to use "Import Library" to add processing.opengl.PGraphicsOpenGL to your sketch.
at processing.core.PApplet.createGraphics(PApplet.java:1242)
at processing.core.PApplet.size(PApplet.java:1015)
at processing.core.PApplet.size(PApplet.java:959)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling(JavaMethod.java:250)
at org.jruby.javasupport.JavaMethod.invoke(JavaMethod.java:219)
at org.jruby.javasupport.JavaClass$InstanceMethodInvoker.execute(JavaClass.java:417)
at org.jruby.internal.runtime.methods.SimpleCallbackMethod.call(SimpleCallbackMethod.java:67)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:94)
at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:206)
at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:366)
at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1141)
at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:355)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:172)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:148)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:265)
at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:146)
at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:302)
at ruby.Users.marc.projects.ruby_minus_processing.samples.kinetic_minus_type.method__1$RUBY$setup(samples/kinetic-type.rb:18)
at ruby.Users.marc.projects.ruby_minus_processing.samples.kinetic_minus_typeInvokermethod__1$RUBY$setupFixed0.call(Unknown Source)
at org.jruby.RubyClass.invoke(RubyClass.java:238)
at org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:323)
at org.jruby.javasupport.proxy.JavaProxyConstructor$1.invoke(JavaProxyConstructor.java:187)
at processing.core.PApplet$Proxy0.setup(Unknown Source)
at processing.core.PApplet.handleDisplay(PApplet.java:1390)
at processing.core.PGraphics.requestDisplay(PGraphics.java:690)
at processing.core.PApplet.run(PApplet.java:1562)
at java.lang.Thread.run(Thread.java:613)
...internal jruby stack elided...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment