Skip to content

Instantly share code, notes, and snippets.

ypress:~/workspace/cappuccino (master)$ capp -h
capp [--version] COMMAND [ARGS]
--version Print version
-h, --help Print usage
org.mozilla.javascript.EcmaError: ReferenceError: "ANSITextApplyProperties" is not defined. (/usr/local/narwhal/packages/cappuccino/lib/capp/main.j#33)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3753)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3731)
at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3816)
at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1826)
cypress:~/workspace/cappuccino (master)$ echo '1+1' | shrinksafe
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
Building... /Users/pivotal/workspace/cappuccino/Build/Release/CommonJS/objective-j/lib/objective-j/jake/frameworktask.js
Copying... CommonJS/lib/objective-j/jake/LICENSES/LGPL-v2.1
Copying... CommonJS/lib/objective-j/jake/LICENSES/MIT
Building... /Users/pivotal/workspace/cappuccino/Build/Release/CommonJS/objective-j/lib/objective-j/rhino/regexp-rhino-patch.js
Copying... CommonJS/shrinksafe/js.jar
Copying... CommonJS/shrinksafe/shrinksafe.jar
Building... /Users/pivotal/workspace/cappuccino/Build/Release/Objective-J/Objective-J.js
org.mozilla.javascript.WrappedException: Wrapped java.io.IOException: Broken pipe (/usr/local/narwhal/engines/rhino/lib/io-engine.js#36)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1781)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
//WallSizer.j
//
@import <AppKit/CPWindowController.j>
@import "../models/Wall.j"
@implementation WallSizer : CPWindowController
{
Wall wall;
CPTextField widthFeetInput;
@import <AppKit/CPView.j>
@import "../models/Wall.j"
@implementation WallView : CPView {
Wall wall;
}
- (id)initWithWall:(Wall)aWall inFrame:(CGRect)aFrame {
self = [super initWithFrame:aFrame];
if (self) {
- (void)drawRect:(CGRect)aRect {
var context = [[CPGraphicsContext currentContext] graphicsPort];
var bounds = [self bounds];
// get the dimensions of the bounds and draw a rectangle with 1/4 the area
CGContextSetStrokeColor(context, [CPColor blackColor]);
myRect = CGRectMake(0,0,CGRectGetWidth(bounds) , CGRectGetHeight(bounds));
CGContextStrokeRect(context, myRect);
}