Linux中的Linux运行时coammnd错误。 [英] Linux Run time coammnd error in Java.
问题描述
我正在尝试在Java中运行一个命令,该命令在Linux的控制台中正常运行。
但是当我尝试在Java中运行时,它会刷新错误。
可能的原因是什么?
命令如下:
keytool -genkey -keyalg RSA -dname" CN = DEBASISBHATTACHARYYA,OU = MS,O = IIT,C = IN -validity 24 -alias debasis -keypass密码-keystore /DATA/keystore/userkey/E84009.jks -storepass密码
错误..我得到的是什么。 ..
keytool错误:java.lang.RuntimeException:用法错误,OU = MS,不是合法命令
请帮帮我。
紧急!
I am trying run a command in Java,which runs in console of Linux properly.
But while I am trying to run in Java then it flushes errors.
What might be the possible reasons?
The command follows..
keytool -genkey -keyalg RSA -dname "CN=DEBASISBHATTACHARYYA, OU=MS, O=IIT, C=IN" -validity 24 -alias debasis -keypass password -keystore /DATA/keystore/userkey/E84009.jks -storepass password
And the error ..what i m getting is ...
keytool error: java.lang.RuntimeException: Usage error, OU=MS, is not a legal command
Please help me.
it''s urgent!
推荐答案
你是如何用Java处理这些双引号的?
亲切的问候,
Jos
ps。我为你修好了那些大胆的标签;请在点击提交之前预览你的帖子。
How did you handle those double quotes in Java?
kind regards,
Jos
ps. I fixed those bold tags for you; please preview your post before hitting submit.
你是如何用Java处理这些双引号的?
亲切的问候,
Jos
ps。我为你修好了那些大胆的标签;请在点击提交前预览您的帖子。
How did you handle those double quotes in Java?
kind regards,
Jos
ps. I fixed those bold tags for you; please preview your post before hitting submit.
因为它应该被处理...
使用\" ... :-)
我错了吗?
还有一件事......它在Windows平台上正常运行。
建议..明天很紧急!
As it supposed to be handled ...
using \" ... :-)
Am i wrong?
One more thing ... it is running properly in windows platform.
please suggest ..it''s urgent on tomorrow!
因为它应该被处理......
使用\ ... :-)
我错了吗?
请明天告诉我们!
As it supposed to be handled ...
using \" ... :-)
Am i wrong?
please suggest ..it''s urgent on tomorrow!
不要说它是紧急的;对你来说可能是紧急的,但它不适合我和任何人
其他。你能展示一些相关的代码吗?
亲切的问候,
Jos
Don''t mention that it''s urgent; it may be urgent to you but it isn''t for me nor anyone
else. Can you show a bit of relevant code?
kind regards,
Jos
这篇关于Linux中的Linux运行时coammnd错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!