((NEWBIE to JAVA)) prob while compiling java prog using command prompt

prob when i am creating package
during compilation i got some error like:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\rahuls>cd desktop

C:\Users\rahuls\Desktop>cd javap

C:\Users\rahuls\Desktop\javap>javac Mathclass.java

C:\Users\rahuls\Desktop\javap>java -d . Mathclass.java
Unrecognized option: -d
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


MY package code is:
package p1;
public class Mathclass
public int add(int a,int b)
return a+b;

pls reply fast…

The forum rules ask you not to bump a thread if it has received no replies, and bumping it after only twenty minutes is just silly. This is a forum, not a paid help desk. People here freely give up their spare time to help others, but they’re entitled to time off - especially at weekends. Please be patient and I’m sure somebody will be able to assist you.