Questions tagged [java]

Widely-used object-oriented programming language, emphasizing portability. Questions about programming with Java are off topic and should be asked on stackoverflow.com.

Filter by
Sorted by
Tagged with
-3
votes
0answers
15 views

HOW TO CREATE CLI internet chat interface IN JAVA [closed]

Implement a websockets based chat server that can be used for exchanging text messages as well as running system commands on the other machine (linux). You need to devise a protocol to identify the ...
0
votes
0answers
10 views

How to identify which OpenPGP version being used in CuteFTP

I am trying to do PGP Encryption using Java Bouncycastle and Decryption using CuteFTP OpenPGP in-built mechanism and the result is - its failing due to CuteFTP unable to read the file. Seems its ...
0
votes
0answers
5 views

Different log4j2.xml location in Jenkins builds [migrated]

I've been building my Java apps locally using maven install on my Eclipse IDE. We recently migrated to Jenkins to build our jar files. But when trying to run the Jenkins-built jar, I get this error: ...
0
votes
1answer
40 views

64-bit Java not working

I have been trying java -d64, but get Error: This Java instances does not support a 64-bit JVM. Please install the desired version. I know I installed the 64-bit version, and when I go to Control ...
0
votes
1answer
57 views

Is it possible to read off CMD without user input?

I was wondering if there was any way to read straight off CMD on windows without having inputs from a user using Java. I'm running a Minecraft server and want to create certain types of automatic ...
0
votes
0answers
11 views

Using Copernicus SNAP software to open Open Hub satellite data

I am trying to use the freely downloaded SNAP software to open also free Sentinel 1 & 2 satellite image data from the Copernicus Open Hub. I am using a Intel Core 2 QUAD 2-3 GIG desktop computer ...
0
votes
2answers
30 views

difficulty running some old java applets, I have java 8 and appletviewer

I am trying to run some old java applets from the old book "Algorithms and Data Structures In Java" by Robert LaFore. https://sites.fas.harvard.edu/~cscie119/resources/lafore/ or https://cs....
-1
votes
0answers
18 views

Why does JD GUI not finish save all sources when deconstructing APK?

there are no error messages the app bar simply stops progressing when it has the width of the cursor to go. It does create the file, but nothing is inside. I have looked at all the YouTube videos. I ...
0
votes
0answers
19 views

Troubleshooting Cobalt Strike error message “AgressiveHeap option not set. Use the Cobalt Strike laucher”

I'm trying to run Cobalt Strike and despite it being a commercial product I haven't received any reply from them and I've found nothing on Google. It happens when I start by running the teamserver ...
0
votes
0answers
26 views

Java dependency

I was hoping someone could help out with this. Last night I got an update notification on my computer advising that there was a newer version of Java available, when I selected to update it, I was ...
0
votes
0answers
19 views

FileSystemWatcher does not hear events when application changes files

I have a Powershell Core script that uses FileSystemWatcher to listen for changes in a directory recursively. It behaves as expected when a user uses Windows Explorer or a shell to add or modify a ...
0
votes
0answers
5 views

Is there any selective benefit in caching string instead of an object in Java? Does it differ in Python? [migrated]

I was once suggested by a dear colleague of mine, that it is preferable to store strings in caches instead of the objects themselves (say maps, JsonObjects etc.), for less active caches. The reason he ...
0
votes
0answers
10 views

Java Error: NullPointerException [migrated]

I have a kid whose teacher is MIA and his homework is due soon. I have the following assignment and an unhelpful error when attempting to run the program. I'm trying to learn the issue myself so I ...
0
votes
1answer
35 views

IntelliJ IDEA or Pycharm not opening on Alpine Linux

So I am trying to migrate to Alpine Linux; however, I cannot seem to install two IDEs, Pycharm and IntelliJ IDEA. They are both throwing me the same error whenever I attempt to run either pycharm.sh ...
1
vote
1answer
18 views

AuthorityKeyIdentifier missing from keypair generated with java keytool

Background: I'm trying to set up a QA/test environment for a system comprising (1) a web application configured for HTTPS connections, and (2) a Python-based client application running on a mobile ...
0
votes
0answers
5 views

How to launch D-ITG application on Lubuntu 19.04 as root?

I need to launch D-ITG network traffic generator on virtualized Lubuntu 19.04 PC as root. D-ITG desktop screenshot I hoped, that gksudo command would be present, but it's not. Is there a way to ...
0
votes
0answers
11 views

