Java: How do I start a standalone application from the current one when both are in the same package?

前端 未结 3 1136
面向向阳花
面向向阳花 2020-11-22 09:33

This seems like it should be easy, so I must be missing something obvious: I have 4 standalone applications in the same package, us.glenedwards.myPackage,

  • myC
3条回答
  •  Happy的楠姐
    2020-11-22 09:59

    I was right; it was a no-brainer. That's what I get for writing code on 4 hours of sleep:

    myClass2 class2 = new myClass2(); 
    try { 
     class2.start(stage); 
    } catch (Exception e) { e.printStackTrace(); } }
    

提交回复
热议问题