Questions tagged [java]

Java is a general-purpose programming language and a computing platform called the Java Virtual Machine (JVM). Use this tag when you are dealing with a java program, installing java, or configuring a java installation.

Filter by
Sorted by
Tagged with
0 votes
1 answer
876 views

Unable to login to CentOS 7 after reinstalling Java

I am using CentOS 7 and I had Java 1.7 installed with openjdk in my system but I wanted Java 8 so I removed Java 1.7 by the command: yum remove java-1.* Then I installed java normally by tar.gz ...
codegasmer's user avatar
0 votes
1 answer
103 views

Is there any advantages of using rpm-based distro for Java development?

I'm using Arch Linux now and everything seems okay. But I'd like to try using some rpm-based linux distro like Fedora or OpenSUSE. It seems that most Java server machines use Red Hat, which is rpm-...
sn4il's user avatar
  • 93
0 votes
3 answers
4k views

How to install openjdk properly?

Something wrong in my openjdk,i purge it and reinstall it. # apt-get remove --purge openjdk-7-jre Reading package lists... Done Building dependency tree Reading state information.....
showkey's user avatar
  • 333
0 votes
1 answer
6k views

how to make special program run with different version of java from system? [duplicate]

My system need to use java 1.7. However, I need to run some old apps which require java1.6. Can I use shell script to let the old apps use correct java version? Could the $JAVA_HOME work? I try to ...
Wang's user avatar
  • 1,296
0 votes
1 answer
1k views

JAR file terminates unexpectedly without error

I have a JAR file that I'm running in a screen session using java -jar <myjarfile> and for some reason it stops running at unexpected times. I'm redirecting both the StdErr and StdOut to ...
dmux's user avatar
  • 101
0 votes
2 answers
1k views

/usr/java/jre1.8.0_31/bin/java.exe: No such file or directory

I've been trying to run a plugin inside a I have hired, and I've constantly been getting this error: [04:13:41] /bin/sh: /usr/java/jre1.8.0_31/bin/java.exe: No such file or directory Not too sure ...
Michael Delvege's user avatar
0 votes
1 answer
3k views

sqldeveloper can't start

When starting sqldeveloper it crashes without any warning. It just shows a window for a fraction of second. By debuging : $ bash -vx /opt/sqldeveloper/sqldeveloper/bin/sqldeveloper it gives this ...
Slyx's user avatar
  • 3,885
0 votes
4 answers
2k views

crontab is launching multiple java process every 5 minutes?

I have a java runnable jar which I need to run it if it not running or got killed for some reason so I decided to use crontab for this - I need to run the crontab as "poppetapp" user so I am logged ...
david's user avatar
  • 2,187
0 votes
1 answer
1k views

Can't install JPCAP library

I can't install JPCAP on my ubuntu machine. It tells that depends on sun-java6-jdk & libpcap0.8. However I do have them installed in my system as you can see. kujim@kujim:~/Downloads$ ldconfig -...
KuJiM's user avatar
  • 1
0 votes
1 answer
60 views

Java in Gnu/linux servers

What is the use of installing java in linux server. I have seen initialising java paths in .bashrc and using them in different scripts. What does this all mean.please help. Dont have much knowledge ...
Pacifist's user avatar
  • 5,787
0 votes
1 answer
4k views

Bash script class path issue with java

Content of /opt/scripts/jvm/jvm.script.sh #!/bin/bash JAVA_HOME='/java' PATH="$PATH:/$JAVA_HOME/bin" java -cp ./classes:./lib com.mystuff.bar.foo.myclass & Content of /etc/init.d/init.script.sh ...
Gregg Leventhal's user avatar
0 votes
1 answer
2k views

screen command cannot find java executable

I'm trying to execute java from screen: screen -S my-java-app -d -m 'java -jar -Xms512m -Xmx2048m my-java-app.jar' but seems that screen does not know the java command. Running java without screen ...
To Kra's user avatar
  • 613
0 votes
1 answer
732 views

Starting Arduino IDE as root fails on Archlinux with KDE

I need to run the IDE as root to get access to the serial port. The command is ./arduino from inside the package folder. On Fedora this works fine, but on Archlinux the pocess chrashes with the ...
Merlin's user avatar
  • 235
0 votes
1 answer
2k views

NetBeans : Can't build Java project

I installed today on my old developer PC NetBeans (the newest) and I cloned my repo from BitBucket (I began coding with NetBeans on Windows 7). I tried to make a clean build, but the compiler has ...
miny1997's user avatar
  • 128
0 votes
1 answer
1k views

Mandatory argument for script to run java program

My script is called: report_startDate It has the following line: $JRE_ROOT/bin/java -cp /home/me/report/config/:/home/me/report/jar/reporting-1.0-SNAPSHOT.jar com.me.project.report.Main $1 $1 ...
M06H's user avatar
  • 103
0 votes
2 answers
2k views

Choose a terminal emulator from Java [duplicate]

I am writing a platform independent Java console tool and within which will have to execute some commands in separate independent terminal at runtime. However, I need to know which terminal should I ...
Indigo's user avatar
  • 109
