Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can't select JDK 11 as Java Home for WebLogic 14

3746158May 13 2020 — edited Sep 11 2020

I have WebLogic 14 installed and running under a JDK 11.0.7.

The application we wish to deploy during development via the WebLogic Server Tools is being compiled using the same JDK and targeting Java 11.

However, when setting up the server in the server tools I'm unable to select the JDK 11 as the Java Home. There is a message that says:

 Java Development Kit (JDK) is required rather than a JRE

2020-05-13 14_01_00-workspace - Oracle WebLogic Server 14  (12.2.1.4) [base_domain] - Eclipse IDE.png

The full JDK is being used, it is not just a JRE. It will not let me select a JDK 11, I can select a JDK 8 home but because the application is compiled for JDK 11 it will not let me add the application to the server. I have checked the process list and although the server tools think it is using JDK WebLogic is actually running under JDK 11 but because the Eclipse Weblogic server tools 'thinks' it is JDK 8 I can't add the application to the server.

If I could select JDK as the java home for the server runtime I would expect it would let me add the application to the server.

Is OEPE going to support JDK 11 as WebLogic 14 is now released? Our company is looking to upgrade to WebLogic 14 but first we need to make sure our application can be developed while running under WebLogic 14.

Comments

NickR2600-Oracle

Sounds like you might be interested in Java Regular Expressions (regex) and pattern matching.  I've found regular expressions useful for formatting and searching Strings and numbers. There is a tutorial from Oracle (https://docs.oracle.com/javase/tutorial/essential/regex/ ).  I've also had luck googling for regular expression examples, since there's so many tricks, options, characters to keep track of.

mNem
Answer

I am using something like the one below. I don't know if that is going to help in

I am interested in tidying up the output to do the following:

  1. Strings and value in two separate columns (???)

 

public void printDetails() {

      System.out.println(String.format("Account Owner: %s", accountOwner));

      System.out.println(String.format("Account Type: %s", accountType));

      DecimalFormat df = new DecimalFormat("$ #,##0.00");

      String formattedBal = df.format(balance);

      System.out.println(String.format("Balance for customer [%s]:  %s", accountOwner, formattedBal));

}

Marked as Answer by OTG-467455 · Sep 27 2020
1 - 2

Post Details

Added on May 13 2020
5 comments
2,753 views