Skip to Main Content

New to Java

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!

How to run a jar file using Java application.

843785Jul 11 2008 — edited Jul 11 2008
Hi all,

I know that jar file can run using the following command, using the command prompt.
java -jar jar-file
But I don't know how to run that command through a Java code. Hope it's clear to you.

So can you please explain how can I do it.

Thanks,
itsjava
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2008
Added on Jul 11 2008
13 comments
531 views