0 votes
1 answer
2k views

mysql jdbc connection issues in RHEL 6

I have setup the mysql database in one of the RHEL 6 servers. I would like to connect to this server's database from any other machine using a java program. How should I do it?
Ramesh's user avatar
  • 39.3k
0 votes
1 answer
2k views

davmail and JAVA INSTALLED MANUALLY

I'm trying to install davmail, I've already install JAVA manually (tar.gz file). After trying with the ppa:webupd8team repo and not having good results. Had to clean a lot of files packages and so on....
JAT2007's user avatar
  • 157
0 votes
1 answer
4k views

Install java, tomcat7 or tomcat6 on RHEL5 centos5

I wish to install tomcat7 on centos5 sticking on yum but I have --> Finished Dependency Resolution java-1.6.0-sun-compat-1.6.0.03-1jpp.i586 from jpackage-generic-nonfree has depsolving problems --&...
lrkwz's user avatar
  • 149
0 votes
1 answer
146 views

How to prevent .jar files from going into /etc when installing OpenJDK from rpm?

After I found and installed OpenJDK in Fedora 20 using Apper I noticed there is a series of directories starting with jar prefix under /etc/alternatives, specifically: /etc/alternatives/jre (93,4MB) /...
Piotr Dobrogost's user avatar
0 votes
1 answer
3k views

java add to the path

I have some .jar files in a directory, /home/unix/dfernand/bin/picard/picard-tools-1.106. But when I add the directory to the PATH and CLASSPATH in my bashrc, java still does not recognize the .jar ...
Dnaiel's user avatar
  • 211
0 votes
1 answer
1k views

Codeswarm software project visualization: how do you set it up with opengl rendering on a contemporary 64bit Linux system?

The Codeswarm project provides a software project repositories visualization tool in Java. The software leverages the commit information from a log generated from a repository. The rendering ...
user avatar
0 votes
2 answers
2k views

how to run .dump command in linux? [closed]

I want to create dump file of sqlite database from java but I can't run the below command from linux. I got the help of windows and I tried with linux but it appears one terminal nothing more than ...
Java D's user avatar
  • 109
0 votes
1 answer
1k views

Red5 can't find JAVA_HOME

I'm setting up a Red5 server on Cygwin I get this /usr/share/red5$ sh red5.sh Running on CYGWIN_NT-6.1-WOW64 Unable to locate Java. Please set JAVA_HOME environment variable. However, I can also ...
user avatar
0 votes
1 answer
3k views

Can't load IA 32-bit .so on a IA 32-bit platform

I'm trying to install an 32_bit_application on CentOS (64-bit), while running the setup.bin file it return the following error Invocation of this Java Application has caused an ...
HamTheAstroChimp's user avatar
0 votes
1 answer
1k views

Upgrade java on Linux Mint 11

I'm unable to use web-based java content due to my version being out of date. %>java -version java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) Server ...
a coder's user avatar
  • 3,253
0 votes
2 answers
2k views

Tomcat does not get enough memory

i'm trying to setup a jira instance on my vServer. I've got min. 1 GB ram and max. 2 GB ram. It was runing on my friends Server with only 512 MB ram. The first error was: java.lang.OutOfMemoryError:...
jussi's user avatar
  • 101
0 votes
1 answer
2k views

Enter process running in background/bring to foreground [duplicate]

Possible Duplicate: How can I disown it a running process and associate it to a new screen shell? I started a java client using nohup to get it to run in the background (needed to log out of ssh)....
DexCurl's user avatar
  • 101
0 votes
1 answer
1k views

Where can I find Aptana error logs?

Where are Aptana error logs stored in fedora?I want them to see why Aptana crashes. Edit: According to Mat's answer I checked the .log file in .metadata directory but this is what Is added to file ...
Nick.h's user avatar
  • 6,333
0 votes
3 answers
8k views

How to set up the DOMAIN_HOME environment variable in SUSE Linux

I am running Java NetBeans 6.9 jdk 6 on SUSE Linux and I currently need to get the path of the weblogic domain of my Java application. I have read that I can directly access the environment variable ...
user avatar
0 votes
0 answers
15 views

"Failed to load swt-pi3" error in e2studio installer

I would like to install the latest version of Renesas' e2studio on my up-to-date Fedora 39 machine but I keep getting the following error: $ ./e2studio_installer-2024-01_1_linux_host.run Mar. 31, ...
stdcerr's user avatar
  • 2,079
0 votes
0 answers
51 views

How to solve Missing X server or $DISPLAY when trying to change the loaded website in chromium

I am a newbie with using raspberry and I am using chilipie-kiosk to develop a kiosk on a raspberry pi. The idea is when the Raspberry Pi starts, the Chromium browser is launched with a page that we ...
Jorge Palacios Zaratiegui's user avatar
0 votes
0 answers
31 views

JAVA_TOOL_OPTIONS="-Dos.name=Windows 7" -> Unrecognized option 7

