t3hnar / CmdSupport

Cmd support plugin for Intellij Idea
Apache License 2.0
49 stars 10 forks source link

Cannot run java from a batch file. #9

Open kriegaex opened 10 years ago

kriegaex commented 10 years ago

When using your plugin on my Win7 Pro 64-bit system in IDFEA 13.0.2, I cannot run a batch script starting another Java program:

'java' is not recognized as an internal or external command,
operable program or batch file.

The same is true from an interactive shell started by the plug-in. Yes, JAVA_HOME is set (to a 64-bit JDK 1.7.0_51) and it works if I run cmd.exe from outside IDEA or just double-click my batch file in Explorer.

It might be some problem related to IDEA being 32-bit and Java 64-bit, but I am just guessing.

t3hnar commented 10 years ago

hi @kriegaex, you are welcome to fix this one.

kriegaex commented 10 years ago

Um, sorry, I am a user, not a co-developer or maintainer. Is this your standard answer to new tickets?

Update: If I run java with an explicit path like this it works, but it also should directly when JAVA_HOME is set:

"%JAVA_HOME%\jre\bin\java.exe" ...
t3hnar commented 10 years ago

I'm really sorry for such an answer... however I'm not developing this stuff for 3 years already :( even not using windows anymore. I proposed to a couple of developers to take over... but as you can see nothing is happening with the project.

kriegaex commented 10 years ago

Oh, I see. I could not have known that. So this plugin is basically unmaintained now. Anyway, I tried another similar IDEA plugin and it has the same problem. Maybe the other maintainer will fix it there. If I find out what it causing the problem and it is straightforward to fix, would you build and submit a bugfix release if I volunteer to install a build locally and test?

t3hnar commented 10 years ago

sure, I will