such as the title, the development tool pycharm,python version 3.6 jpype0.6.3, the system win7.
problem description: an error has been reported when debugging code snippets about jpype with pycharm, and the next step cannot be taken. Then it is strange that if you do not debug and run it directly, it will run normally without any error messages. How to solve it? It"s been bothering me for a long time. Thank you.
file_object = open("src1.java") -sharp
try:
all_the_text = file_object.read()
finally:
file_object.close()
jvmPath = getDefaultJVMPath()
startJVM(jvmPath, "-ea",
"-Djava.class.path=F:/JavaTest/out/artifacts/ast_jar/ast.jar")
split_class = JClass("SplitSrc")
sp=split_class()
sp.split(all_the_text)
abc=sp.getMBody_Classes()