Comments (9)
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.pathTests 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/MojoFailureExceptionI 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.
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
from scage.
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
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-23218582
.
from scage.
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
from scage.
You are welcome) Nice gifs)
from scage.
Hi, I'm having the same issue running on windows. Changing the os.type value didn't fix. Using IDEA, 64bit.
from scage.
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.
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.
Ok, you're welcome) If any questions, please ask)
from scage.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scage.