Plugin does not work after i packed and put into the plugins directory. What can be the reason?

I have a small plugin project that compiles, build jars of the current project and then uses jarsigner.exe for signing the jars.
There is no problem while debugging the plugin, it works well but after the command " prepare plugin for deployement " and extracting zip file to plugins directory some errors occuring.
It seems plugin cannot run the jarsigner.exe file.


Here is the errors::
JarSigner: JarSigner
java.lang.RuntimeException: JarSigner
.....
Caused by: java.io.IOException: Cannot run program "jarsigner.exe" -keystore ******************/src/product/resources/webstart/.keystore -storepass ******secret_jar_key *************ho.jar fdn": CreateProcess error=2, Sistem belirtilen dosyayı bulamıyor (system cannot find the specified file)
.....
Caused by: java.io.IOException: CreateProcess error=2, Sistem belirtilen dosyayı bulamıyor  (system cannot find the specified file)
....

What may be the reason intellij cannot run the the jarsigner.exe file?

We are using version intellij 8.1.4

4 comments
Comment actions Permalink

Hello fdn,

Looks like the jarsigner.exe is not on the path on the machine where you're
trying to run the plugin. This has nothing to do with IntelliJ IDEA.

I have a small plugin project that compiles, build jars of the current
project and then uses jarsigner.exe for signing the jars.

There is no problem while debugging the plugin, it works well but
after the command " prepare plugin for deployement " and extracting
zip file to plugins directory some errors occuring.

It seems plugin cannot run the jarsigner.exe file.

Here is the errors::

JarSigner: JarSigner

java.lang.RuntimeException: JarSigner

....

Caused by: java.io.IOException: Cannot run program "jarsigner.exe"
-keystore ******************/src/product/resources/webstart/.keystore
-storepass ******secret_jar_key *************ho.jar fdn":
CreateProcess error=2, Sistem belirtilen dosyayı bulamıyor (system
cannot find the specified file)

....

Caused by: java.io.IOException: CreateProcess error=2, Sistem
belirtilen dosyayı bulamıyor  (system cannot find the specified file)

...

What may be the reason intellij cannot run the the jarsigner.exe file?

We are using version intellij 8.1.4

---
Original message URL:
http://devnet.jetbrains.net/message/5306282#5306282


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Both of them on the same machine. It is good when i am debugging but after packing it and putting in the plugins dir it couldn't run jarSigner.exe

Where the ide starts plugin when i am debugging it and how to fix it to run from the plugins directory. How to write paths?

Thank you for your interest.

0
Comment actions Permalink

Hello fdn,

LMGTFY: http://www.java.com/en/download/help/path.xml

Both of them on the same machine. It is good when i am debugging but
after packing it and putting in the plugins dir it couldn't run
jarSigner.exe

Where the ide starts plugin when i am debugging it and how to fix it
to run from the plugins directory. How to write paths?

Thank you for your interest.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thank you. I didn't think such a path problem cause it. I made you google it for me :) sory..
Problem solved, thanks a lot.

0

Please sign in to leave a comment.