Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Objects Harnessing the Power of Objects Abstraction at Play

kelly driskel
kelly driskel
1,498 Points

Unable to access PezDispenser in Jshell jshell> /open PezDispenser doesn't open up what is seen in the video.

Picked up _JAVA_OPTIONS: -Xmx128m
| Welcome to JShell -- Version 9
| For an introduction type: /help intro
jshell> /open PezDispenser
| File 'PezDispenser' for '/open' is not found.

1 Answer

Have you tried /open PezDispenser.java?

kelly driskel
kelly driskel
1,498 Points

Yes, get back operation not found. I see in the questions from 12-17 another user experienced inconsistencies accessing jshell. His question went unanswered. How would this affect moving forward with the techdegree for Java Script?

jshell is used for Java rather than JavaScript.

You could ignore jshell entirely and compile and run your Java code without using it. If being unable to import files is the only issue that you are having with jshell, you could try copying and pasting the code from your files directly into jshell.