Giter Club home page Giter Club logo

Comments (9)

delorum avatar delorum commented on August 29, 2024

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" [email protected]
ÎÁÐÉÓÁÌ:

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
.

from scage.

Karlotcha avatar Karlotcha commented on August 29, 2024

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

from scage.

delorum avatar delorum commented on August 29, 2024

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" [email protected]
ÎÁÐÉÓÁÌ:

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
.

from scage.

Karlotcha avatar Karlotcha commented on August 29, 2024

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

from scage.

delorum avatar delorum commented on August 29, 2024

You are welcome) Nice gifs)

from scage.

JXUrist avatar JXUrist commented on August 29, 2024

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

from scage.

delorum avatar delorum commented on August 29, 2024

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.

from scage.

JXUrist avatar JXUrist commented on August 29, 2024

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!

from scage.

delorum avatar delorum commented on August 29, 2024

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

from scage.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.