I am trying to execute a exe file within' a jar file.
My question:

1. How do I locate the exe within' the jar?

I am using the runtime().exec() to launch it. Right now I have to extract it then launch it, then after it's finished delete it.

Thanks PO

You can't. You would have to extract it and then execute it.

hi,
i am the new bee in this java forum...can you provide me the code for extracting the exe/folder and deleting it once it got finished...
thanks in advance

I am trying to execute a exe file within' a jar file.
My question:

1. How do I locate the exe within' the jar?

I am using the runtime().exec() to launch it. Right now I have to extract it then launch it, then after it's finished delete it.

Thanks PO

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.