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 (Retired) Creating the MVP Storing Guesses

Please help me to understand different operation done in work space from console,

I have not used console before so it is new way to run classes and methods from console is there any separate lecture to explain this please show me. the link.

1 Answer

Albert Reel
Albert Reel
5,555 Points

There is a console foundations course that can help you get more familiar with the linux console.

Try "java -cp src syntaxtest.NewClass".

That is, if you have a folder "src" which contains the subfolder (package) "syntaxtest" and the class "NewClass" is in "package syntaxtest", then the above command will work.

I found this in a post by Maerics and it might be worth reading.