robin singal

Ranch Hand
+ Follow
since Jul 18, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by robin singal

Continuing with my previous most. I am giving some detailed info supporting the above post:

i used command:



to know what activity was going on while i plug in the usb device(phone modem)
This is what i get:



Then i used command:



And i got the following description about my device on which i did'nt have much clue


Then i used the command:


which gave following message on log/messages



Then i executed :



which went on waiting state for any activity.


Then i executed my java program which on completion gives the following output on the shell prompt of udevmonitor:



So where am i what is that i am missing??

Still searching for the answers ....

Would post soon if any progress is made......
16 years ago
Now i am able to submit data and now data event does occur.
What i did :

I used two pipes one for input and one for output and used asynchronous communication two talk with the modem.

Now the problem is when i am sending the String "AT"+(char)13 i am not getting proper response.
What i am getting is square boxes.

Below is the code snippet:



What i get printed in the name of cb is 5 square boxes which is equal to length of b1. As Jsr80 api only act as a data carrier so i need to make sure the data travels in the form of 8 - bit ascii charset and then i again decode it to see what is the response received but rather i get 5 square boxes.

Does anybody have a solution???

Thanks
16 years ago
Hi

I am using phone as Usb modem for doing I/0 but i am stuck while submitting data to the modem.



The output is stuck at, "before submit" and the program is not executed further but waiting or hang i dont know.
Also dataEventOccurred() is not invoked.

Thanks!
16 years ago
Ya I would see to it & would ensure that the thread moves to the expert level.

Thanks
16 years ago

Start by using multiple jar files that are referenced from a single manifest, and see if that works for you.



ya i have done that, the other jar files were placed outside the executable jar in lib folder and i gave that information in the manifest file. It runs fine.

That's not rocket science, but not for the faint of heart (or beginners) either.



I am not a beginner now as Bert has moved it to intermediate ...
Atleast i can try ,How can i write a classloader implementation ??
From where to start ?

Thanks
16 years ago
This is what i found useful:

Note : The Class-Path header points to classes or JAR files on the local network, not JAR files within the JAR file or classes accessible over internet protocols. To load classes in JAR files within a JAR file into the class path, you must write custom code to load those classes. For example, if MyJar.jar contains another JAR file called MyUtils.jar, you cannot use the Class-Path header in MyJar.jar's manifest to load classes in MyUtils.jar into the class path.



What custom code i have to write ??

Thanks
16 years ago
Hi

First i would explore the possibilities of manifest file then i would post weather I got it worked

Thanks
16 years ago
Hi

I want to know is it possible to use a Single jar file which contains classes that uses other jar that helps for DB connection, logging. And the other jar should be in the same single jar. Or there might be a way if i extract all the jar into a single directory and append all the manifest info of all jars into single manifest file.

Thanks
16 years ago
Hi

I am trying to use launch4j software for making a exe from a jar file. The problem i am facing is i am unable to force the exe to use the bundled jre in a subfolder.

When i try to do so it takes me to the download page of sun.

Below is the xml configuration generated by launch4j.



When i double click the exe file, it gives a message saying :
The system cannot find the path specified.

Thanks
[ December 12, 2008: Message edited by: robin singal ]
Just add a few microseconds sleep to the thread which is in while loop. You will see the difference.

Those variables are local to the method they are in.



Can you please elaborate a bit ...? The method you are considering is doPost() & the variables considered is one & two ??

Thanks
Hi

I am creating a thread in doPost method
(Reason for creating thread: The process takes a long time as it involves insertion of 10000 or so entries in database)
now there are variables whose values in want in the thread.

Now my question is how do i pass the values of variables to the thread i am creating in the doPost method??
var1 & var2 are the variables whose value i want in the thread.

What i have done to solve the above problem:



Is above the right way to use the variables? When there would be multiple instances running or different users working simultaneouly, would the variables "one" and "two" will be shared among them as they(one & two) are class variables.

Thanks
Hi
I worked it out actually i was using


and should have used while loop instead of an if loop as i was getting the html code as response rather then plain text.

Sorry for taking your precious time.
well
Thanks to all.
16 years ago
Hi



s is the set of parameters that i am appending to the 1st url and after flushing data to the url ,i would get response in 2nd url.
Actually if i consider the scenario in a browser what happens is:

When i enter the 1st url in the browser with the required parameters i am moved to success.asp with parameters appended to it .

What does "get in 2nd url" mean



The problem is that what i am able to do in the browser; i am unable to do it in the program ...i.e i am unable to get the respose which is displayed as text in the browser on success or as the get parameters (i.e par1 & par2) along with the url....

should i explain more...

thanks
16 years ago