Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
12 views

Escaping spaces in server_args of xinetd.conf

I am trying to expose a small java program to the network for demo purposes. I use the xinetd configuration and create a service, and can get everything to work. Except when there is a space in the ...
0
votes
1answer
9 views

Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set

When I try to create my project's Javadoc in IntelliJ IDEA using Maven, the following error appears: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:javadoc (...
-2
votes
0answers
11 views

A method to automate putty through java [closed]

Is there any method to automate putty through java using UI (except for using Jsch or Jcraft).Can someone please mention the clear and proper steps of doing it.
0
votes
0answers
8 views

Java Eclipse - Output when running from command prompt is not the same as through IDE [migrated]

I am very new to Java and the eclipse IDE and have an issue when running my Java code from the command prompt on Windows. If I run the code through the eclipse IDE this is the output I get Message ...
0
votes
0answers
8 views

Java web start application fails with “nNable to find Certificate in Default Keystore”

I'm attempting to access the IPMI management interface on a older server. It's from around 2010, and there are no updates for the IPMI available. If you're not aware, IPMI is a remote management ...
0
votes
0answers
8 views

Java GUI - Implementing in one class but adding actionlisteners to another class [migrated]

I'm required to implement ActionListener in the CommandPanel but I need to add ActionListeners to JButtons that are in another class. I can't build classes within classes and I can't make any changes ...
0
votes
1answer
34 views

How to forcefully install older version of jdk?

I'm unable to force an older installation (1 version ago) that is required by another app on Ubuntu 16.04. Is there a way to force the install? me@vm:/usr/lib/jvm$ sudo apt-get install openjdk-7-jdk ...
0
votes
0answers
32 views

How to create an .exe installer for a Java application?

I am in doubt of which tools select for the job. I have a Java application composed of a few JAR files (a main .JAR plus libraries) and miscellaneous other files and I'd like to bundle it into a ...
0
votes
0answers
21 views

Access files from Tomcat user

I have a nologin tomcat user with a home directory /opt/tomcat/ I want to be able to access files from my sudo user. I have tried using environment variables to point to the file and just tried to ...
0
votes
0answers
23 views

Eclipse - Import project grayed out

I am completely new to Java and Eclipse. I am unable to import a project into Eclipse as it is grayed out. Spent some time searching on google but got nothing useful. Would like some help. Below is ...
0
votes
0answers
22 views

creating drop down menu

I am working on a project, so I have design a menu like I have shown in the picture. I have searched a lot about it, but never found a suitable name or what this frame is called. Please tell me the ...
-2
votes
1answer
41 views

javac is still not recognized, I tried everything [duplicate]

I am new to programming. I want to set java environment, but it is not working even I set the path. This is the directory, I put the first one on path C:\Program Files\Java\jre1.8.0_181\bin: here ...
0
votes
1answer
28 views

Java list all used imports of project per file

How can I list all used imports per file of a whole java project? Part of the requirements is to ignore unused imports but have all the used items imported via wildcard listed seperately.
0
votes
0answers
7 views

Using ENV vars in IntelliJ IDEA

I'm using IntelliJ IDEA in Windows 10. I'm trying to set up an application-specific login credential set without hard-coding it into a YAML file. This project will eventually be pushed to github and ...
0
votes
0answers
25 views

How to Merge a layer automatically from different Group and save as JPG in Photoshop

I have 3 Different Groups having the same layer but different in positions in Photoshop. Now I want to show only layer 1 from all group and save as Jpg then show layer 1 from Group 1 & Group 2 and ...
0
votes
0answers
13 views

HyperSQL “user lacks privilege or object not found” error when Java access its table

I created a HSQLDB file using LibreOffice Base 4.4.7.2. In the Tool>Option>Advanced, the JRE class path is set to my JDK 1.7.0_80 & it is selected. The database contains a table named TABLE1. In ...
0
votes
3answers
530 views

Keeping Firefox 52.9.0 ESR (32bit)

I am trying to download the Firefox 52.9.0 ESR (32bit) as it can run java as a plugin in the browser. I've been doing this by taking the zip file from the archive, extracting it to my desired folder, ...
1
vote
1answer
16 views

Intellij Idea takes forever to show folders in “file/folder selector” dialog

The naming similarities to this unanswered SE Question from 2016 are intentional. We have the exact same problem. I am using IntelliJ Idea for Java work, but in a way that I frequently need to us the ...
0
votes
0answers
10 views

