i using netbeans for devleop smslib and mark some line
public static void main(String[] args)
{
System.out.println(Library.getLibraryDescription());
System.out.println("\nAPI version: " + Library.getLibraryVersion());
System.out.println("SMSServer version: " + Library.getLibraryVersion());
SMSServer app = new SMSServer();
// mark this line
// for (int i = 0; i < args.length; i++)
// {
// if (args[i].equalsIgnoreCase("-runonce"))
app.optRunOnce = true;
// else System.out.println("Invalid argument: " + args[i]);
// }
//end mark
try
{
app.optRunOnce=true; //and add this line
app.run();
System.out.println("SMSServer exiting normally.");
}
catch (Exception e)
{
System.out.println("SMSServer Error: ");
....
....
////////////****************
when error appears that comiler reach this function
@SuppressWarnings("unchecked")
private void loadConfiguration() throws Exception
{
FileInputStream f;
this.props = new Properties();
System.out.println("reach here 1");
if (System.getProperty("smsserver.configdir") != null)
{
System.out.println("reach here 2");
f = new
FileInputStream(System.getProperty("smsserver.configdir") +
"SMSServer.conf");
System.out.println("reach here 3");
}
else if (System.getProperty("smsserver.configfile") != null)
{
System.out.println("reach here 4");
f = new
FileInputStream(System.getProperty("smsserver.configfile"));
}
else
{
System.out.println("reach here 5");
f = new FileInputStream("SMSServer.conf");
System.out.println("reach here 6");
}
System.out.println("reach here 7");
getProperties().load(f);
f.close();
//----------------------- Log (Error)
JRE Version: 1.6.0_05
JRE Impl Version: 10.0-b19
O/S: Windows XP / x86 / 5.1
reach here 1
reach here 5
SMSServer Error:
SMSServer shutting down, please wait...
----------------
thanks
not solved my problem yet
On 10/5/09, Thanasis <[email protected]> wrote:
>
> As always, when a path contains spaces you should include it in quotes.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SMSLib for Java User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/smslib?hl=en
-~----------~----~----~----~------~----~------~--~---