Unable to compile scala code

Hi, I am unable to compile scala code. Also when writing the code in scala prompt, the cursor goes to the start of the line after typing in few characters.

[unirkr123@gw02 ~]$ scala
Welcome to Scala 2.11.8 (OpenJDK 64-Bit Server VM, Java 1.8.0_151).
Type in expressions for evaluation. Or try :help.
scala> class Order(orderId:Int, orderDate:String)
defined class Order
scala> :javap -P Order
usage :javap [opts] [path or class or -]…
-help Prints this help message
-raw Don’t unmangle REPL names
-app Show the DelayedInit body of Apps
-fun Show anonfuns for class or Class#method
-verbose/-v Stack size, number of locals, method args
-private/-p Private classes and members
-package Package-private classes and members
-protected Protected classes and members
-public Public classes and members
-l Line and local variable tables
-c Disassembled code
-s Internal type signatures
-sysinfo System info of class
-constants Static final constants
scala> class Order(orderId:Int, orderDate:String, orderCustomerId:Int, orderStat

Please use PuTTY/Cygwin in windows or Terminal in Mac/Linux PCs for uninterrupted practice.

I am using itversity labs.

How do i connect to labs through putty. Tried using the username and password from the labs credentials page.
image

Check your gateway node in labs.itversity.com it should be either of gw02 or gw03

I was able to login now using putty. But Still unable to compile the code.

What are you trying to do I can see the class is defined but can you elaborate more?

Got it. I was trying to compile the class using :javap -P classname
Should have used lower case “p” instead.

Thank you.