Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frege runtime osgi bundle #26

Open
ronslow opened this issue May 5, 2016 · 2 comments
Open

Frege runtime osgi bundle #26

ronslow opened this issue May 5, 2016 · 2 comments

Comments

@ronslow
Copy link

ronslow commented May 5, 2016

Hi

[Wait - I should have read the new docs on calling Frege from Java -sorry - hold this issue!]

My OSGi Frege application needs a dependency on the Frege runtime but without opening a workbench.

Obviously I can't depend on frege-ide because this depends on a full Eclipse workbench being started.

Frege 3.23.422-ga05a487 from Maven doesn't have run7, so I get a noclassfounderror: frege/run7/Lazy

Frege 3.24.7-30 from Maven has run7, but this is too new and I get a

java.lang.NoSuchMethodError: frege.run7.Thunk.shared(Lfrege/run7/Lazy;)Lfrege/run7/Lazy;

Is there a correct runtime jar of the same version within regec.jar but without workbench activation available somewhere?

Robert

@Ingo60
Copy link
Member

Ingo60 commented May 5, 2016

Yes sure, you should not depend on frege.ide.

When you follow the new docs on calling Frege from Java (and you should, because the old one won't work anymore with new Frege code), you need 3.24-7.xx (or 3.24.xx, but then java8 is required), and the patch number xx is supposed to be immaterial unless you need a certain patch.

I have no good explanation for the NoSuchMethodError , as a method with that signature actually does exist. Maybe you can share some code so we can find out what is going on here.

@talios
Copy link

talios commented May 6, 2016

On 5 May 2016, at 22:37, ronslow wrote:

My OSGi Frege application needs a dependency on the Frege runtime but without opening a workbench.

For what it's worth - here's my Frege OSGi sample application:

https://github.com/talios/frege-osgi

The frege distribution that I currently push to Maven Central has OSGi exports in the manifest ( would be good to get them as part of the standard build/release, and fix that whole process ) and this example project gives an activator that calls Frege etc.

I also made a very short video about this a number of years ago:

https://www.youtube.com/watch?v=RDsuPdMptCU

Not sure if either of these will help you...

Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants