Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-31 Thread Geertjan Wielenga
Hmmm. The latter two are completely new use cases that you've mentioned now for the first time. :-) Does the use case that we were talking about at the start of this thread, I guess, the first of the three, now work in the way that you expected? And since you now have 10-vc2 set up, can you fill

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-31 Thread Emma Atkinson
Hi Geertjan Thank you for your email. I tried it out in a few ways. Test 1 I build my test app which looks almost identical to yours. I set project properties to use JDK-11 for both source and build I found the application built and ran within the Netbeans environment with Netbeans 10vc2 using

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-31 Thread Geertjan Wielenga
For me, it works, I can use the module-path, together with this in module-info: module org.mycompany { requires org.apache.logging.log4j; } And this in the Java source file: import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class MyApp { public st

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-31 Thread Geertjan Wielenga
Hi Emma, Please confirm that your scenario works now in 10vc2: https://cwiki.apache.org/confluence/display/NETBEANS/10vc2 Gj On Thu, Oct 4, 2018 at 11:56 AM Emma Atkinson wrote: > Hey guys, > What a lovely surprise! I was just about to begin working out the command > line options. > > I'll ta

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-04 Thread Emma Atkinson
Hey guys, What a lovely surprise! I was just about to begin working out the command line options. I'll take a look at the pull request to see if I can learn something. Thank you (Denk u wel) Emma On 08:11, Thu, 4 Oct 2018 Geertjan Wielenga, wrote: > https://github.com/apache/incubator-netbeans

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-04 Thread Geertjan Wielenga
https://github.com/apache/incubator-netbeans/pull/941 We've identified the problem and done work on fixing it. Gj On Thu, Oct 4, 2018 at 10:03 AM Pete Whelpton wrote: > Sorry, typo: > > 5) Navigate to your Classes node -> , open > module-info.java and add the following line: >requires org.

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-04 Thread Pete Whelpton
Sorry, typo: 5) Navigate to your Classes node -> , open module-info.java and add the following line: requires org.apache.logging.log4j.core; should say: 5) Navigate to your Classes node -> , open module-info.java and add the following line: requires *org.apache.logging.log4j*; On Thu, Oct

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-04 Thread Pete Whelpton
Hi Emma, Yes, I think there is something awry with the log4j-api-2.11.1.jar. To get it working just using ModulePath, I first: 1) Opened the log4j-api-2.11.1.jar file in Archive Manager 2) Copied the module-info.class file from /META-INF/versions/9/ folder to the root of the archive After both

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-04 Thread Geertjan Wielenga
https://github.com/apache/incubator-netbeans/pull/941 We've identified the problem and done work on fixing it. Gj On Wed, Oct 3, 2018 at 1:55 PM Emma Atkinson wrote: > I will try without using Netbeans but I do not have time to work on this > until tomorrow. > Thank you for devoting your time

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-03 Thread Emma Atkinson
I will try without using Netbeans but I do not have time to work on this until tomorrow. Thank you for devoting your time to helping me solve this. Emma On Wed, 3 Oct 2018 at 12:29, Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > Well, I'd suggest to first get it to work without

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-03 Thread Geertjan Wielenga
What I mean is that a starting point is to see whether what you've done works on the command line. I.e., forget NetBeans for the moment and try and build and run your solution on the command line and see if that works. Gj On Wed, Oct 3, 2018 at 1:51 PM Emma Atkinson wrote: > To recreate the tes

Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-03 Thread Emma Atkinson
To recreate the test case and Netbeans set up. - I created a Java Application using the new project function. I set it up to run on JDK 10. - I added a module-info.java file using a RMB on Project Navigator > Log4j2TestCase > Source Packages > New > Java Module Info... - I crea

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-03 Thread Geertjan Wielenga
Well, I'd suggest to first get it to work without any tooling at all. I.e., forget NetBeans for the moment and use the command line to set up a simple Java 9 multi-release app that makes use of Log4J. Possibly the problem is with Log4J and that's what you can find out by creating such an applicatio

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-03 Thread Emma Atkinson
Screenshot.png shows how I have set up Netbeans. I think you can see everything. I normally use the *import* org.apache.logging.log4j.Logger and *import* org.apache.logging.log4j.LogManager. The Log4j2 module-info.class file exports *org.apache.logging.log4j*. I have committed a version of the

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-03 Thread Geertjan Wielenga
OK, I believe this is the name of the JAR: log4j-api-2.11.1.jar Just trying to guess how to set up the project, i.e., guessing where to get the JARs from and which specific one to use. Gj On Wed, Oct 3, 2018 at 12:15 PM Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > I also see t

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-03 Thread Geertjan Wielenga
I also see this on https://logging.apache.org/log4j/2.0/download.html: To use Log4j 2 in your application make sure that both the API and Core jars are in the application’s classpath. Add the dependencies listed below to your classpath. 1. log4j-api-2.11.1.jar 2. log4j-core-2.11.1.jar I

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-03 Thread Geertjan Wielenga
Shouldn't the import statements be this: import org.apache.log4j.LogManager; import org.apache.log4j.Logger; ...and not this: import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; ...if you're using log4j-1.2-api-2.11.1.jar? Gj On Wed, Oct 3, 2018 at 11:56 AM Em

Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-03 Thread Emma Atkinson
I cannot find a way to make this work, I hope you can help. I should be happy to be pointed to an existing answer *The Problem* I have a very simple Java application demonstrating the problem I am having with using the latest Log4j2 V2.11.1 as a module (log4j.api) and building it in Netbeans. Th