Java program is compiling in netbeans but not in CMD, package does not exist
Java program is compiling in netbeans but not in CMD, package does not exist I'm working on a shop management System program. Building this using NetBeans, Java and SQL Server. I used a Jdatepicker in my Program. It is working well in NetBeans, but now I was trying to compile it through CMD. i'm using correct syntax, but yet it is giving me errors package org.jdesktop.swingx does not exist import org.jdesktop.swingx.JXDatePicker; with many similar errors about datepicker . I have already imported 4 libearies Jdatepicker package org.jdesktop.swingx does not exist import org.jdesktop.swingx.JXDatePicker; datepicker import javax.swing.JFormattedTextField.AbstractFormatter; import org.jdesktop.swingx.JXDatePicker; import org.jdesktop.swingx.plaf.basic.CalendarHeaderHandler; import org.jdesktop.swingx.plaf.basic.SpinningCalendarHeaderHandler; for this purpose, It is working well in NetBeans but not in cmd. I have used javac in cmd using -classpath file address.jar , but same erro...