I have two main class in my netbeans project, and in one program I am calling the other Class
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
NewJFrame k = new NewJFrame();
k.setVisible(true);
//close();
Both the programs are running fine independently , and if I run one program then using above button action my new form from the other class is opening, I mean in netbeans everything is working as expected.
But if when I am making jar file and running it , then it runs but the another form is not opening when I click on the button,
Please help me..