How to do this?

Hello all,

I am using third party api for my appl ,so i need to include its jar file in /lib/ext...Now my appl should run on different pc which may or may not have jre...but how do i include this jar file when am not sure if my client has jre ?

I have searched in forums and read abt including jre with my appl...

So my doubts are:

1-to include this jar file?

2-How to add jre in my application so that it is used and not the 1 in my clients pc?(as i have to add an jar file)

[512 byte] By [codeit@717a] at [2007-11-27 1:09:33]
# 1

hello there

i really need your help , i read your errors may u found a solution ,me too i gotta the same errors .

i wanna send an SMS to mobiles i followed many ways like WMA...ext

but what i need now : how to send sms with jSMS .

this is the source code :

try{

Properties props=new Properties();

props.put("sms.gsm.connector","SERIAL");

props.put("connector.serial.port","COM1");

props.put("connector.serial.bps","19200");

props.put("gsm.license.company","cmos");

props.put("gsm.license.user","maghzaoui jalal");

props.put("gsm.license.version","2.2.0");

props.put("gsm.license.type","TRIAL LICENSE");

props.put("gsm.license.not-before","1306598");

props.put("gsm.license.not-after","1308518");

props.put("gsm.license.sig","YhIGfsR2DvoijCwzvm15i0Np8e5wbSZBHk7idUw5hLFit8xE+NT9y+ZNLPZ/WDfxDMaf8R6Rk5uFtSY7ez38/w==");

File config=new File("C:/jSMS-2.2.0/bin/jsms.conf");

SmsService service=new GsmSmsService();

service.init(props);

service.init(config);

Message msg=new Message();

msg.setSender("jalal");

msg.setRecipient("0012XXXXXX");//the phone number

msg.setMessage("hello there");

service.connect();

service.sendMessage(msg);

if(true){jEditorPane1.setText("ok...");}

service.disconnect();

}catch(Exception ok){

jEditorPane1.setText(""+ok.getMessage());

}

}

the errors are after the execution :

No reply from GSM device. // this appear in my frame (jEditorPane).

gsm: No license key for this module! // this appear in the messages Area

i'm using ZTE / ZXDSL 852 (my modem)...

i hope that u aswer me soon and thankx so much.

djosoft@yahoo.fra at 2007-7-11 23:44:50 > top of Java-index,Desktop,Runtime Environment...
# 2

To djosoft@yahoo.fr:

Your problem has nothing to do with the original poster's question.

Please don't hijack other people's thread.

Post your own message in the appropriate forum with an appropriate subject line please.

To codeit@717

Your first question can be solved by using something like "one-jar"

to merge your JAR with other 3rd party JARs into a single jar.

http://one-jar.sourceforge.net/

Your second question is typically solved by asking users

to go to java.com if they don't have Java.

KathyMcDonnella at 2007-7-11 23:44:50 > top of Java-index,Desktop,Runtime Environment...
# 3
if u gotta the right code source plz send me this is my e-mail : jalalhard@yahoo.fr thinkx.
djosoft@yahoo.fra at 2007-7-11 23:44:50 > top of Java-index,Desktop,Runtime Environment...
# 4
You are in the wrong forum.And you hijacked another poster's thread.Try one of the Java Mobility Forums: http://forum.java.sun.com/category.jspa?categoryID=22
KathyMcDonnella at 2007-7-11 23:44:50 > top of Java-index,Desktop,Runtime Environment...