B4J Question B4J Serial USB program terminates on serial Open.

Gary Miyakawa

Active Member
Licensed User
Longtime User
I'm working on a program that controls a camera using VISCA commands over a USB/Serial interface. In my situation, (Windows 8.1) the COM port that is showing up is COM3.

If I run the program from the Debugger/Release/Java -jar it works fine BUT if I install it (using B4JPackager to create the install package) and I then try to run it, the program terminates (with NO error messages that I can see) on the "myserial.open("COM3").

This command is inside a TRY/Catch and the catch never triggers. When I run it from the Command line (java -jar <pgm.jar>) it runs fine...

Are there other logs I can grab to see what is going on ? I put Log statements all the way thru the code to figure where it's apparently aborting...

Any suggestions?

Thanks,

Gary Miyakawa
 

Gary Miyakawa

Active Member
Licensed User
Longtime User
Erel,

Thank you for the reply.

1. I've run the program directly from the command line and it runs without a problem...

2. If I was having an installer problem (32 vs 64) wouldn't that stop it from running from the command line too?


I'm going to keep playing with it to see if I can figure it out.

Cheers,

Gary Miyakawa
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…