Java Script To Open Attachment Pane In Acrobat Reader

I want to create a link to open the attachment pane. In Adobe Acrobat/Reader, it is View>Show/Hide>Navigation Panes>Attachments. However, in some other programs for e.g. Kofax Power PDF it is View>...
0
votes
0answers
15 views

azure speech to text connection failed

Connection failed (no connection to the remote host). Internal error: 1. Error details: 111. Please check network connection, firewall setting, and the region name used to create speech factory.
1
vote
1answer
26 views

Specific user can't run Spring Boot application on port 443, but root can do it

I can't run a Spring Boot application on CentOS under a specific user on the port 443 (or 433 it doesn't matter). Caused by: java.net.SocketException: Permission denied Root can do it. When I tried ...
0
votes
0answers
9 views

Updating existing quartz triggers with misfireinstructions

I'm using spring + quartz 2.3.1 and I have created triggers in my code as below - without the misifre instructions and later changed it to have the misfire instructions Old code that created the ...
1
vote
0answers
10 views

STS (Spring Tool Suite) doesn't autocomplete method parameters if they're instantiated using “var”

I'm currently using STS 4.6.1.RELEASE and JDK 11.0.7 with Content Assist enabled. I can reference attributes with var, e.g. in the code var customer = new Customer(); I can begin typing "cus..." and ...
0
votes
0answers
75 views

Trying to download NetBeans and getting critical error, how to get around this?

I currently have JDK 14.0.1 installed (confirmed in the command terminal with: java -version), from the website (https://www.oracle.com/java/technologies/javase-jdk14-downloads.html) and have ...
0
votes
0answers
33 views

Software asking for obsolete version of Java (6) on macOS 10.15

I have a friend that is trying to run the following software (cmap) https://cmap.ihmc.us/cmaptools/cmaptools-download/ She gets prompted to install Java SE 6 to run the software. She last used it in ...
2
votes
1answer
26 views

Keep only the second and third words of each line in notepad++

I want to... keep the second... and third words only... I would like to keep only the second and third words and delete everything else in each line i.e want and to, the and second, third and words ...
0
votes
1answer
123 views

Minecraft Server RAM allocation - Linux

Problem I am hosting via Strato V server a modded minecraft server 1.12.2. I allocated about 8 to 10 GB to jvm but when I check with htop it says that only about 4.2 GB ram are used for the whole ...
0
votes
0answers
37 views

Windows Server 2012 black screen when logged out

I coded a java program and it is sending me screenshot from remote server machine. The problem is when I am connected to the machine, my program can send me the screenshot. But if I disconnect, It ...
0
votes
1answer
135 views

JDK 11 windows installation Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'

After installation of JDK 11 and setting of the path in environment variable In a command prompt > java -version returns: Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' ...
1
vote
1answer
37 views

I've been trying to open a jar file but every time I do so It tells this jar file could not be launched

java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode) Joses-iMac-5:~ luissoto$ java -jar/...
1
vote
0answers
43 views

Why can't my threads fork?

I recently started renting a VPS, it's running Ubuntu Server 18.04.4 LTS on 8GB of RAM. I only ever used it to run a small (SpigotMC) Minecraft server. When the JRE for the server is not running all ...
0
votes
1answer
22 views

Keytool -import ssl certificate from personal CA on jboss 4.0.5 server

What i am trying to do for a few days already, and it drives me crazy, is to make a java website based on jboss 4.0.5 server to use ssl certificate(https). For this I'm following these instructions: ...
2
votes
3answers
308 views

Upgrading to macOS 10.15.4 causes “jdk-11.0.2.jdk” developer cannot be verified error

I recently upgraded my laptop to macOS 10.15.4 and now Java will not run from the command line (or anywhere else from what I can tell) I just see this error message: “jdk-11.0.2.jdk” cannot be ...
0
votes
0answers
28 views

Adding local certificate to google chrome

[MANUAL ACTION REQUIRED] Please add local Eclipse Che CA certificate into your browser Thats the warning I get when installing Eclipse che, via chectl, how can I add the local Eclipse Che CA ...
0
votes
1answer
60 views

Displaying UDP Multicast Rawvideo Stream

I have a problem while trying to capture the raw video over UDP. In my setup, I stream the webcam with FFmpeg (command line) via UDP, on the client side I use Java OpenCV, the capture line; ...
0
votes
0answers
29 views