Heroku Procfile Configuration for Spring Boot being overridden by default values

I have a spring boot application and I keep getting R14 memory warnings on heroku. I believe the problem lies with the infrequent garbage collection and heap size as manually triggering the garbage ...
2
votes
1answer
32 views

Using wireshark to only capture the traffic between my computer and a specific host

I'm a .NET developer who's used to using fiddler. I'm trying just see the traffic from a web service running on my local machine and a specific web service. When I hit this web service from an ASP....
0
votes
0answers
62 views

%JAVA_HOME%\bin in windows path is not working

I have Java (JDK10) installed. A system variable JAVA_HOME is set to C:\Program Files\Java\jdk-10.0.2 The path system variable includes the value %JAVA_HOME%\bin I was able to run javac yesterday ...
0
votes
1answer
50 views

Linux application monitoring tool [closed]

I have a Java application(fat jar) that runs on the Linux Ubuntu instance and fails from time to time. The application has embedded web server and exposes health check URL. I need to implement some ...
0
votes
0answers
36 views

Cross compiling to Raspberry Pi results in Error 127

I'm running from a PuTTY window which is connected to my Raspberry Pi, with Raspian (Stretch) installed. I'm executing sudo apt-get install mercurial hg clone http://hg.openjdk.java.net/dio/dev dio ...
0
votes
1answer
68 views

Fedora 28's “JDK” is missing the compiler, javac; How do I properly install it?

I installed a fresh download of Fedora Server 28 and it didn't come with Java. Fine. I ran yum list, and found some packages to install and installed all the most suitable looking JDK packages. ...
0
votes
1answer
50 views

Java installation failed

I am trying to install Java jdk 10 in my computer but it won't install. It is giving me an error saying: But, I can't find the Java installation that is running in the back end. I have tried to ...
0
votes
1answer
30 views

Why `apt-get purge` keeps trying to install things for me?

I try to purge the Oracle Java 8 JDK on Raspbian Stretch: sudo apt-get purge oracle-java8-jdk But it keeps trying to install replacements for me. For example, it keeps telling me "the following NEW ...
0
votes
0answers
15 views

java web start jre version check on client site

Based on https://www.java.com/js/deployJava.txt, I have tried both createWebStartLaunchButton(jnlp, minimumVersion) and createWebStartLaunchButtonEx(jnlp, minimumVersion). However, neither of them ...
0
votes
0answers
8 views

Java - bypass “permission to establish connections” prompt

I run a java platform in ubuntu like so: $ javaws http://platform.dukascopy.com/live_3/jforex_3.jnlp where a script needs to communicate via web requests with a remote server. After each run I have ...
0
votes
0answers
41 views

Even though Java seems to be installed, trying to get the Java version results in “cannot execute binary file: Exec format error”

I'm trying to install Java on my Ubuntu machine. When I run sudo apt-get install default-jre I get: Reading package lists... Done Building dependency tree Reading state information... Done ...
0
votes
1answer
16 views

Ant build in Intelliji won't run

I'm trying to run the Ant build but I'm not succeeding I can't even press the button of run it's completly greyed out
0
votes
0answers
94 views

Minecraft refuses to launch on ubuntu 16.04LTS

Recently, I installed Minecraft launcher 1.6.89-j on my Ubuntu 16.04LTS. However, whenever I click play, it goes through the downloads fine but when it tries to launch this error happens: java.lang....
1
vote
0answers
19 views

How do I combine multiple java (OpenJDK) buttons into a pile on the taskbar?

I found this answer for Oracle's Java runtime. But I am running ojdkbuild (OpenJDK) which doesn't seem to create the same registry entries. I have done a search for "isHostApp" & "java.exe" ...
0
votes
0answers
361 views

Not able to download Oracle's jdk-8u181 package using wget behind an HTTP proxy

(This is a copy of my question on Stack Overflow. I realized superuser may be the better place to ask this question.) I'm trying to use WebUpd8 team's oracle-java8-installer to install Java 8 on my ...
0
votes
2answers
595 views

Minecraft for Windows 10 can't connect to local server on LAN

Completed stock install of the java-based Minecraft server (version 1.13) on a Windows 10 machine #1. Forwarded ports, opened firewalls, and external "ping" sites confirm that they can see the server,...
0
votes
1answer
41 views

