Hi all, Sorry for the delayed reply. I am also met the same problem. Problem may be signing the application jar. If we trying to access with system resources some applications should signed by java keytool and jar signer. In my case its working fine, there is not OS problem
On Sun, Feb 22, 2009 at 7:33 PM, btd1 <[email protected]> wrote: > > Everyone, > > Problem sovled! > > I was planning on doing an OS format and re-install. Did that and > worked through the installation process for > SMSLib and everything works fine. Including running the JAR file > outside netbeans. The problem must of > been in relation to copying the the appropriate files to the > appropriate directories. > > Thanks everyone for your help, > As usual you were very helpfull. > > Thanks, > btd1. > > On Feb 22, 12:40 pm, Thanasis <[email protected]> wrote: > > Have you copied the necessary javacomm files in both the JDK and JRE > > directories? > > > > On Feb 22, 1:48 pm, btd1 <[email protected]> wrote: > > > > > > > > > Digiloo, > > > > > I can build and run the app from netbeans with no problems. But when > > > it comes to running the Jar file that > > > Netbeans makes when you build the project I get the following error: > > > > > > ___________________________________________________________________________ > _________ > > > C:\Users\btd1\Documents\NetBeansProjects\SMSReadServer\dist>java -jar > > > "SMSReadServer.jar">>> Gateway Status change for modem.com9, OLD: > STOPPED -> NEW: RESTART > > > > > org.smslib.GatewayException: Comm library exception: > > > java.lang.reflect.InvocationTargetException > > > at org.smslib.modem.SerialModemDriver.connectPort > > > (SerialModemDriver.java:92) > > > at org.smslib.modem.AModemDriver.connect(AModemDriver.java: > > > 110) > > > at org.smslib.modem.ModemGateway.startGateway > > > (ModemGateway.java:126) > > > at org.smslib.Service$1Starter.run(Service.java:222) > > > > > C:\Users\btd1\Documents\NetBeansProjects\SMSReadServer\dist> > > > > ___________________________________________________________________________ > _________ > > > > > All ideas are most welcome, > > > > > thanks in advance, > > > btd1. > > > > > On Feb 22, 6:43 am, digiloo <[email protected]> wrote: > > > > > > Hi, > > > > > > Are you saying that you can run the app from NetBeans, or only build > > > > it? > > > > > > What exact error do you get now with comm utilities in place? > > > > > > / Hakana > > > > > > On 21 Feb, 22:07, btd1 <[email protected]> wrote: > > > > > > > Hi Thanasis, > > > > > > > I checked and double checked my installation and I have added the > > > > > comm.jar, javax.comm.properties and win32com.dll > > > > > in the correct place. I have two versions of Java but I have added > the > > > > > appropriate files to the appropriate directories. > > > > > > > I dont understand how it can work in Netbeans but not externally. > > > > > > > Thanks for your help guys, > > > > > If anybody has an idea, all are welcome! > > > > > > > Cheers, > > > > > btd1 > > > > > > > On Feb 21, 7:58 pm, Thanasis <[email protected]> wrote: > > > > > > > > Hi, > > > > > > > > Check your JavaComm installation. > > > > > > You must be missing or misplaced a javacomm file - see here for > > > > > > instructions:http://smslib.org/doc/installation/ > > > > > > > > On Feb 21, 8:47 pm, btd1 <[email protected]> wrote: > > > > > > > > > Hi Hakan, > > > > > > > > > Thanks, I was short the comm.jar file (rookie mistake) and now > it runs > > > > > > > (for a while). > > > > > > > Its output: > > > > > > > ______________________________________________________ > > > > > > > > > >>> Gateway Status change for modem.com9, OLD: STOPPED -> NEW: > RESTART > > > > > > > > > org.smslib.GatewayException: Comm library exception: > > > > > > > java.lang.reflect.Invocatio > > > > > > > nTargetException > > > > > > > at org.smslib.modem.SerialModemDriver.connectPort > > > > > > > (SerialModemDriver.java > > > > > > > :92) > > > > > > > at > org.smslib.modem.AModemDriver.connect(AModemDriver.java: > > > > > > > 110) > > > > > > > at org.smslib.modem.ModemGateway.startGateway > > > > > > > (ModemGateway.java:126) > > > > > > > at org.smslib.Service$1Starter.run(Service.java:222) > > > > > > > ____________________________________________________ > > > > > > > > > So now at least it runs but I then I get a Comm library > exception. > > > > > > > > > Thanks again, > > > > > > > you're really helping me out. > > > > > > > > > btd1. > > > > > > > > > On Feb 21, 6:34 pm, digiloo <[email protected]> wrote: > > > > > > > > > > Hi, > > > > > > > > > > As the error printout says: > > > > > > > > > > > Caused by: java.lang.RuntimeException: CommPortIdentifier > class not found > > > > > > > > > > SMSLib tries to load this class dynamically during runtime > and it > > > > > > > > live in comm.jar, that needs to be in the classpath > > > > > > > > > > / Hakan > > > > > > > > > > On 21 Feb, 18:45, btd1 <[email protected]> wrote: > > > > > > > > > > > Hi Everyone, > > > > > > > > > > > I loved using SMSLib for the last few months- got to say > its great! > > > > > > > > > > > On to my problem: > > > > > > > > > > > I messed around using the ReadMessages example that comes > with the > > > > > > > > > download. The only change I made to that code was an insert > into a > > > > > > > > > database when a message is recieved. I created a project in > Netbeans, > > > > > > > > > added the appropriate jars etc and the Project builds and > runs fine. > > > > > > > > > > > My problem occurs when I try to execute the Jar file that > Netbeans > > > > > > > > > creates outside of the Netbeans IDE. Executing the jar with > a batch > > > > > > > > > file or just typing [ java -jar "ReadMsg.jar" ] gives > me this > > > > > > > > > error: > > > > > > > > > > > > ___________________________________________________________________________ > _____ > > > > > > > > > Exception in tread "Thread-1" > java.lang.ExceptionInInitializerError > > > > > > > > > at org.smslib.modem.SerialModemDriver.connectPort > > > > > > > > > (SerialModemDrive.java:67) > > > > > > > > > at > org.smslib.modem.AModemDriver.connect(AModemDriver.java:110) > > > > > > > > > at > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java: > > > > > > > > > 126) > > > > > > > > > at org.smslib.Service$1Srarter.run(Service.java:222) > > > > > > > > > Caused by: java.lang.RuntimeException: CommPortIdentifier > class not > > > > > > > > > found > > > > > > > > > at org.smslib.helper.CommPortIdentifier.<clinit> > > > > > > > > > (CommPortIdentifer.java:75) > > > > > > > > > . . . 4 more > > > > > > > > > > ___________________________________________________________________________ > _____ > > > > > > > > > > > I dont get any error in Netbeans, not even warnings. > > > > > > > > > > > Any ideas what is going on? > > > > > > > > > > > Thanks in advance, > > > > > > > > > btd1.- Hide quoted text - > > > > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > > > - Show quoted text -- Dölj citerad text - > > > > > > > - Visa citerad text -- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text - > > > -- Thanks & Regards, Sakthivel Thangasamy, +91 - 9886048815 Excellence is a drive from inside, not outside. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib 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 -~----------~----~----~----~------~----~------~--~---