Client Connects but Server doesn't: How is this possible?

I am writing a simple Java webserver, using the Socket class. When the server and Client are connecting over localhost, everything works fine. I want to access my Server remotely as well, so I used ...
0
votes
1answer
25 views

Result from 'java -version' does not show in list of programs on Windows 10

Recently I have been having some issues with dependencies in a Java project that I was making. A suggested solution was to use Java 8 and not Java 11. For some reason, I cannot revert back to Java 8 ...
0
votes
0answers
73 views

Java Control Panel won't open on Windows 10

I installed Java 64-bit Offline. When I try to open Java Control Panel, it shows me its body, completly blank, and then closes itself after 5-10 seconds. I've tried reinstalling, restarting, running ...
0
votes
1answer
145 views

Running Java process from Systemd with classpath

I have the following service: [Unit] Description=App After=network.target [Service] Type=simple User=root WorkingDirectory=/opt/app ExecStart=/usr/bin/java -server /opt/app/start.ini Restart=on-...
0
votes
1answer
28 views

Netbeans Author Tag?

I'm using Netbeans 11, and when I create a new Javadoc tag, my default name appears in the form of: /** @author Sarah <GENERIC_EMAIL_HERE> **/ public class X {} How can I change these default ...
1
vote
1answer
708 views

How can I get “Ctrl+Shift+Right/Left” to select/mark a word in Eclipse?

I'm using Eclipse 2019-12 (Java) on Windows 10 and I cannot get Ctrl+Shift+→ to select/mark a word as it do in every other program I use. The same is true for Ctrl+Shift+←... The General -> Keys ...
0
votes
1answer
149 views

how to change download sources used for building netbeans-apache?

I have followed this guide from netbeans: build from source Unfortunately on running ant build, as it tries to download from maven central repository it uses an url that seems outdated, the new url ...
1
vote
1answer
112 views

Does ECHO %PATH% show the path in the wrong order in Windows?

I'm currently fighting with my IDE and usage of PATH, JAVE_HOME, etc. on Windows 7. As stated in this question: PATH variable showing different values (command prompt vs environment variables dialog ...
0
votes
0answers
24 views

How to invoke a command in windows cmd with different proxy

Actually I am trying to create an java web application for an office that downloads office365 ODT and installs it through the command line with the help of RUNTIME(a java class). The application is ...
0
votes
1answer
46 views

How do I run a War File in confined SELinux domain on CentOS7?

I am currently working on the deployment of my Java Web Application. This application is available to me as a WAR file. My goal is that the application starts with a limited SELinux startup. This ...
0
votes
0answers
42 views

how to prevent windows 10 home from suspending Minecraft

this has happened for a while. i will be playing minecraft and it just stops working. i look in the resource monitor and it has been suspended. there are 2 java apps that i have to force to un ...
0
votes
0answers
17 views

Java - GUID not appearing in Registry

I am trying to uninstall Java via the command line silently, when i try to find the GUID in the following location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall so i can ...
0
votes
1answer
56 views

tomcat with does start with SSL arguments for JMX

I have Tomcat 8.0.23 (I know, should be upgraded) running on CentOS and I need to set up JMX with authentication and SSL. I am able to connect with SSL and with password through SSL tunnel from my ...
0
votes
0answers
145 views

UCF error in Documentum

I am getting a 'class com.documentum.web.contentxfer.ucf.UcfSessionManager'error when attempting to open a file on Documentum. Some details: Java Plug-in 11.241.2.07 Using JRE version 1.8.0_241-b07 ...
0
votes
0answers
20 views

How to update existing curly brace positions in IntelliJ IDEA? [duplicate]

I've been given Java code by others which use curly braces on new lines, and I'd like them on the same line after I import the file without having to change them line-by-line? How do I do it? ...
0
votes
0answers
45 views

How do I run Java from a usb key by using JPortable and its launcher?

I downloaded both the Java runtime environment and the JPortable launcher from PortableApps.com in order to run Java and edit projects by launching the IDE from my USB key without the need of ...
0
votes
1answer
100 views

How do I uninstall Java7 from macOs

After April 2015, Oracle will no longer post updates of Java SE 7 to its public download sites. I am inclined to remove Java 1.7 and the JDK permanently from my Mac, if only I knew how to accomplish ...

1
2 3 4 5
49