Comments (7)
Actually, it should not affect Packr, it works even though java doesn't have the executable bit.
from packr.
Actually, it causes ProcessBuilder
to throw:
java.io.IOException: Cannot run program "java": error=0, spawn failed
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
@code-disaster Can we please re-open this issue?
It shouldn't matter, but just in case:
OS: OS X 10.12.1 (Sierra)
JRE: 1.8.0_72-b15 (Oracle)
P.S. Maybe related to #70?
from packr.
Just in case there was any doubt, the issue is resolved by chmod +x jre/bin/java
.
from packr.
@code-disaster This could be remedied in Packr.java
at L208, L220, & L230 by using Java 7 nio: Files.copy (source, target, StandardCopyOption.COPY_ATTRIBUTES)
in conjunction with nio Path Operations instead of Apache Commons IO.
from packr.
Ah. Looks like you're still trying to support Java 6. Any good reason for this? Can we require Java 7 and get access to nio?
from packr.
- Java 6: historical reasons. Just didn't bother yet.
- Attributes: good point, but I don't know if this works when e.g. packing a Mac or Linux bundle on a Windows host, because of the different file system attributes.
- ProcessBuilder: just curious, why do you want to fork
java
?
from packr.
ProcessBuilder: just curious, why do you want to fork java?
To launch a host-and-play java game server from a java client.
Attributes: good point, but I don't know if this works when e.g. packing a Mac or Linux bundle on a Windows host, because of the different file system attributes.
Only one way to find out! But think about it - packr is already failing to preserve any permissions. Why not make a best attempt with nio, and at least log a warning if permissions won't be preserved (i.e., nio throws on unsupported CopyOption(s)). That would be 100x better than the current behavior imo.
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.