Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ProjectName {
- public ProjectName() {
- if (JINI4j.verify("path_to_config")) {
- final SMSReceiver receiver = new SMSReceiver();
- if (receiver.startGateway()) {
- receiver.execute();
- } else {
- // Warning or exit the program
- }
- } else {
- // Warning - config file not found or contains error, exit the program
- }
- }
- public static void main(String args[]) {
- SwingUtilities.invokeLater(new Runnable() {
- @Override
- public void run() {
- new ProjectName();
- }
- )};
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment