a **ParseExcept** error in `md.transform(in, out);`
Closed this issue · 1 comments
jiangwest commented
I encounter a error. First I give code:
import java.io.IOException;
import java.io.FileWriter;
import java.io.FileReader;
import java.io.*;
import org.tautua.markdownpapers.*;
public class MarkdownpaperDemo1 {
public static void main(String[] args) throws IOException {
Reader in = new FileReader("in.md");
Writer out = new FileWriter("out.html");
Markdown md = new Markdown();
md.transform(in, out);
in.close();
out.close();
}
}
then I give build.gradle
:
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
mainClassName = 'MarkdownpaperDemo1' // main() 的路径
sourceCompatibility = 1.8
targetCompatibility = 1.8
//定义第三方库的来源
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile group: 'org.tautua.markdownpapers', name: 'markdownpapers-core', version: '1.4.4'
}
sourceSets {
main {
java {
srcDir '.' // 指定源码目录
}
}
}
jar {
manifest {
attributes 'Main-Class': 'MarkdownpaperDemo1'
}
}
- but the java construction process encounter a ParseExcept error in
md.transform(in, out);
Why?
lruiz commented
Can you include in.md file and the log output?