Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #38002

Re: Java 9

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Java 9
Date 2018-01-25 20:16 -0500
Organization Aioe.org NNTP Server
Message-ID <p4dvh9$n10$1@gioia.aioe.org> (permalink)
References <31ae5b61-c6df-4c97-91e7-c33fa9571822@googlegroups.com> <c589f66d-9076-4bb5-9839-f2e9c08d1199@googlegroups.com>

Show all headers | View raw


On 1/25/2018 4:10 PM, Eric Douglas wrote:
> On Thursday, January 25, 2018 at 4:04:12 PM UTC-5, Eric Douglas wrote:
>> I'm looking for
>> sun.swing.SwingUtilities2.liesInVertical(Rectangle rect, Point p, boolean three)
>> sun.swing.SwingUtilities2.getTreePath(TreeModelEvent event, TreeModel model)
>>
>> and org.w3c.dom classes for use with batik's SVG generator.
> 
> SwingUtilities2 is not available in JDK 9, and I can't find it anywhere other than rt.jar from Java 8.

My Java 8 gives me:

"warning: SwingUtilities2 is internal proprietary API and may be removed 
in a future release"

Look like they meant that!

:-)

If you want the Java 8 behavior in Java 9 then you can use:

javac --add-exports java.desktop/sun.swing=ALL-UNNAMED ...
java --add-exports java.desktop/sun.swing=ALL-UNNAMED ...

But maybe you should rewrite.

> The error on the dom is actually "The package org.w3c.dom is accessible from more than one module"

How does the code that gives this error look like?

Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Java 9 Eric Douglas <e.d.programmer@gmail.com> - 2018-01-25 13:03 -0800
  Re: Java 9 Eric Douglas <e.d.programmer@gmail.com> - 2018-01-25 13:10 -0800
    Re: Java 9 Arne Vajhøj <arne@vajhoej.dk> - 2018-01-25 20:16 -0500
      Re: Java 9 Eric Douglas <e.d.programmer@gmail.com> - 2018-01-26 06:43 -0800
  Re: Java 9 Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-01-25 17:09 -0500
    Re: Java 9 Arne Vajhøj <arne@vajhoej.dk> - 2018-01-25 20:00 -0500
    Re: Java 9 Eric Douglas <e.d.programmer@gmail.com> - 2018-01-26 06:16 -0800
      Re: Java 9 Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-01-26 09:37 -0500
  Re: Java 9 Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2018-01-25 17:23 -0600
    Re: Java 9 Hiram Hunt <hiramhunt@verizon.net> - 2018-01-26 08:31 -0500
      Re: Java 9 Eric Douglas <e.d.programmer@gmail.com> - 2018-01-26 06:06 -0800
        Re: Java 9 Kiwi User <martin@mydomain.invalid> - 2018-01-26 15:18 +0000

csiph-web