Java and Windows - error: illegal escape character

前端 未结 6 1205
失恋的感觉
失恋的感觉 2021-01-14 06:04

I have done my .java file that changes registry data. But I am getting \"illegal escape character\" error on the line where Runtime.getRuntime().exec exists. Wh

6条回答
  •  既然无缘
    2021-01-14 06:23

    Probably because you didn't escape the backslash in your string. Have a look at http://docs.oracle.com/javase/tutorial/java/data/characters.html for more information about proper escaping.

提交回复
热议问题