All Questions
2,084
questions
-1
votes
0
answers
22
views
source $HOME/.bash_profile does not save the Output after reboot
I have created a simple Shell script using the below commands.
# Setting the JAVA_HOME PATH in .bash_profile. NOTE: - We need to run this only if we are downloading the Java and running it manually. ...
1
vote
2
answers
83
views
Avoid double quotes removal in bash script (keep double quotes)
I have a run.sh script that is executing a java maven application, so it is passing some parameters the app needs, one of the parameters is a json string (dynamicOptionsJson is the param), but when I ...
-1
votes
1
answer
57
views
ERROR : spark-shell \Spark\bin\..' was unexpected at this time
I`m using on Windows(10) machine. I want to install Apache Spark in my machine.
Official download page here.
Article I followed to complete the Apache Spark installation here.
What I did :
Installed/...
0
votes
0
answers
28
views
getting crc^@^@^@^B^@ at the end of output file
I am writing a file with Haddop API, and i checked outputSessionData, it look fine
outputSessionData.saveAsNewAPIHadoopFile(outputDataDir, String.class, Map.class, PeopleSessionFormatter.class, ...
0
votes
1
answer
114
views
How to specify multiple jvm arguments when building a docker image with jib?
I try to build my Quarkus app with jib using the following properties:
quarkus.jib.base-jvm-image=registry.access.redhat.com/ubi8/openjdk-17:1.19-1
quarkus.jib.jvm-arguments=-Djava.net....
-1
votes
2
answers
48
views
Find command in system path from Java on macOS
From Java I need to execute a user-installed command (let’s call it abc) on macOS. However when running
Runtime.getRuntime().exec(new String[] {"abc", "--argument"});
it cannot be ...
0
votes
1
answer
52
views
Java Runtime.exec fails to execute psql command [duplicate]
What I am trying to do is to copy subset of DB table datas from X environment to local file storage.
I am tryin to execute psql command with Java Runtime but it fails
this.psqlExportDataFile = "...
-3
votes
1
answer
70
views
Command line script to pretty print Java serialized objects in logs?
I have to review lots of java logs from various sources, that contain java objects dumped to a single long line. Sometimes I'd like to see them in a more formatted fashion. Note that I'm not in ...
0
votes
1
answer
83
views
Execute a shell script after maven-surefire-plugin tests results
I am trying to execute a shell script that sends our testing results to 3rd party.
We are running the tests in Jenkins pipeline, and the tests are running via Cucumber.
Also, we are using maven-...
1
vote
2
answers
78
views
Passing an array as argument of a java program in bash
I am running a Java program through a bash script.
My plan is to iterate over a for-loop to create the argument to pass:
lastLine=$(cat $info_file | wc -l)
countID=0
cat $info_file | while read ...
0
votes
1
answer
55
views
Java code with java.util.Scanner gets "[1]+ Stopped" when run with '&' (in background)
I wrote a program that supports interactive commands. I use java.util.Scanner for the input.
This program is also allowed to be run in background and in this case the Scanner is not necessary. So I ...
0
votes
3
answers
400
views
How to execute shell script on windows using JAVA
Im trying to execute shell script in JAVA on windows machine . below is the code
public static void main(String[] args) throws IOException, InterruptedException {
// TODO Auto-generated method ...
1
vote
1
answer
56
views
shell script character escape failed
My JVM parameters are configured as follows:
set "JSSE_OPTS=-Djdk.tls.ephemeralDHKeySize=2048"
set "JAVA_OPTS=%JAVA_OPTS% %JSSE_OPTS%"
set "PATH_OPTS=-Drelaxed-path-chars=^&...
0
votes
0
answers
56
views
Java Spring Shell hot-swap issue - misread input
I'm quite new to Java and Spring in general. I've tried to add dev tools to gradle config:
developmentOnly 'org.springframework.boot:spring-boot-devtools'
and ticked the "Build project ...
0
votes
0
answers
21
views
How we can add test that is written using shell script inside our maven project?
How we can add test that is written using shell script inside our maven project? is there is template that will use maven-ant-run plugin ?
Is there is generalied way to doing that i need to perform ...