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.

(Adapted from Wikipedia)

Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture. Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired by Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them.

879 questions
4
votes
2 answers

Lots of processes killed by SIGTRAP

Since yesterday, my Linux (Fedora 20) randomly kills processes for no reason at all (at least from my point of view), and the bugs reports say that all these processes are "killed by SIGTRAP". It happens with evolution, gls, the weather app, Google…
Zarkus13
  • 151
3
votes
2 answers

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 have tried different things like adding…
fasolal
  • 31
3
votes
1 answer

Setting classpath for Java

I was trying to use a tool a tool written in java called "fastqc" (for people who are interested in what is fastqc. when I tried typing the command :" fastqc" I got the error: Exception in thread "main" java.lang.NoClassDefFoundError:…
Jun
  • 531
2
votes
2 answers

is it possible install jdk from local using sdkman

Now I am using sdkman to install jdk from internet failed, because of the network access problem, I could not install jdk. Now I want to using sdkman instal sdk from local. I think the procedure would like this: download jdk tar.gz file from…
Dolphin
  • 609
2
votes
2 answers

Error 404 on JDK Download Debian 8

I'm trying to dowload and install the JDK 8 on my debian with the following command: apt-get install oracle-java8-installer This is the log I get: [...] Do you want to continue? [Y/n] Y Setting up oracle-java8-installer (8u191-1~webupd8~1)…
Gerolmed
  • 145
  • 6
2
votes
1 answer

How to set jsse.enableSNIExtension to false when running Java programs?

I am trying to set the Java system property jsse.enableSNIExtension to false, but when I try running this java just outputs help information: java -Djsse.enableSNIExtension=false What am I doing wrong?
mibzer
  • 1,032
2
votes
1 answer

JRE in Kubuntu doesn't allow me to run .jar file

I am having trouble trying to run a .jar application on Kubuntu. I created an application in NetBeans in Windows and compiled it into a .jar file. First Windows couldn't find the main class. I searched the internet and fixed some registry values for…
Michael
  • 55
2
votes
2 answers

How to emulate Oracle Java with OpenJDK?

I have a java app, which does not wont to work: Please install Java JRE 1.7.0_45 or a more recent version I think it checks java version and vendor. Does openJDK have special option to emulate vendor. I don't want to install Oracle Java. Here is my…
kyb
  • 420
2
votes
1 answer

How to run a .jar file? No main class found

How do I run a jar file? I tried this : java iCChecker.jar but I got next trace : Exception in thread "main" java.lang.NoClassDefFoundError: iCChecker/jar Caused by: java.lang.ClassNotFoundException: iCChecker.jar at…
1
vote
0 answers

is it possible to use sdkman download specify version of jdk

Now I could using sdkman to install java like this: sdk list java sdk install java 8.0.265.hs-adpt but sometimes I just want to download specify version of java, I just want to use jdk to build docker image. Is it possible to download specify…
Dolphin
  • 609
1
vote
1 answer

Java error running Docear on Mint

I have installed Docear on Mint following the xenial instructions given here: https://howto-ubuntunew.blogspot.com/2017/02/how-to-install-docear-12-on-ubuntu-1604.html Running $ docear gives me these error messages: Knopflerfish OSGi framework,…
1
vote
2 answers

Any way to force all java applications to use a particular java setting?

I need to add -Dsun.java2d.opengl=true to my java applications, otherwise they freeze up. Is there any way to force this system wide, so I don't have to modify the configuration file/script of each java application?
Šimon Tóth
  • 8,238
1
vote
1 answer

JRE failed even after open jdk as well as oracle ... using ubuntu14.04

$ sudo update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority …
Ajay
  • 11
1
vote
1 answer

Java fails with “Could not find the main class”

I want to run a jar file in Linux (CentOS, 32-bit). But the following error occurs. What is the reason? [root@server ~]# java -jar keygen.jar Exception in thread "main" java.lang.UnsupportedClassVersionError: org/dgt/jl/App : Unsupported major.minor…
user204570
0
votes
2 answers

TCLBLEND FAILURE - Centos 6.4

I have been trying to use a home grown test tool and after doing an update to Centos 6.4, I am no longer able to run the tcl based tool. I am getting the following error and I have no internet access on this server. How do I solve this…
1
2 3