My bash script locks file when Java tries to read it

I have a bash script in Linux (CentOS) that redirects output to a file. It takes a few minutes to run: ./myBashScript.sh >> file.csv I have a java application that tries to read the file (only ...
0
votes
1answer
200 views

Applets do not work in Internet Explorer 11 [2018-07]

System: OS: fresh installed Windows 7 64 bit (with all updates installed). Browser: Internet Explorer 11 32 bit Java: 8 SE, 32 bit, build 181 (latest for now) CPU: Intel C2D IE Java plugin is ...
2
votes
0answers
59 views

Update Java version, Solaris 10

I'm trying to update Java version on Solaris 10. I have downloaded a tarball jre-8u73-solaris-x64.tar.gz. Using these commands: which java /usr/bin/java gzip -dc jre-8u73-solaris-x64.tar.gz | tar xf ...
0
votes
0answers
112 views

Electron not loading on localhost interface while 'switching' network adapters

I'm trying to load a software package built around the Electron framework (Java) on a local PC. On startup, the computer uses a specific tool to start a virtual hotspot in Windows (using netsh start ...
0
votes
0answers
186 views

Java applications scaling issue on Windows 10

I have a strange issue on my Windows 10 laptop with scaling for Java applications, it might be other applications too but I've noticed it mainly with Java Jar files. When I set my scaling to 100% the ...
0
votes
1answer
29 views

Keep the mouse active after disconnecting from remote desktop

I'm running a Java program that uses the auto mouse clicker to function. It works fine when the remote desktop client is opened on my screen but as soon as I minimize it or close the remote ...
0
votes
1answer
32 views

Get “Java Update Needed” message back

I have a user who clicked the wrong thing on this Java message: He checked the checkbox and now I don't now how to get this message back. I tried deleting the IE and Java cache and I restored the ...
0
votes
0answers
137 views

Windows 7 Jar not running with double click

I have the following problem: I wrote a program in Java for a community and they're trying to run it. They installed Java and tried double clicking it but nothing happened. Under my remote ...
0
votes
1answer
99 views

Need to merge two ffmpeg commands

I didn't understand how to concat these two commands: Object split = ("-i "+filePath+" -framerate 30000/1001 -i "+Final.theme+" -filter_complex [1:v]fade=out:st=30:d=1:alpha=1[ov];[0:v][ov]overlay=10:...
0
votes
0answers
10 views

how to recognize proxy usage?

I have a site written in java. I am java programmer and I can check any request to my site. I have many users and some of them are banned by IP because violation of some the rules. The problem is that ...
0
votes
0answers
12 views

How to upload Java archive (.WAR) to Windows Server on Plesk?

I am able to create a .WAR archive of my Java project from Eclipse. This is what I tried: Plesk Home Page -> Domains -> example.com -> Java Applications -> Install Java Application But ...
0
votes
0answers
8 views

jdk isn't showing on ubuntu [duplicate]

I have openjdk installed on my Ubuntu 18.04 and I want to add oracle jdk-1.8. The standard location is /usr/lib/jvm. I copied the file there and ran ilan@ilan-Lenovo-G585:/usr/lib/jvm$ sudo tar zxvf ...
1
vote
1answer
38 views

Run artifact (.jar) in Eclipse after Maven build success

I'm working on a Maven project, and after resolving many configuration problems, finally I am able to build the project successfully in Eclipse. After selecting maven install and seeing build success, ...
0
votes
0answers
95 views

Fiji 3D viewer requires OpenGL 1.2

When Opening the 3D viewer of Fiji, I am getting the following error: 3D [dev] 1.6.0-scijava-2-pre11-daily-experimental daily org.scijava.java3d.IllegalRenderingStateException: Java 3D ERROR : ...
1
vote
2answers
1k views

Why can't I open SQL Developer when I have Java 10 installed?

In my Mac terminal: $ javac -version javac 10.0.1 I open SQL Developer and get this dialog: SQL Developer requires a minimum of Java 8. Java 8 can be downloaded from: http://www.oracle.com/...
0
votes
0answers
87 views

Weird Minecraft Auth server bug

I have a Minecraft server running on my Linux system that is running Ubuntu 18.04 running Java 11 and i'm having an issue. My problem is when I have my server.properties online-mode set to true, the ...