plasma-umass / doppio

Breaks the browser language barrier (includes a plugin-free JVM).

Home Page:http://plasma-umass.github.io/doppio-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User-unfriendly error message when main class not present

hhuynh opened this issue · comments

Failed to run provided example (Mac, node 6.11.2)

% ../../doppio -cp example example.App

Encountered error: TypeError: Cannot read property 'getLoader' of undefined
TypeError: Cannot read property 'getLoader' of undefined
at a.getLoader (/Volumes/Unix/workspace/doppio/src/threading.ts:709:49)
at a.throwNewException (/Volumes/Unix/workspace/doppio/src/threading.ts:1159:44)
at b.a.throwClassNotFoundException (/Volumes/Unix/workspace/doppio/src/ClassLoader.ts:341:12)
at a.cb (/Volumes/Unix/workspace/doppio/src/ClassLoader.ts:554:14)
at a.run (/Volumes/Unix/workspace/doppio/src/threading.ts:552:12)
at a.run (/Volumes/Unix/workspace/doppio/src/threading.ts:851:12)
at Immediate. (/Volumes/Unix/workspace/doppio/src/threadpool.ts:84:16)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)

I have the same issue

I've confirmed and reproduced the issue! I'll take a look when I have time. Thanks for reporting.

Oof, this is an unfortunate non-error message.

You're actually specifying your classpath incorrectly! If you try:

java -cp docs/examples/example example.App

...notice that it doesn't work. Instead, you need to do:

java -cp docs/examples example.App

Thus, run the following command instead:

../../doppio -cp docs/examples example.App

With that said, this should really give you a better error message!

Thank you a lot for a quick reply! It worked!

yes that was it. Though if you're inside the docs/examples folder, the correct command is:

%> ../../doppio -cp . example.App