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

Unable to import project into eclipse #2

Closed
albe91 opened this issue Nov 26, 2014 · 12 comments
Closed

Unable to import project into eclipse #2

albe91 opened this issue Nov 26, 2014 · 12 comments

Comments

@albe91
Copy link

albe91 commented Nov 26, 2014

hi,
i followed the guide and tried to import the project into eclipse (Kepler before and Luna after),but after selecting the unzipped folder librec-v1.1 or librec.v1.0 it says that no project has been detected.
Neither it is possible to run the jar file from command line since it gives the following error:

Exception in thread "main" java.lang.NullPointerException
at happy.coding.io.Configer.getPath(Configer.java:41)
at librec.main.LibRec.debugInfo(LibRec.java:248)
at librec.main.LibRec.main(LibRec.java:70)

If i'm doing something wrong please tell me!
Thanks for the patience
AF

@guoguibing
Copy link
Owner

Hi AF,

The released version does not include the source code. That's why you cannot import project from the unzipped folder librec-v1.1 or -v1.0. The tutorial says to download the source code (http://www.librec.net/tutorial.html#setup). The latest source code can be download as a zip, or a specific version of source code can be download via https://github.com/guoguibing/librec/releases.

The librec libraray requires a configuration file, "librec.conf" by default. According to your exceptions, make sure the data set path is in right format:

ratings.wins=D:\path\to\dataset\ratings.txt
ratings.lins=/home/user/ratings.txt

The formats can be found in http://www.librec.net/tutorial.html#develop

@albe91
Copy link
Author

albe91 commented Nov 27, 2014

You are right, i didn't read carefully the instructions, my bad!
Thanks a lot and sorry to have bothered you!

@guoguibing
Copy link
Owner

Can you show me your settings?

@guoguibing
Copy link
Owner

The path settings should be like below:

ratings.wins=D:\path\to\dataset\ratings.txt
ratings.lins=/home/user/ratings.txt

@albe91
Copy link
Author

albe91 commented Nov 27, 2014

This is the path
################################################### General Settings #############################################
###dataset: item ratings and user social inforamtion
dataset.training.wins=D:\path\to\dataset\ratings.txt
dataset.training.lins=/Users/SmokingRooster/Documents/train.txt

@guoguibing
Copy link
Owner

Note that in windows, the path should be separated by "\" rather than ""

@albe91
Copy link
Author

albe91 commented Nov 27, 2014

I'm on Mac os x

@guoguibing
Copy link
Owner

It seems that the OS detection has a bug. I'll fix it up later.

@albe91
Copy link
Author

albe91 commented Nov 27, 2014

No problem sir!

@guoguibing
Copy link
Owner

I do not have a mac. Can you try to replace with the new dependent library: https://github.com/guoguibing/librec/tree/master/librec/lib

@albe91
Copy link
Author

albe91 commented Nov 28, 2014

Now it's working, thanks for the support!

@VioletViolet
Copy link

Hi. I want to run librec in netbeans but I cant. Here is the error. Help me please.
1

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