Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JavaFormatter eclipse.jdt.core(Home brewed command line formatter)
JavaFormatter eclipse.jdt.core [message #1773313] Tue, 26 September 2017 11:47
goose Mising name is currently offline goose Mising nameFriend
Messages: 3
Registered: August 2010
Junior Member
My goal is to create a command line code formatter. On the basis that i should get the latest version to format recent code i've upped the version in my POM:

It's probably more of an issue that i don't really understand how Maven works (always seemed a bit of a 'black box' to me) but i'm now getting unmet runtime dependencies:

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/jobs/ISchedulingRule
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(
	at Method)
	at java.lang.ClassLoader.loadClass(
	at sun.misc.Launcher$AppClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at org.eclipse.jdt.core.dom.ASTParser.<init>(
	at org.eclipse.jdt.core.dom.ASTParser.newParser(
	at org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.parseSourceCode(
	at org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.prepareFormattedCode(
	at org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.format(
	at org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.format(
	at com.github.jrialland.javaformatter.FormatterVisitor.applyAllFormattersOnFile(
	at com.github.jrialland.javaformatter.FormatterCli.main(
Caused by: java.lang.ClassNotFoundException:
	at java.lang.ClassLoader.loadClass(
	at sun.misc.Launcher$AppClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	... 22 more

Any ideas? I suppose it amounts to discovering the new dependencies of the new version, but i don't know how to. I've attached the whole pom fyi

EDIT: I'VE MOVED ON - don't know how to delete a posting
  • Attachment: pom.xml
    (Size: 3.72KB, Downloaded 51 times)

[Updated on: Wed, 27 September 2017 11:28]

Report message to a moderator

Previous Topic:Eclipse download is very slow
Next Topic:Eclipse Neon installation on Windows 7
Goto Forum:

Current Time: Sun Aug 19 21:02:32 GMT 2018

Powered by FUDForum. Page generated in 0.01797 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top