Comments (9)
I tried installing it and running it on Mojave, and found the same thing.
The main difference between running on the command-line and running by double-clicking is the environment (e.g. environment vars and CWD).
One thing that may shed some light, is that I checked the Console while launching the app by both double-clicking and by running it in the CLI. I noticed the following error message only when launching by double-click:
Non-fatal error enumerating at , continuing: Error Domain=NSCocoaErrorDomain Code=260 "The file “PlugIns” couldn’t be opened because there is no such file." UserInfo={NSURL=PlugIns/ -- file:///Users/shannah/Applications/jDeploy%20Apps/OSGi.fx.app/Contents/, NSFilePath=/Users/shannah/Applications/jDeploy Apps/OSGi.fx.app/Contents/PlugIns, NSUnderlyingError=0x7fb863630a00 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
After that it also shows:
27366555: RECEIVED OUT-OF-SEQUENCE NOTIFICATION: 310 vs 2487, 513,
Then finally
-[PersistentAppsSupport applicationQuit:] | for app:OSGi.fx, _appTrackingState = 2
-[PersistentAppsSupport applicationQuit:] | App: OSGi.fx, quit, updating active tracking timer
Not sure if that helps you at all.
from jdeploy.
Can you create a test project that reproduces this issue and share it on GitHub so that I can take a look?
from jdeploy.
@shannah Thanks a lot for your quick response. I also noticed the same errors in syslogs.
In addition, I have also encountered another problem that Java modules-related java options (--add-exports
or --add-opens
) don't work as well even if I start the application on console. That's pretty weird. I also installed the app using npm install osgifx -g
, the application starts but none of the configured java options are set while starting the VM.
It would be best if you can checkout or fork https://github.com/amitjoy/osgifx project and run build.sh
in the root directory.
This will internally build the project and native installers using jpackage. Note that, the built artifacts will be stored in the target
directory inside com.osgifx.console.dist
.
The build.gradle
in com.osgifx.console.dist
contains the configurations for building installers using jpackage and the actual referenced configuration values are extracted from cnf/ext/jpackage.bnd
.
In case of issues, please ping me. I will try to reply asap.
from jdeploy.
Are the --add-exports
and --open-exports
really necessary? Since you have the javafx=true
option set, it will run in a JVM that has JavaFX - and, by default, it just runs your app using the -jar
flag.
Admittedly, I haven't delved too deep into jpms, so i could be missing something, but I don't think they should be necessary.
from jdeploy.
from jdeploy.
I have found the issue. It seems that your app's launcher tries to extract some files inside the current working directory. It needs to create a directory named ".osgifx-ws" in the CWD. When running launching by double-clicking, the current working directory isn't explicitly set anywhere - so I'm not sure where it is. But I suspect it results in an attempted write where it doesn't have permission.
I'm not sure if you have control over where it tries to extract this directory.
I'm going to add a sensible, and well-defined default for the CWD (i.e. the user.dir system property). I'm leaning toward just making it the user's home directory.
from jdeploy.
With the recent fix, now the current working directory is set to user.home if I run the application by double clicking on it, right?
from jdeploy.
You will need to download and install again from the download page, since the fix is in the app launcher itself. I just downloaded it and tried it myself and it appears to be working now.
Edit: But the answer is "yes", the current working directory will be set to user.home when you run the app by double-clicking.
from jdeploy.
It now works perfectly. The only problem I now have that we still need to set the java modules-related options explicitly otherwise lots of modules will not be visible to unnamed modules. Since the OSGi.fx is itself built on OSGi, it is very much required. Anyways I will create a separate issue now to track the changes. Thanks a lot for your quick support.
from jdeploy.
Related Issues (20)
- Error making desktop alias HOT 4
- I ask to immediately open the app after the installation then it makes several windows of other hidden apps visible again. HOT 2
- Can't get 'Verify Ownership' working HOT 2
- JDeply does not initialize correctly when one of the detected JAR files is corrupted HOT 3
- Self signing the installer HOT 1
- Github action has wrong action name in readme
- Cannot load app info because app.xml file could not be found, despite it existing HOT 2
- On newer versions of node executing `jdeploy.js` fails with a syntax error: "Octal literals are not allowed" HOT 1
- (node:64182) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
- ARM Linux installers (Raspberry Pi) HOT 6
- Update only after answering question to do so?
- zsh permission denied or Mac Sonoma 14.4.1 HOT 4
- For all jDeploy users - Help ask NPM to increase payload size HOT 9
- Handling native dependencies HOT 6
- Github action was working but now it is not HOT 4
- one repo builds packages and one fails HOT 3
- Trojan in Windows Installer? HOT 5
- Creating Github release to public repo fails due to "jDeploy" tag already exists in public repo HOT 2
- Github workflow installer package not producing desired application icon HOT 11
- Application will not run if not connected to the internet HOT 3
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 jdeploy.