Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Difference between running a java application as jar or via batch file?Hi,

807606Feb 23 2007 — edited Feb 26 2007
Hi,

I'm facing some strange differences in the behavior of my application , only caused by different methods to execute the application . So I have know the potential difference between these methods to locate the error.

1) running my application it with
java -jar
(via batch-file or command-prompt) or in eclipse works fine

2) executing the jar by double click causes problems.

The difference I know are that you can easily pass arguments to jvm, when using the jar.Maybe there is a differences in thread scheduling, but I'm not sure about that.

Can anyone tell me, the differences between these to methods of execution?

Thanks a lot in advance.

Greetings Michael
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2007
Added on Feb 23 2007
14 comments
1,970 views