Comments (6)
I had similar issue, you case might be different but this worked for me. I had Jansi in my JAR file, removing jansi.jar
from my executable JAR helped fix it for me.
Also try to update jdeploy
's dependency shelljs
version to 0.8.4
from jdeploy.
@shannah just a friendly reminder ๐
from jdeploy.
@andrii-bodnar It is your application that behaves differently, which is most likely due to the ANSI library you use not detecting correctly it is being launched from JDeploy.
What ANSI library do you use and how can you configure it to think it is ok in this situation? Environment variables are typically used for this.
from jdeploy.
@ravn I am using the Picocli tool for building CLI and it's using some ANSI library under the hood (PicocliRunner.java#L61), but I'm not sure what the library is used here.
from jdeploy.
@andrii-bodnar I had a quick look at the documentation and it looks like the "Enable ANSI or not?" mechanism is described at https://picocli.info/#_heuristics_for_enabling_ansi.
My guess would be that the two environments behave differently regarding either
- ANSI is enabled when system property os.name starts with "Windows" and JAnsi Console is installed.
or
- ANSI is disabled when Picocli guesses the programโs output stream is not connected to a terminal: when System.console() returns null. This check is omitted if picocli guesses the program is running in a Windows Cygwin, MSYS or MSYS2 environment: when system property os.name starts with "Windows" and either environment variable TERM contains cygwin or starts with xterm or environment variable OSTYPE is defined.
This will require you to experiment to find out exactly what is different, possibly in a debugger. Please update this issue with your findings.
from jdeploy.
@ravn thanks a lot for the detailed investigation!
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.