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.

216 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
688 views

JVM memory limit on Linux (Debian)

When running my java program, I get following error: Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit I am wondering how I can increase the limits on my ...
1
vote
1answer
152 views

Java PATH issue when installing JDK7 on centos 32 bit

I have Installed JDK 7 on CentOS 32 bit virtual machine. I also have set the path for java. In one terminal it is showing java1.7 But when I open another terminal and look for, java -version It is ...
1
vote
0answers
606 views

X high CPU when using Java applications

Only recently, my Freemind program has become extremely sluggish and unresponsive (big lag) when moving my mind map around. I use Arch Linux with xfce4. Freemind is made with Java. If I move the mind ...
1
vote
0answers
220 views

Ant error after installing NetBeans 7.3 in Lubuntu

I have NetBeans 7.01 from Debian repository - all works. But I have a problem with NetBeans 7.3 from the official site (installed on the same machine) - I can't compile anything: ERROR - Ant is ...
1
vote
0answers
404 views

Parameters of optimization TCP / IP in Linux Mandriva

In the registry of Windows XP can find the following options to enable optimizations for TCP/ IP: - MSS; - TCP Rx Window Size; - SACK (Selective Acknowledgment); - ECN (Explicit Congestion ...
1
vote
0answers
305 views

Rogue Java process brings my computer to a halt

In reference to my earlier post: Is there a log of past threads that are now closed? I gave the process a kill -STOP signal and started examining the details. I can't seem to figure out why it is ...
1
vote
1answer
1k views

Programmatically creating .desktop file to autostart application

Using a Java program, I added a .desktop file in /etc/xdg/autostart to run a script when a user logs in. The script didn't run at user login, and when I checked the start up applications dialog ...
1
vote
1answer
1k views

Editing the .profile file to access

I am trying to source my .profile file to easily access a directory of javatools. The bash code below seems like it should work but it does not. Any help troubleshooting this script would be very much ...
1
vote
1answer
665 views

How to install Java Runtime Environment 7 update 5 for x64 arquitecture on Debian OS?

The History: Hey guys I want to install JRE7u5 and not OpenJRE7u5 because, while doing a research on the web I discovery that Minecraft runs better on JRE, than with OpenJRE. The Failure: But the ...
0
votes
1answer
20 views

Which of these Java install locations do I use to set the Java_Home path?

I am following this tutorial to install Android Studio on my Linux Mint. I have reached the stage where I have to set the JAVA_HOME environment variable to the location of my JDK installation. I was ...
0
votes
0answers
25 views

lsusb listing the device but not accessible on serial port

I connected a device using USB port. The device drivers are installed. I would like to access it from serial port. Using lsusb it lists the device as: Bus 001 Device 002: ID 106f:0003 ...
0
votes
0answers
78 views

How to install Java 8 on Alpine Linux?

When I look at package lists they suggest that all sorts of Java 8 packages exist for Alpine, but when I try to install them I always get: apk add openjdk8 ERROR: unsatisfiable constraints: ...
0
votes
0answers
47 views

Ran Java program via bash script on CLI / How do I interact with it?

I am trying to set up a Minecraft server on a CentOS distro, and got everything working. I made a script to execute my Java instance to get the heap right, but after initiating the script, I can no ...
0
votes
0answers
19 views

Install Compendium Challenge

Looking for powerfull method to adress wicked problems, I recently discovered "Compendium". This software looks very powerful (have a look here to have an idea of how necessary this soft is) but it ...
0
votes
1answer
42 views

Redeploying a Spring Boot app init.d service

I followed this guide to setup my Spring Boot app as an init.d service. https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html#deployment-initd-service My website is working ...
0
votes
0answers
16 views

Is it possible for “service status” to be wrong?

We're running centos 6.7, it doesn't have systemctl. We are using Wowza streaming engine which runs on Java, I'm reporting this issue to wowza as well, maybe it's a bug from their end. Sometimes when ...
0
votes
1answer
15 views

Red dirs alert in bin folder, jvm dirs

I was just hanging around in my dirs and I found some dirs that are displaying a red alert, all of them are related with jvm. I supposed that it could be a problem with jdk or some wrong installation ...
0
votes
0answers
105 views

Installing java.xml.bind and Contiki-ng

I'm trying to install a program called Contiki-NG onto a Ubuntu build sitting in VMware on a Windows 10 station. In the process, I need to build an app called Cooja. I'm getting the following results: ...
0
votes
1answer
106 views

Can't install Oracle JDK in Linux Mint 19.2

I have downloaded Oracle JDK 11 and I'm trying to install it on my Linux Mint (x64). After downloading the tarball, I extracted it to my /usr/lib/jvm and exported it to PATH: export PATH=$PATH:/usr/...
0
votes
0answers
56 views

systemctl stop not stopping all process in redhat

I am starting a service using systemctl ,but I am facing issue to stop the service in redhat system. the service file I am creating : [Unit] Description=/home/agenttest After=syslog.target [Service]...
0
votes
1answer
85 views

Having problems installing icedtea on CentOS 7

I'm changing over from Oracle Java to OpenJDK. I ripped out all traces of Java from the system regardless of vendor and started from scratch. I downloaded the latest OpenJDK tarball and put it in /opt/...
0
votes
0answers
181 views

Wildfly 17.0.1 not starting on Ubuntu 18.04.3 LTS

When I'm starting the service it executes without any error. But on checking of status of service I got the following things wildfly.service - The WildFly Application Server Loaded: loaded (/etc/...
0
votes
0answers
25 views

Newly created partition number

I'm writing a program (in java) that slices a clean device onto a set of partitions, using parted mkpart to create the partitions. In order to create a next partition, I want to know a partition ...
0
votes
0answers
14 views

Installed Weblogic 10.3.6 in Vagrant box, not able to browse the console page in chrome

Could you please help me for the below issue, I have installed Weblogic 10.3.6 in Vagrant box "rhel7" after starting the application I'm unable to browse the url page in Chrome. config.vm.network "...
0
votes
1answer
99 views

ubuntu 18.04 java installation problem

Everytime I try to install java on Ubuntu 18.04 (on a VirtualBox VM) with the following command (I've tried several other commands/methods from other topics/forums): sudo apt install default-jdk No ...
0
votes
0answers
41 views

java.net.SocketException: Network is unreachable on my Red hat 7 linux Server

So I have a java app on a linux red hat server that is accessing login.microsoftonline.com and graph.microsoftonline.com. I can curl those domains and they respond. I have imported the certs for ...
0
votes
1answer
29 views

puppet module not doing anything

I successfully installed the puppetlabs java module using command puppet module install puppetlabs-java. I created a puppet module using command puppet module generate ... I have two manifest files ...
0
votes
0answers
54 views

How to display text file in zenity with formation?

Using RHEL 5.1,zenity 2.16.0, I have output of text file like below,I am using command zenity --text-info --title="File View" --filename=/root/Desktop/question --width=1400 --height=700 ...
0
votes
0answers
15 views

(Can I/) How do I switch to a Java program started by another user on Ubuntu?

I am running a Minecraft server on an Ubuntu Server. To start the server I used ssh to login from Windows Subsystem for Linux. I then run the minecraft server using screen bash (script for starting ...
0
votes
0answers
119 views

Bringing a running java program back to foreground

I was experimenting with the java language and accidentally got a running java program that has a foreground GUI to become a background process. I ran this command to locate the PID of the process ...
0
votes
1answer
49 views

I can check output of a command in shell script but I cannot do the same in crontab

I can run my script as .sh file in ubuntu shell but it does not work when it is called from cron job.I run my script into an ubuntu container (using docker) as if [ `java -jar /path/to/my.jar |grep -...
0
votes
1answer
37 views

Getting trouble installing HPjmeter

I'm trying to install HPjmeter console on centos 7 desktop in order to monitor my web app GC status . I've follwed all the steps mentioned on the official user guide but when executing this command ...
0
votes
0answers
13 views

Javapackager for Java 8 arm32 doesn't exist?

I can't find javapackager in Java 8 JDK for arm32 jdk-8u211-linux-arm32-vfp-hflt. It doesn't exists?
0
votes
1answer
117 views

Linux start screen and run a java program and detach it?

I have the following script that should do the following: Stop screen "server" if exists Start screen "server" Run a java program and detach screen. However, when I firstly run the script, the ...
0
votes
0answers
505 views

Fedora 29 with KDE - Xorg / QT - QXcbConnection: XCB error: 3 (BadWindow)

When running Katalon Studio or other Java apps with UI and i select an object of type combobox or list, an interface turns black and the application freezes and crash mai 26 16:21:04 tuxzao kwin_x11[...
0
votes
0answers
72 views

Where can I find the Application-Library-Allowable-Codebase Attribute for Java?

I am using Ubuntu to run an amazon webpage, the page is trying to load a java program and it fails when it tries to open. This opens perfectly in Chrome on Windows but we are looking to go Linux. the ...
0
votes
1answer
249 views

My Atom says: “bash: javac: command not found”

Atom not finding JAVAC command. Current Java version openjdk version "11.0.3" 2019-04-16 OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1) OpenJDK 64-Bit Server VM (build 11.0....
0
votes
3answers
103 views

Invisible mouse pointer in Java application window

I have played a Java-based game (salem the game) on Windows 7 with the Java 8 Runtime Environment, and it works properly. However, on Debian Linux, I can launch the game, but the mouse pointer is ...
0
votes
0answers
322 views

JAVA_HOME environment variable in arch Linux

Since arch have this native script archlinux-java which manages multiple java environments on the same system, do we still need to update the JAVA_HOME environment variable ? like JAVA_HOME=/use/...
0
votes
1answer
155 views

JavaFX on a 4k screen

I am using Ubuntu 18.10 and I am creating a javaFX application. I have used a lot of time to research google and found no way at all to make my program scale on linux. Here is how it looks like: I ...
0
votes
0answers
346 views

OpenJFX not getting installed correctly

I have installed Java from this command: sudo apt-get install icedtea-8-plugin sudo apt install openjdk-8-jdk sudo apt-get install openjfx So I installed IcedTea, openJDK 8 and openJFX. For some ...
0
votes
0answers
204 views

Sending mail does not work from my Centos 7 server

In my java application I have a module that allows to send mails application.yml: ... mail: host: smtp.gmail.com port: 587 username: xxxxxx@gmail.com #Replace this field ...
0
votes
0answers
153 views

Choose right Java on JNLP

I have a problem running JNLP files (mostly for server ILOM consoles). ILOM consoles are different and run on different java versions, so I want to choose which java to use each time. I have 3 Oracle ...
0
votes
0answers
30 views

use ag to search for wildcard-pattern and grep to only print unique findings acc to the pattern

ag --java -Ui "@*" does already include the findings like @Controller @PointCut @Entity but also a lot of content around the findings. I'm trying to filter out all annotations used in several java ...
0
votes
0answers
3k views

How to fix Picked up _JAVA_OPTIONS: no options listed on Linux?

This issues is on Manjaro Deepin 15.9 linux DE. When I run java -version in terminal it outputs this: Picked up _JAVA_OPTIONS: java version "11.0.2" 2019-01-15 LTS Java(TM) SE Runtime ...
0
votes
1answer
188 views

Pass array to Java from Shell Script

I have data as below which I want to pass directly to Java main method from shell script at once. 1 firstfile.txt Success 2 secondfile.txt Failed 3 thirdfile.txt Success I know I can call ...
0
votes
1answer
443 views

javavm initial and max heapsize set to the same huge value

I'd like to ask about your opinion about starting up java process with an equal -Xms and -Xmx which, as java's help says are: -Xms<size> set initial Java heap size -Xmx<size> ...
0
votes
1answer
1k views

How to schedule to run testng.xml file on terminal on linux environment?

I have scripted a Selenium automation testcase. I have generated the testng.xml file which should be executed on the linux terminal at a particular time of my need. Say I want to schdule to execute ...
0
votes
1answer
1k views

zscaler certificate issue

Do any one have idea what could be error reason and how it can be resolved? [root@Linux ~]$ wget https://www.google.com --2018-10-19 07:46:25-- https://www.google.com/ Resolving www.google.com... ...
0
votes
0answers
104 views

Error occurred during initialization of Java VM

Trying to install JDK 1.8 to 32 bit Debian Squeeze machine. I have extracted jdk-8u171-linux-i586.tar.gz to /opt folder and ave exported JAVA_HOME="/opt/jdk1.8.0_171" I got error below while run Java:...