Is your jar file correctly formatted?  To be executable in windows you must have a manafest which indicates the class with the main method to run.  Any extra classess required must be either on the class path of the start command or mentioned in the class path in the jar's manifest.  The correct way to run a java app is:
java -jar percomm.hjar      

If the manifest is right you should be able to double click on it from explorer.
Here is a manifest that I use in one of our commercial products:

Manifest-Version: 1.0
Created-By: Apache Ant 1.5
Class-Path: xerces.jar xercesSamples.jar jhall.jar ects.jar jdbc.jar
Main-Class: com.ObjectStar.Samples.ui.demoAppBean


When you tried:
c:\progra~1\java\jdk1.6.0_06\bin\java -cp c:\percomm\percomm.jar Percomm
and it didn't work and indeed died a silent death int indicates that something is wrong with the main class.  Did you try the -verbose flag?  Is there really no package name for the Percomm class, (ie its in the root of the archive)?  If you have a linux system try "stracing" it to see if it does any io.  Also, you must have run it in eclipse to test it... examine the command string eclipes used to start it to see if there was anything in it that you aren't taking into account.

If it isn't proprietary you can mail it to me and I'll dissect it...
ttfn
wcn

Robert Lewko wrote:
Hi all.  I know that this is off topic, but I'm hitting all the resources that 
I know.  I have a java problem.  I have developed a desktop program in java 
using swing for the GUI.  The platform is Win XP.  The drop dead data is 
tomorrow.  When I first started this project I got a very simple swing 
program going from the command line that just did a HelloWorld in Swing.  I 
finished developing the program under the eclipse for the IDE.  I am now 
making a DOS/Win batch file to execute the program in and whether I type the 
command in or run it from the batch file all it does is silently exit, ie no 
warnings.

here is the batch file so far:

c:\progra~1\java\jdk1.6.0_06\bin\java -cp c:\percomm\percomm.jar Percomm

Alternatively I have tried javaw with no difference in results.

Just in case the things the program does are affecting things it uses UDP 
datagrams to connect to a server.  Yes there is a reason for using UDP rather 
than TCP.

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

  
_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to