Comments (19)
This was due to my own user error. I had not noticed the change from "/" in the mainclass property to "." as a separator.
from packr.
So with further investigation on a windows 10 64 bit computer, nothing happens when you run the executable. Java is NOT installed on this testing machine. However, my machine which does have Java installed has no issues running the game.
from packr.
Please try to run the executable with "-c -v --console". This should give you some output for troubleshooting.
from packr.
Failed to load VM... btw I noticed the instructions talk about a pom.xml but no where does it mention where to get such a pom.xml file.
from packr.
Please show the full console output.
"Failed to load VM runtime library" means that jvm.dll could not be found or opened. Did you try to mix the 32-bit executable with a 64-bit JRE (or the other way around) by chance?
The pom.xml thingy can be ignored, it's just used as an example for the "resources" option.
from packr.
The full console output is exactly that:
"Failed to load VM runtime library"
Press Enter to exit
My platform settings look like the following:
{
"platform": "windows64",
"jdk": "/Users/Phil/Documents/GitHub/Deployment/openjdk-1.7.0-u80-unofficial-windows-amd64-image.zip",
"executable": "gameName",
"classpath": ["game.jar"],
"mainclass": "com.philiproyer.game.desktop.DesktopLauncher",
"vmargs": [
"-Xmx1G"
],
"minimizejre": "soft",
"outdir": "Windows64"
}
from packr.
Same happens with windows32 bit btw.
{
"platform": "windows32",
"jdk": "/Users/Phil/Documents/GitHub/Deployment/openjdk-1.7.0-u80-unofficial-windows-i586-image.zip",
"executable": "gameName",
"classpath": ["game.jar"],
"mainclass": "com.philiproyer.gmae.desktop.DesktopLauncher",
"vmargs": [
"-Xmx1G"
],
"minimizejre": "soft",
"outdir": "Windows32"
}
from packr.
Further details, as mentioned above the guest machine has no Java SDK or JRE installed so it's a clean system.
Am I wrong in understanding that the point of packr is to allow for this?
from packr.
Yes, that's the whole point. Not sure what to advise here, besides maybe trying a different JRE version, or trying with minimize disabled.
Failing to load DLLs can have a lot of causes. I'll look into adding more detailed (Windows system) error messages for this case.
from packr.
I'll give disabling minification a try and report back.
from packr.
I should also mention that when running packr.jar I get the following warnings:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
from packr.
Same problem unminified.
"Starting JVM...."
"Failed to load VM runtime library"
from packr.
As this happens on a clean system, I somehow suspect a missing dependency.
I wonder what happens if you replace the "jre/" folder with the full version from the OpenJDK zip file, then run "jre\bin\java -jar game.jar".
from packr.
Ok so I went ahead and installed a JRE from the oracle site and now i can run the jar but it instantly crashes stating "opengl is not supported by your graphics driver." Turns out the i3 intel integrated graphics drivers updated this summer don't seem to include opengl support. By upgrading to Windows 10 it upgraded the drivers and now no Libgdx games can run.
Yay.....
So this is not an issue with Packr.
from packr.
Sorry to reopen but I narrowed down the issue.
Machine Specs
Intel i3-2330m Processor
Integrated Graphics Intel 3000
4 Gigs ram
Windows 10 64bit
I installed Java 1.8 and saw the same issue of saying OpenGL not supported.
Next uninstalled 1.8 and installed 1.7. I can now launch the app via the jar but running the .exe produces the "Failed to load VM runtime library".
At least for now I can give a hotfix for the few players experiencing this issue. Please let me know if you need any other info
Tried the same thing on another machine with Windows 10 64 Bit and Pentium B970 with no issues via the .exe file.
from packr.
For the "Failed to load VM runtime library" error, it'd be cool if you can try again with the latest version. I've added output for the Windows API GetLastError() function which might tell what it doesn't like exactly.
from packr.
Alright grabbed the latest, ran it, then ran the .exe with -c -v --console and got the following;
Loading JVM runtime library ...
Error code [126]: The specified module could not be found.
Error: failed to load VM runtime library!
Press ENTER key to exit.
from packr.
Ok. Error code 126 can have different causes, unfortunately. Let me list all I know of, though some of them are rather unlikely in your case:
- jre\bin\server\jvm.dll not found relative to the working directory, which by default is the location of the packr executable
- tried to launch a 32-bit JRE from the 64-bit packr executable, or the other way around
- jvm.dll is missing some dependency, and fails to load for that reason
By your description I would vote for the last option, as you tried to run it on a freshly installed system. You'd probably need a tool like Dependency Walker or Process Monitor to find out the exact reason.
from packr.
SOLVED IT!
Ran Dependency Walker and it showed dozens of missing dlls. All of which are part of the Windows SDK. Downloaded and installed http://www.microsoft.com/en-us/download/details.aspx?id=8279 and problem solved!
from packr.
Related Issues (20)
- please help me HOT 1
- Splash screen in Packr on macOS HOT 7
- XstartOnFirstThread hangs forever on OSX HOT 1
- LWJGL3 crashes on OSX HOT 4
- Packr cannot recognise `jrePath` Temurin JRE and JDK zips for Windows HOT 8
- Load configuration file relative to executable location, not working directory HOT 1
- Can you create Linux binary that makes use of installed Java on Linux instead of packaging one with packr?
- How to make generated app to use current working dir as its working dir instead of app's dir?
- FEATURE REQUEST HOT 1
- Consulting: Complicated packaging methods
- Packing with Oracle JDK causes error HOT 2
- Mac keeps throwing permission denied HOT 1
- Error 503 from https://artifactory.nimblygames.com while building HOT 1
- Version 4.0.0 missing from artifactory HOT 2
- Error when execute .exe file
- classpath is empty when retrieving it.
- Frame blurry when starting with bundled launcher
- Can you add an option to remove the previous out directory if it exists?
- Generated .exe does nothing HOT 8
- packr repo seems not to work HOT 1
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 packr.