I am trying to install the latest version of PSIM which is a windows application. I downloaded the latest version of JAVA as well as JAVA 8 (in case it doesn't like the latest) and set the variable ...
Vio Ariton's user avatar
0 votes
0 answers
34 views

Error while installing openjdk [closed]

Got the below error while executing below command sudo apt-get install openjdk-8-jdk Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to ...
Адриан Финько's user avatar
0 votes
1 answer
92 views

If I have a json string how do I calculate the number of bytes needed when stored?

I have a json string formatted displayed in a web page. What I am trying to understand is what is the size in terms of bytes that this json string requires. If I copy and pipe to wc -c I get 1000 ...
Jim's user avatar
  • 1,391
0 votes
0 answers
24 views

Kafka with KRaft - what is listening on the random high port?

I'm in the process of writing some ansible to install Kafka on RHEL and I've got the service running and am about to configure the firewall to make the service accessible on the network. When I look ...
azzid's user avatar
  • 998
0 votes
0 answers
49 views

Hadoop Namenode heap size tuning

NameNode process is executed in Java virtual machine, and Java object which NameNode creates is managed in Java virtual memory. As the fles or directories are created, inode objects and block objects ...
yael's user avatar
  • 13.1k
0 votes
0 answers
33 views

Why are four Jenkins build nodes suddenly having fatal problems finding things on the PATH?

In our overall organization, we run Jenkins 2.303.1 onprem. We run thousands of builds a day. The project I work on uses one Jenkins master and a set of about ten build nodes. We build a few hundred ...
David M. Karr's user avatar
0 votes
0 answers
41 views

Running a Java Abstract Window Toolkit application within a Docker container under Wayland

In the last years I ran a Java Swing application within a Docker container by running: docker run -u 1000:1000 --rm --name etax_zug --hostname etax-zug \ -e DISPLAY=unix:0 \ -e XAUTHORITY=/tmp/...
alexanderadam's user avatar
0 votes
1 answer
2k views

Java 21 on Raspberry Pi 5

I'm not able to install Java 21 on Raspberry Pi 5. I download ARM versions from openJDK and Oracle, but both don't work for me. When typing ./java it prints: "No such file or directory" (I'm ...
Bloodlex's user avatar
  • 101
0 votes
1 answer
1k views

Error: could not open `user_jvm_args.txt`

This is my first time making a bash script into a service and I'm running into an error where the service fails because it can't open a text file that is used for java arguments (user_jvm_args.txt). I ...
EChumley1310's user avatar
0 votes
1 answer
40 views

shell script invoke java, keep existing on linux

we have a bash shell script which invoke java program. will it be happened that the java ends/complete but the process of still on the process list? below is the content of execute, which invoke a ...
user30430's user avatar
0 votes
0 answers
14 views

Integrate java app installed through flathub to GTK

I have installed sweethome3d via flathub(https://flathub.org/apps/com.sweethome3d.Sweethome3d). Expectedly, the look is not integrated with Adwaita or whatever GTK theme and icons I am using. Is there ...
BaRud's user avatar
  • 1,639
0 votes
0 answers
101 views

Mailx call in shell script suddenly sending blank messages

Similar to what was reported in posting, MAILX sends an email but with a blank subject and body text, I have an Oracle EBS 12.2 server that's using a concurrent program (java) to invoke a shell script ...
mattp's user avatar
  • 1
0 votes
0 answers
209 views

Uninstall Java 8 openjdk-8-jre-headless to upgrade to openjdk-11-jre-headless

I've tried several methods of removal of the package. apt remove openjdk-8-jre-headless, apt purge openjdk-8-jre-headless, I've tried to dpkg-l | grep openjdk to find the packages listed, Each time I ...
Susan L Nuss's user avatar
0 votes
1 answer
93 views

Installing Ant is overriding Java Installation

I am trying to install ANT after installing java. My java in Sun Java. pc19@pc19-H110:~$ java -version java version "20.0.2" 2023-07-18 Java(TM) SE Runtime Environment (build 20.0.2+9-78) ...
Max's user avatar
  • 705
0 votes
0 answers
105 views

Detecting a Pipewire Virtual Sink in Java

I'm trying to set up a Virtual Sink using Pipewire which I've done successfully, however, I am having trouble detecting it in Java though other applications have no problem detecting it. I can play ...
Emmy's user avatar
  • 1
0 votes
0 answers
69 views

Screen session inside of chroot does not show console output

I have a chroot jail set up for a minecraft server to be managed via SSH by someone. The chroot is setup properly with proc and lib bind mounted to the / directory for the jail, chroot/usr folder ...
dylanface's user avatar
0 votes
1 answer
81 views

How to prune Ubuntu to bare essentials

I have a Raspberry Pi running a Java application (with Swing/GUI) in a kiosk-like setup. I want to terminate (or preferably prevent from starting) all unnecessary processes that are not essential for ...
amateur99's user avatar
0 votes
1 answer
144 views

Shell script not picking up variable in if statement

I have some code that looks like this: ################### - Let's call this section 1 if [ -n "$STUFF_JAVA" ]; then __LAUNCHER="$STUFF_JAVA" else __LAUNCHER="...
Chicken Sandwich No Pickles's user avatar

1
12 13
14
15 16
18