Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » File location in Eclipse plugin jar(URI is not hierarchical)
File location in Eclipse plugin jar [message #885758] Wed, 13 June 2012 14:39
Christoph Bach is currently offline Christoph BachFriend
Messages: 5
Registered: June 2012
Junior Member
Hey folks,

I have written an editor as an Eclipse plugin. It works fine when running in a new Eclipse runtime, but after exporting the project to a jar, it says

"URI is not hierarchical"

when I hit the finish button.
I think the problem is that I load a default file when creating a new one and I can't access it anymore after creating the jar.

What I do to get the File is something like this:
bundle = Platform.getBundle("GameModeler");
file = new File(FileLocator.resolve(bundle.getEntry()).toURI());

I found something with Plugin#getStateLocation(), but I don't know how to use this method in my plugin.
Can you help me with this?

Previous Topic:selecting application server
Next Topic:Updating statuses...
Goto Forum:

Current Time: Sun Sep 20 09:13:05 GMT 2020

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

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

Back to the top