Skip to main content
1293 votes
46 answers
1.6m views

I have some code that uses JAXB API classes which have been provided as a part of the JDK in Java 6/7/8. When I run the same code with Java 9, at runtime I get errors indicating that JAXB classes can ...
Andy Guibert's user avatar
  • 43.2k
181 votes
11 answers
371k views

I have a trivial Maven project: src └── main └── java └── module-info.java pom.xml pom.xml: <groupId>org.example</groupId> <artifactId>example</artifactId> <...
ZhekaKozlov's user avatar
  • 40.1k
792 votes
1 answer
76k views

For a challenge, a fellow code golfer wrote the following code: import java.util.*; public class Main { public static void main(String[] args) { int size = 3; String[] array = new String[...
Olivier Grégoire's user avatar
85 votes
10 answers
87k views

I'm developing on a Maven project (branch platform-bom_brussels-sr7) in Eclipse. When I recently tried switching the Java Build Path for the project to JDK 10, Eclipse build can no longer find ...
Carsten's user avatar
  • 4,344
79 votes
12 answers
166k views

I'm trying to compile my maven project using Java 10 but I'm having trouble. In my IDE (IntelliJ IDEA) everything compiles and runs just fine under Java 10. I installed the latest maven version 3.5.4 ...
BullyWiiPlaza's user avatar
75 votes
7 answers
112k views

How do I install Java Development Kit (JDK) 10 on Ubuntu? The installation instructions on Oracle's help center only explain how to download and extract the archive on Linux platform, without any ...
Sam's user avatar
  • 12.1k
79 votes
7 answers
10k views

It is allowed to assign var in Java 10 with a string like: var foo = "boo"; While it is not allowed to assign it with a lambda expression such as: var predicateVar = apple -> apple.getColor()....
hi.nitish's user avatar
  • 3,034
34 votes
7 answers
20k views

TLDR: On Java 9/10, a web app in Tomcat has no access to JAXB even though its reference implementation is present on the class path. Edit: No, this is not a duplicate of How to resolve java.lang....
Nicolai Parlog's user avatar
29 votes
5 answers
81k views

I am trying to start a server using jre 10.0.1 64 bit. There is an obvious change in the settings for the JVM in windows start batch files. With the setting of -XX:+UseParNewGC as the reference point ...
Javacodeman113's user avatar
51 votes
4 answers
12k views

I have code and a test-case in a legacy application, which can be summarized as follows: @Test public void testParseDate() throws ParseException { String toParse = "Mo Aug 18 11:25:26 MESZ +...
rzo1's user avatar
  • 5,776
40 votes
4 answers
109k views

Folks - I am facing challenges while trying to uninstall JDK from my MAC (macOS High Sierra Version 10.13.4 - 17E199). I have two JDK instances installed and I want to uninstall both of them. I am ...
Shivank Sharma's user avatar
52 votes
4 answers
51k views

We are looking at upgrading some legacy code to Java 10. As JAXB is not visible by default (EDIT: and the proper long term solution is not to circumvent the symptom using various JVM flags, but fix ...
Thorbjørn Ravn Andersen's user avatar
22 votes
2 answers
58k views

I have installed the Eclipse [Version: Photon Release (4.8.0)] and JDK 10 on a MacBookPro with macOS 10.13.5 When I write in my code: import java.awt.*; I get the error: The import java.awt ...
Livio's user avatar
  • 299
28 votes
3 answers
20k views

IntelliJ shows type hints for local variables in Kotlin as shown here: This makes it easy to see the type of variables even if their types are inferred. Java 10 introduces type inference for Java ...
sirain's user avatar
  • 1,198
-1 votes
2 answers
69 views

I checked out the Java 10 option of "use local variable type inference" (JEP 286), but I think it is terrible to replace all type information with just the keyword var - was so much better ...
beagle's user avatar
  • 154

15 30 50 per page
1
2 3 4 5
27