This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
As you are declaring a package name SD for class X, you have to place the X.java file under SD folder. Create a folder "SD" inside "B" and then compile class X using the following command: javac B\SD\X.java and compile Y.java using javac -classpath B A\Y.java
It should work! Hope this helps!
Thanks,<br />Srilatha M
Joined: Oct 24, 2008
Thank you it is working
now i want to run this x and y files how can i do this please send me the command i want to run from C:\Users\User\Desktop
i have set classpatn to difeerent folder using Environment variable so it is possible run x and y without changinhg it in current prompt(C:\Users\User\Desktop)