Created
April 6, 2010 23:27
-
-
Save stepheneb/358264 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[coroutines (master)]$ ls -l | |
total 120 | |
-rw-r--r-- 1 stephen staff 711 Apr 6 19:07 CoroutineTest1.class | |
-rw-r--r-- 1 stephen staff 320 Mar 10 08:35 CoroutineTest1.java | |
-rw-r--r-- 1 stephen staff 51211 Mar 10 05:14 coroutine_classes.jar | |
[coroutines (master)]$ cat CoroutineTest1.java | |
import java.dyn.Coroutine; | |
public class CoroutineTest1 extends Coroutine { | |
@Override | |
public void run() { | |
System.out.println("Coroutine.run"); | |
} | |
public static void main(String[] args) { | |
new CoroutineTest1(); | |
System.out.println("main start"); | |
coYield(); | |
System.out.println("main end"); | |
} | |
} | |
[coroutines (master)]$ javac CoroutineTest1.java | |
CoroutineTest1.java:12: cannot find symbol | |
coYield(); | |
^ | |
symbol: method coYield() | |
location: class CoroutineTest1 | |
1 error | |
[coroutines (master)]$ javac -Xbootclasspath/p:`pwd`/coroutine_classes.jar CoroutineTest1.java | |
[coroutines (master)]$ java -Xbootclasspath/p:`pwd`/coroutine_classes.jar CoroutineTest1 | |
Exception in thread "main" java.lang.UnsatisfiedLinkError: java.dyn.CoroutineSupport.registerNatives()V | |
at java.dyn.CoroutineSupport.registerNatives(Native Method) | |
at java.dyn.CoroutineSupport.<clinit>(CoroutineSupport.java:39) | |
at java.lang.Thread.initializeCoroutineSupport(Thread.java:273) | |
at java.dyn.CoroutineBase.<init>(CoroutineBase.java:37) | |
at java.dyn.Coroutine.<init>(Coroutine.java:32) | |
at CoroutineTest1.<init>(CoroutineTest1.java:3) | |
at CoroutineTest1.main(CoroutineTest1.java:10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment