source_sink `library(lineutils)' does not exist - eclipse

When I try to compile a prolog file, in eclipse with the prodt plugin it gives me this error:
 
source_sink `library(lineutils)'does not exist
the project was not created by me, but it is a university project, I don't know where to find this library, which seems to be from YAP. I use SWI Prolog.
Is there a way to solve this problem?

From a quick glance to the library source code, it seems that it's compatible with SWI-Prolog. You can copy the library/lineutils.yap from the YAP distribution to your SWI-Prolog installation and use it from there. If you copy the file to same place where SWI-Prolog keeps its libraries, you can load it using the same directive:
:- use_module(library(lineutils)).
Otherwise, you can copy it to your application directory and then load it using simply:
:- use_module(lineutils).

Related

Keep Getting Error When Trying to Run Javafx on Eclipse with Mac

So I keep getting this error when trying to run my program:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.controls not found
I'm using a mac with eclipse, and my VM argument is:
--module-path /Users/myname/Desktop/javafx-sdk-11.0.2_3/lib --add-modules javafx.controls,javafx.fxml
I've tried everything, javafx.controls.jar and the other .jar file are in my lib folder. I've reinstalled the javafx program, changed my file path around hundreds of times, and I've tried to install plugins. Does anyone have any idea as too what can be happening? JavaFX is also an added library in my project, and all the .jar files assocated with it are added to it. Please let me know if anyone has an idea. Best!
I had success with the following additional step.
In the Run Configuration->Dependencies tab, click the "ModulePath" and then add the JavaFX JDK's jars (or the /lib folder that holds the jars) to the list.
You can inspect the generated command line, and check that these are included in the -p option.
IDK why this step should be needed. I would think Eclipse should be smart enough to include something on the dependency module path if it were in the project's Build Path Library list.
I have questions about this at eclipse.org and gluon. Maybe there will be an explanation, or fix so that this step isn't needed, or an edit to the documentation to let us know we need to do this.

There is an error when I add ruby SDK for my project in rubymine

At the beginning, I opened my project by rubymine. it remind me No ruby interpreter configured for the project. the following error emits when I add the SDK for the project following the wizard.
12:55:57 PM Unknown Module Type
Cannot determine module type ("JAVA_MODULE") for the following module:"p4ep"
The module will be treated as a Unknown module.
Anyone knows that's why?
The error may occur as a result of opening the project in different IDEs.
To fix it you need to replace "JAVA_MODULE" in iml config file .idea/project_name.iml to "RUBY_MODULE"
You can delete the path .idea and restart ruby project. It works for me

Getting a lot of "<classname> cannot be resolved to type" when installing SBT

I have Eclipse Juno 4.2.1 installed on my Win7 x64 machine, and try to install "Social Business Toolkit SDK - 20131012". I unpack the content to C:\ ending up with C:\sbtsdk. Then I run the initWin.cmd to create the junction point (success), and unpack tomcat (jar doesn't exist, so I must unpack manually). Loading the workspace gives a lot of " cannot be resolved to type". Most certainly this is a kind of noob-error from my side where something isn't properly defined. On the other hand, in this video http://www.youtube.com/watch?v=MsHxrccnO28, Bhavesh Shah, states that it should be extremely simple and fast to get going with the toolkit (fast forward to ~ 25:00 to see Shah's installation of Eclipse and toolkit). Anybody got any ideas on how to get past the front-door of SBT?
Update:
I saw another thing. For example, in the package com.ibm.sbt.core's com.ibm.sbt.services.client package I got an error referencing the Response-variable. It turned out that the Response.java file was actually located right in this package at location C:\sbtk\source\com.ibm.sbt.core\src\com\ibm\sbt\services\client, but for some reason wasn't referenced in the package.
By adding Response.java to the package, the error went away (BTW, I didn't find "Add file to package" in Eclipse, so I had to copy the content to clipboard, delete the Response.java file, and then manually add a new file to the package with the correct name, and then paste the content. Probably a much better way to do this :-).
But it is strange that the Response.java file wasn't referenced in the package, wasn't it?

QxOrm giving "could not be resolved" error

I am using the Eclipse IDE and Qt plugin.
I am using QxOrm in my Qt project. I have downloaded the library files and compiled them and when I start using the macros it's giving lots and lots of errors like:
C_str could not be resolved
macro could not be resolved
string could not be resolved
So I tried debugging it and found that, the same errors are also there when I opened the header file in which the macro I was using was defined. What might cause this and how do I fix it?
Have you tried to build all examples from ./test/ directory of QxOrm library package ?
I strongly recommend to test all examples before starting your own project to verify your development environment.
Could you provide please the source code of your persistent class (.hpp and .cpp files) ?
It will be easier to help you with some code...

How to add a library into Processing from Eclipse platform?

I installed the Processing plugin for Eclipse. it works fine. But then i copied the folder gifAnimation into C:\Program Files\eclipse\plugins\processing.plugin.core_0.2.5.1\Resources\libraries. All the other libraries are there.
but "import gifAmination.*;" does not work.
and gives the following error.
Library import "gifAnimation" could not be found. Check the library folder in your sketchbook.
It's been awhile since I used Processing in Eclipse, but I think you need to add libraries explicitly to the build path. There is a tutorial here which will walk you through the whole process of getting Eclipse working with Processing, including adding extra libraries. The main thing you need to do is browse to your added libraries, and use Eclipse's 'Add to Build Path" menu option.