How to run program from command line that resides in a packge
Hope you all will be fine.I wrote a program that consist of 11 java files and it is in a package named asteriskproject.I have run it on NetBeans IDE and it works fine. I also add two jar in the netbeans library when ran it on NetBeans i.e. mail.jar and mysql-connector.jar. I have also added these two jars in my classpath.
Now i want to run it on Linux. But for experiment first i tried it on windows command prompt. First i copied the folder(asteriskproject) in D:\Check in which my all java files are present. Now the folder become D:\Check\asteriskproject\all .java extension files. Then i opened cmd and go to the D:\asteriskproject and type javac Main.java(main file) but it gives me error. On netbeans it works fine.Certainly i am doing something wrong because it is in a package and also need two jar files.I am attaching an attachment too
Can anyone please guide me how can i run this project using command line because after testing here i am to run it on Linux also.