External Tools in 688
I have been trying to work through a problem that I think is a bug in 688.
I am trying to get an External tool to generate headers for c++ using javah.
The problem is that when I try to execute this tool, I get the following
result:
c:\sw\temp>javah.exe com.xxx.xxx.xxx.class
Error: Class com.xxx.xxx.xxx.class could not be found.
External tool 'Make Header' completed with exit code 15
However, if I type the same command on a command line, I get the header. I
also tried to create a batch file that works if I click on it in explorer,
or call it from a command line, but it fails the same way in intellij.
Bug or user error?
thanks,
adam
请先登录再写评论。
Command line should be c:\sw\temp>javah.exe com.xxx.xxx.xxx
You must specify class name, not file name.
--
Best regards,
Anton Katilin
-
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
"Adam Cabler" <adam_cabler@mentor.com> wrote in message
news:b176ks$c0g$1@is.intellij.net...
javah.
>
>
I
>
>
>
>
Also, the problem could be with classpath. Please try to specify -classpath
parameter of javah
--
Best regards,
Anton Katilin
-
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
"Adam Cabler" <adam_cabler@mentor.com> wrote in message
news:b176ks$c0g$1@is.intellij.net...
javah.
>
>
I
>
>
>
>
I have tried classpath, but it didn't help. Also, I am specifying class
name - as I said, the identical command works great from a console or a
batch file.
adam
"Anton Katilin" <anton@intellij.com> wrote in message
news:b188c4$7cr$1@is.intellij.net...
specify -classpath
>
>
>
688.
explorer,
>
>
The environment inside IntelliJ IDEA console is different. Run the following commands before javah:
export CLASSPATH=
export LD_LIBRARY_PATH=
that worked for me. (I think the latter might be enough.)