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

no lwjgl in java.library.path #7

Closed
Karlotcha opened this issue Aug 24, 2013 · 9 comments
Closed

no lwjgl in java.library.path #7

Karlotcha opened this issue Aug 24, 2013 · 9 comments

Comments

@Karlotcha
Copy link

Hi,

When I try to run mvn clean test I get this error:


-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running my.company.app.ScageAppTest
17:39:45.060 [INFO ] loaded properties file scageapp.properties
17:39:45.063 [INFO ] loaded properties file maven.properties
17:39:45.112 [INFO ] starting main screen Scage Example App...
17:39:45.115 [WARN ] failed to find property images.base
17:39:45.116 [INFO ] default value for property images.base is resources/images/
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.587 sec <<< FAILURE!

Results :

Tests in error:
  testOK(my.company.app.ScageAppTest): no lwjgl in java.library.path

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.339s
[INFO] Finished at: Sat Aug 24 17:39:45 BST 2013
[INFO] Final Memory: 9M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project app: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/khoa/ld/app/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I tried to fix it but didn't succeed :(

By the way, http://scala-tools.org/repo-releases is dead, but I fixed this using your slick =]

@delorum
Copy link
Owner

delorum commented Aug 24, 2013

Hi Karlotcha!

If I understand right, you need to change maven property "os.type" from
"linux" to "windows".This is for the compiler to use lwjgl opengl drivers
for the correct platform (default is linux because Im a linux user most of
the time)). You can do it in the file build.properties which is one of the
files to read properties from. But the more preferred way is to create file
local.properties and write to it:
os.type=windows

This file is in .gitignore so it is not commiting to repositories. As some
properties may contain secret data (passwords for jar signing for Java web
start) or user specific data (your platform) this file is the place to keep
them.

If you are familiar with maven you can explore pom.xml to understand things
more.

Im very glad you try Scage! Feel free to ask any further questions.

Best regards,
Andrey.
24.08.2013 23:11 ÐÏÌØÚÏ×ÁÔÅÌØ "Karlotcha Hoa" notifications@github.com
ÎÁÐÉÓÁÌ:

Hi,

When I try to run mvn clean test I get this error:


T E S T S

Running my.company.app.ScageAppTest
17:39:45.060 [INFO ] loaded properties file scageapp.properties
17:39:45.063 [INFO ] loaded properties file maven.properties
17:39:45.112 [INFO ] starting main screen Scage Example App...
17:39:45.115 [WARN ] failed to find property images.base
17:39:45.116 [INFO ] default value for property images.base is resources/images/
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.587 sec <<< FAILURE!

Results :

Tests in error:
testOK(my.company.app.ScageAppTest): no lwjgl in java.library.path

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.339s
[INFO] Finished at: Sat Aug 24 17:39:45 BST 2013
[INFO] Final Memory: 9M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project app: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/khoa/ld/app/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I tried to fix it but didn't succeed :(

By the way, http://scala-tools.org/repo-releases is dead, but I fixed
this using your slick =]

Reply to this email directly or view it on GitHubhttps://github.com//issues/7
.

@Karlotcha
Copy link
Author

Hi Andrey, thank you for your answer! =]

Well actually I am on mac, not windows, what shall I do? :/

And I am not familiar at all with maven in fact. I started understanding pom.xml though since I spent some time in it but I don't know very well all the java environment, so I am very sorry if some of my questions can be a bit novice :/

Thank you very much for your help,

Best regards,

Karlo

image

@delorum
Copy link
Owner

delorum commented Aug 25, 2013

Hi!

On Mac please try os.type=macosx or os.type=macos
I hope it works)

Best regards,
Andrey.
25.08.2013 3:22 ÐÏÌØÚÏ×ÁÔÅÌØ "Karlotcha Hoa" notifications@github.com
ÎÁÐÉÓÁÌ:

Hi Andrey, thank you for your answer! =]

Well actually I am on mac, not windows, what shall I do? :/

And I am not familiar at all with maven in fact. I started understanding
pom.xml though since I spent some time in it but I don't know very well all
the java environment, so I am very sorry if some of my questions can be a
bit novice :/

Thank you very much for your help,

Best regards,

Karlo

[image: image]https://github-camo.global.ssl.fastly.net/8714d4860ba65da6b909dc855f5def451b163b9e/687474703a2f2f692e696d6775722e636f6d2f6a386f73636d4b2e676966

Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-23218582
.

@Karlotcha
Copy link
Author

Hi!

I tried macosx and macos in both build.properties and local.properties.

macosx in build.properties works very well!

Thank you very much :]

Best regards,

Karlo

image

@delorum
Copy link
Owner

delorum commented Sep 13, 2013

You are welcome) Nice gifs)

@JXUrist
Copy link

JXUrist commented Sep 10, 2015

Hi, I'm having the same issue running on windows. Changing the os.type value didn't fix. Using IDEA, 64bit.

@delorum
Copy link
Owner

delorum commented Sep 11, 2015

Hello, JXUrist!

Are you trying to launch from IDEA?

You need to change os.type to windows, than run mvn clean package - this will download and add native libraries to "target" directory.

After that from IDEA create launch configuration and add to VM Options:
-Djava.library.path=target/natives

And than try to run it. Should work.

@JXUrist
Copy link

JXUrist commented Sep 11, 2015

Hey, thanks for the reply, turns out there was a fair bit wrong with the maven plugin, fixing that and re-packaging worked. Thanks for the great framework!

@delorum
Copy link
Owner

delorum commented Sep 11, 2015

Ok, you're welcome) If any questions, please ask)

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