Re: tools.jar …
I see. Thank you very much for your time and support Best, Juan Miguel El 12 ago 2018 14:10 +0200, Geertjan Wielenga , escribió: > The real question here is not about NetBeans, but about JDK 10. NetBeans > simply provides a UI on top of the JDK. So, in short how does JDK 10 support > your WSDL scenario? If JDK 10 does not support your scenario, then neither > can NetBeans. > > Gj > > > > On Sun, Aug 12, 2018 at 2:07 PM, Juan Escribano > > wrote: > > > Step by step: > > > The project is a Web Service Client: > > > > > > Create a empty Java application project, with no main class. > > > Create a new web service client with WSDL URL: > > > https://www.agenciatributaria.es/static_files/AEAT/Contenidos_Comunes/La_Agencia_Tributaria/Modelos_y_formularios/Suministro_inmediato_informacion/FicherosSuministros/V_1_1/SuministroFactEmitidas.wsdl > > > > > > And in Netbeans Output window I have: > > > > > > ant -f /Users/juan/NetBeansProjects/AeatSIIWS2 > > > wsimport-client-SuministroFactEmitidas > > > init: > > > wsimport-init: > > > Created dir: > > > /Users/juan/NetBeansProjects/AeatSIIWS2/build/generated-sources/jax-ws > > > wsimport-client-SuministroFactEmitidas: > > > Created dir: > > > /Users/juan/NetBeansProjects/AeatSIIWS2/build/generated/jax-wsCache/SuministroFactEmitidas > > > /Users/juan/NetBeansProjects/AeatSIIWS2/nbproject/jaxws-build.xml:22: > > > java.lang.ClassNotFoundException: JDK's tools.jar was not found in > > > /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/lib/tools.jar. > > > Usually this means you are running JRE, not JDK. Please use the java > > > command in JDK 5.0 or later (not JRE.) > > > at > > > com.sun.tools.ws.ant.WrapperTask.createClassLoader(WrapperTask.java:106) > > > ... > > > > > > Best, > > > Juan Miguel > > > El 11 ago 2018 20:45 +0200, Geertjan Wielenga > > > , escribió: > > > > On the other hand, it's possible that some of the features in NetBeans > > > > may use the JDK on which NetBeans runs, rather than the JDK on which > > > > your Java project runs, e.g., JAX-WS related tools, which seems to be > > > > what you're using. If you can provide step by step instructions here or > > > > in an issue, someone can try to reproduce the problem. > > > > > > > > > On Sat, Aug 11, 2018 at 6:12 PM, Geertjan Wielenga > > > > > wrote: > > > > > > Clearly that's not the case, when you look at the error message you > > > > > > sent. > > > > > > > > > > > > What are the steps you're taking to produce that error, really from > > > > > > scratch, from the very beginning of the process, so that someone > > > > > > can reproduce it. > > > > > > > > > > > > Gj > > > > > > > > > > > > > > > > > > > > > > > > > On Sat, Aug 11, 2018 at 4:27 PM, Juan Escribano > > > > > > > wrote: > > > > > > > > That's how I thought it should work, but the project has JDK > > > > > > > > 1.8 both in Properties -> Libraries -> Java Platform as in > > > > > > > > Properties -> Sources -> Source/Binary format… > > > > > > > > Any other place where I have to look for? > > > > > > > > > > > > > > > > Best, > > > > > > > > Juan Miguel > > > > > > > > El 11 ago 2018 14:28 +0200, Geertjan Wielenga > > > > > > > > , escribió: > > > > > > > > > The JDK that you use to run NetBeans has nothing to do with > > > > > > > > > the JDK that you use to run your projects. Each of your > > > > > > > > > projects can use a different JDK. It souns like you need to > > > > > > > > > go to the Project Properties dialog of your project in > > > > > > > > > NetBeans and set JDK 8 as the JDK to use for that project. > > > > > > > > > > > > > > > > > > Gj > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Saturday, August 11, 2018, Juan Escribano > > > > > > > > > wrote: > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > As you know Java 9/10 do not include tools.jar in lib > > > > > > > > > > directory anymore. > > > > > > > > > > > > > > > > > > > > But if i’m trying to compile a project based on Java 1.8 > > > > > > > > > > wich has tools.jar (using Netbeans 9.0 running over Java > > > > > > > > > > 10), how can I avoid the following error?: > > > > > > > > > > > > > > > > > > > > .../nbproject/jaxws-build.xml:22: > > > > > > > > > > java.lang.ClassNotFoundException: JDK's tools.jar was not > > > > > > > > > > found in > > > > > > > > > > /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/lib/tools.jar. > > > > > > > > > > Usually this means you are running JRE, not JDK. Please > > > > > > > > > > use the java command in JDK 5.0 or later (not JRE.) > > > > > > > > > > at > > > > > > > > > > com.sun.tools.ws.ant.WrapperTask.createClassLoader(WrapperTask.java:106) > > > > > > > > > > at > > > > > > > > > > com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:46) > > > > > > > > > > at > > > > > > > > > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > > > > > > > > > > at > > > > > > > > > > jdk.internal.ref
Re: tools.jar …
The real question here is not about NetBeans, but about JDK 10. NetBeans simply provides a UI on top of the JDK. So, in short how does JDK 10 support your WSDL scenario? If JDK 10 does not support your scenario, then neither can NetBeans. Gj On Sun, Aug 12, 2018 at 2:07 PM, Juan Escribano wrote: > Step by step: > The project is a Web Service Client: > > Create a empty Java application project, with no main class. > Create a new web service client with WSDL URL: https://www. > agenciatributaria.es/static_files/AEAT/Contenidos_Comunes/ > La_Agencia_Tributaria/Modelos_y_formularios/Suministro_ > inmediato_informacion/FicherosSuministros/V_1_1/ > SuministroFactEmitidas.wsdl > > And in Netbeans Output window I have: > > ant -f /Users/juan/NetBeansProjects/AeatSIIWS2 wsimport-client- > SuministroFactEmitidas > init: > wsimport-init: > Created dir: /Users/juan/NetBeansProjects/AeatSIIWS2/build/generated- > sources/jax-ws > wsimport-client-SuministroFactEmitidas: > Created dir: /Users/juan/NetBeansProjects/AeatSIIWS2/build/generated/ > jax-wsCache/SuministroFactEmitidas > /Users/juan/NetBeansProjects/AeatSIIWS2/nbproject/jaxws-build.xml:22: > java.lang.ClassNotFoundException: JDK's tools.jar was not found in > /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/lib/tools.jar. > Usually this means you are running JRE, not JDK. Please use the java > command in JDK 5.0 or later (not JRE.) > at com.sun.tools.ws.ant.WrapperTask.createClassLoader( > WrapperTask.java:106) > ... > > Best, > *Juan Miguel* > El 11 ago 2018 20:45 +0200, Geertjan Wielenga > , escribió: > > On the other hand, it's possible that some of the features in NetBeans may > use the JDK on which NetBeans runs, rather than the JDK on which your Java > project runs, e.g., JAX-WS related tools, which seems to be what you're > using. If you can provide step by step instructions here or in an issue, > someone can try to reproduce the problem. > > On Sat, Aug 11, 2018 at 6:12 PM, Geertjan Wielenga < > geertjan.wiele...@googlemail.com> wrote: > >> Clearly that's not the case, when you look at the error message you sent. >> >> What are the steps you're taking to produce that error, really from >> scratch, from the very beginning of the process, so that someone can >> reproduce it. >> >> Gj >> >> >> >> On Sat, Aug 11, 2018 at 4:27 PM, Juan Escribano >> wrote: >> >>> That's how I thought it should work, but the project has JDK 1.8 both in >>> Properties -> Libraries -> Java Platform as in Properties -> Sources -> >>> Source/Binary format… >>> Any other place where I have to look for? >>> >>> Best, >>> *Juan Miguel* >>> El 11 ago 2018 14:28 +0200, Geertjan Wielenga >>> , escribió: >>> >>> The JDK that you use to run NetBeans has nothing to do with the JDK that >>> you use to run your projects. Each of your projects can use a different >>> JDK. It souns like you need to go to the Project Properties dialog of your >>> project in NetBeans and set JDK 8 as the JDK to use for that project. >>> >>> Gj >>> >>> >>> >>> On Saturday, August 11, 2018, Juan Escribano >>> wrote: >>> Hi, As you know Java 9/10 do not include tools.jar in lib directory anymore. But if i’m trying to compile a project based on Java 1.8 wich has tools.jar (using Netbeans 9.0 running over Java 10), how can I avoid the following error?: .../nbproject/jaxws-build.xml:22: java.lang.ClassNotFoundException: JDK's tools.jar was not found in /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/lib/tools.jar. Usually this means you are running JRE, not JDK. Please use the java command in JDK 5.0 or later (not JRE.) at com.sun.tools.ws.ant.WrapperTask.createClassLoader(WrapperTa sk.java:106) at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:46) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:99) at org.apache.tools.ant.Task.perform(Task.java:350) at org.apache.tools.ant.Target.execute(Target.java:449) at org.apache.tools.ant.Target.performTasks(Target.java:470) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:36) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. invo
Re: tools.jar …
Step by step: The project is a Web Service Client: Create a empty Java application project, with no main class. Create a new web service client with WSDL URL: https://www.agenciatributaria.es/static_files/AEAT/Contenidos_Comunes/La_Agencia_Tributaria/Modelos_y_formularios/Suministro_inmediato_informacion/FicherosSuministros/V_1_1/SuministroFactEmitidas.wsdl And in Netbeans Output window I have: ant -f /Users/juan/NetBeansProjects/AeatSIIWS2 wsimport-client-SuministroFactEmitidas init: wsimport-init: Created dir: /Users/juan/NetBeansProjects/AeatSIIWS2/build/generated-sources/jax-ws wsimport-client-SuministroFactEmitidas: Created dir: /Users/juan/NetBeansProjects/AeatSIIWS2/build/generated/jax-wsCache/SuministroFactEmitidas /Users/juan/NetBeansProjects/AeatSIIWS2/nbproject/jaxws-build.xml:22: java.lang.ClassNotFoundException: JDK's tools.jar was not found in /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/lib/tools.jar. Usually this means you are running JRE, not JDK. Please use the java command in JDK 5.0 or later (not JRE.) at com.sun.tools.ws.ant.WrapperTask.createClassLoader(WrapperTask.java:106) ... Best, Juan Miguel El 11 ago 2018 20:45 +0200, Geertjan Wielenga , escribió: > On the other hand, it's possible that some of the features in NetBeans may > use the JDK on which NetBeans runs, rather than the JDK on which your Java > project runs, e.g., JAX-WS related tools, which seems to be what you're > using. If you can provide step by step instructions here or in an issue, > someone can try to reproduce the problem. > > > On Sat, Aug 11, 2018 at 6:12 PM, Geertjan Wielenga > > wrote: > > > Clearly that's not the case, when you look at the error message you sent. > > > > > > What are the steps you're taking to produce that error, really from > > > scratch, from the very beginning of the process, so that someone can > > > reproduce it. > > > > > > Gj > > > > > > > > > > > > > On Sat, Aug 11, 2018 at 4:27 PM, Juan Escribano > > > > wrote: > > > > > That's how I thought it should work, but the project has JDK 1.8 both > > > > > in Properties -> Libraries -> Java Platform as in Properties -> > > > > > Sources -> Source/Binary format… > > > > > Any other place where I have to look for? > > > > > > > > > > Best, > > > > > Juan Miguel > > > > > El 11 ago 2018 14:28 +0200, Geertjan Wielenga > > > > > , escribió: > > > > > > The JDK that you use to run NetBeans has nothing to do with the JDK > > > > > > that you use to run your projects. Each of your projects can use a > > > > > > different JDK. It souns like you need to go to the Project > > > > > > Properties dialog of your project in NetBeans and set JDK 8 as the > > > > > > JDK to use for that project. > > > > > > > > > > > > Gj > > > > > > > > > > > > > > > > > > > > > > > > On Saturday, August 11, 2018, Juan Escribano > > > > > > wrote: > > > > > > > Hi, > > > > > > > > > > > > > > As you know Java 9/10 do not include tools.jar in lib directory > > > > > > > anymore. > > > > > > > > > > > > > > But if i’m trying to compile a project based on Java 1.8 wich has > > > > > > > tools.jar (using Netbeans 9.0 running over Java 10), how can I > > > > > > > avoid the following error?: > > > > > > > > > > > > > > .../nbproject/jaxws-build.xml:22: > > > > > > > java.lang.ClassNotFoundException: JDK's tools.jar was not found > > > > > > > in > > > > > > > /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/lib/tools.jar. > > > > > > > Usually this means you are running JRE, not JDK. Please use the > > > > > > > java command in JDK 5.0 or later (not JRE.) > > > > > > > at > > > > > > > com.sun.tools.ws.ant.WrapperTask.createClassLoader(WrapperTask.java:106) > > > > > > > at > > > > > > > com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:46) > > > > > > > at > > > > > > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > > > > > > > at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown > > > > > > > Source) > > > > > > > at > > > > > > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > > > > > > at java.base/java.lang.reflect.Method.invoke(Method.java:564) > > > > > > > at > > > > > > > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) > > > > > > > at org.apache.tools.ant.Task.perform(Task.java:350) > > > > > > > at org.apache.tools.ant.Target.execute(Target.java:449) > > > > > > > at org.apache.tools.ant.Target.performTasks(Target.java:470) > > > > > > > at > > > > > > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) > > > > > > > at > > > > > > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36) > > > > > > > at org.apache.tools.ant.Project.executeTargets(Project.java:1251) > > > > > > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) > > > > > > > at > > > > > > > org.apache.tools.ant.UnknownElement.execute
Re: tools.jar …
On the other hand, it's possible that some of the features in NetBeans may use the JDK on which NetBeans runs, rather than the JDK on which your Java project runs, e.g., JAX-WS related tools, which seems to be what you're using. If you can provide step by step instructions here or in an issue, someone can try to reproduce the problem. On Sat, Aug 11, 2018 at 6:12 PM, Geertjan Wielenga < geertjan.wiele...@googlemail.com> wrote: > Clearly that's not the case, when you look at the error message you sent. > > What are the steps you're taking to produce that error, really from > scratch, from the very beginning of the process, so that someone can > reproduce it. > > Gj > > > > On Sat, Aug 11, 2018 at 4:27 PM, Juan Escribano > wrote: > >> That's how I thought it should work, but the project has JDK 1.8 both in >> Properties -> Libraries -> Java Platform as in Properties -> Sources -> >> Source/Binary format… >> Any other place where I have to look for? >> >> Best, >> *Juan Miguel* >> El 11 ago 2018 14:28 +0200, Geertjan Wielenga >> , escribió: >> >> The JDK that you use to run NetBeans has nothing to do with the JDK that >> you use to run your projects. Each of your projects can use a different >> JDK. It souns like you need to go to the Project Properties dialog of your >> project in NetBeans and set JDK 8 as the JDK to use for that project. >> >> Gj >> >> >> >> On Saturday, August 11, 2018, Juan Escribano >> wrote: >> >>> Hi, >>> >>> As you know Java 9/10 do not include tools.jar in lib directory anymore. >>> >>> But if i’m trying to compile a project based on Java 1.8 wich has >>> tools.jar (using Netbeans 9.0 running over Java 10), how can I avoid the >>> following error?: >>> >>> .../nbproject/jaxws-build.xml:22: >>> java.lang.ClassNotFoundException: JDK's tools.jar was not found in >>> /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/lib/tools.jar. >>> Usually this means you are running JRE, not JDK. Please use the java >>> command in JDK 5.0 or later (not JRE.) >>> at com.sun.tools.ws.ant.WrapperTask.createClassLoader(WrapperTa >>> sk.java:106) >>> at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:46) >>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) >>> at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) >>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. >>> invoke(DelegatingMethodAccessorImpl.java:43) >>> at java.base/java.lang.reflect.Method.invoke(Method.java:564) >>> at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch >>> Utils.java:99) >>> at org.apache.tools.ant.Task.perform(Task.java:350) >>> at org.apache.tools.ant.Target.execute(Target.java:449) >>> at org.apache.tools.ant.Target.performTasks(Target.java:470) >>> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) >>> at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge >>> ts(SingleCheckExecutor.java:36) >>> at org.apache.tools.ant.Project.executeTargets(Project.java:1251) >>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) >>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) >>> at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) >>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. >>> invoke(DelegatingMethodAccessorImpl.java:43) >>> at java.base/java.lang.reflect.Method.invoke(Method.java:564) >>> at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch >>> Utils.java:99) >>> at org.apache.tools.ant.Task.perform(Task.java:350) >>> at org.apache.tools.ant.Target.execute(Target.java:449) >>> at org.apache.tools.ant.Target.performTasks(Target.java:470) >>> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) >>> at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge >>> ts(SingleCheckExecutor.java:36) >>> at org.apache.tools.ant.Project.executeTargets(Project.java:1251) >>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) >>> at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) >>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) >>> at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) >>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. >>> invoke(DelegatingMethodAccessorImpl.java:43) >>> at java.base/java.lang.reflect.Method.invoke(Method.java:564) >>> at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch >>> Utils.java:99) >>> at org.apache.tools.ant.Task.perform(Task.java:350) >>> at org.apache.tools.ant.Target.execute(Target.java:449) >>> at org.apache.tools.ant.Target.performTasks(Target.java:470) >>> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) >>> at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge >>> ts(SingleCheckExecutor.java:36) >>> at org.apache.tools.ant.Project.executeTargets(Project.java:1251) >>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) >>>
Re: tools.jar …
Clearly that's not the case, when you look at the error message you sent. What are the steps you're taking to produce that error, really from scratch, from the very beginning of the process, so that someone can reproduce it. Gj On Sat, Aug 11, 2018 at 4:27 PM, Juan Escribano wrote: > That's how I thought it should work, but the project has JDK 1.8 both in > Properties -> Libraries -> Java Platform as in Properties -> Sources -> > Source/Binary format… > Any other place where I have to look for? > > Best, > *Juan Miguel* > El 11 ago 2018 14:28 +0200, Geertjan Wielenga > , escribió: > > The JDK that you use to run NetBeans has nothing to do with the JDK that > you use to run your projects. Each of your projects can use a different > JDK. It souns like you need to go to the Project Properties dialog of your > project in NetBeans and set JDK 8 as the JDK to use for that project. > > Gj > > > > On Saturday, August 11, 2018, Juan Escribano wrote: > >> Hi, >> >> As you know Java 9/10 do not include tools.jar in lib directory anymore. >> >> But if i’m trying to compile a project based on Java 1.8 wich has >> tools.jar (using Netbeans 9.0 running over Java 10), how can I avoid the >> following error?: >> >> .../nbproject/jaxws-build.xml:22: >> java.lang.ClassNotFoundException: JDK's tools.jar was not found in >> /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/lib/tools.jar. >> Usually this means you are running JRE, not JDK. Please use the java >> command in JDK 5.0 or later (not JRE.) >> at com.sun.tools.ws.ant.WrapperTask.createClassLoader(WrapperTa >> sk.java:106) >> at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:46) >> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) >> at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) >> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. >> invoke(DelegatingMethodAccessorImpl.java:43) >> at java.base/java.lang.reflect.Method.invoke(Method.java:564) >> at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch >> Utils.java:99) >> at org.apache.tools.ant.Task.perform(Task.java:350) >> at org.apache.tools.ant.Target.execute(Target.java:449) >> at org.apache.tools.ant.Target.performTasks(Target.java:470) >> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) >> at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge >> ts(SingleCheckExecutor.java:36) >> at org.apache.tools.ant.Project.executeTargets(Project.java:1251) >> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) >> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) >> at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) >> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. >> invoke(DelegatingMethodAccessorImpl.java:43) >> at java.base/java.lang.reflect.Method.invoke(Method.java:564) >> at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch >> Utils.java:99) >> at org.apache.tools.ant.Task.perform(Task.java:350) >> at org.apache.tools.ant.Target.execute(Target.java:449) >> at org.apache.tools.ant.Target.performTasks(Target.java:470) >> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) >> at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge >> ts(SingleCheckExecutor.java:36) >> at org.apache.tools.ant.Project.executeTargets(Project.java:1251) >> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) >> at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) >> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) >> at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) >> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. >> invoke(DelegatingMethodAccessorImpl.java:43) >> at java.base/java.lang.reflect.Method.invoke(Method.java:564) >> at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch >> Utils.java:99) >> at org.apache.tools.ant.Task.perform(Task.java:350) >> at org.apache.tools.ant.Target.execute(Target.java:449) >> at org.apache.tools.ant.Target.performTasks(Target.java:470) >> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) >> at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge >> ts(SingleCheckExecutor.java:36) >> at org.apache.tools.ant.Project.executeTargets(Project.java:1251) >> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) >> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) >> at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) >> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. >> invoke(DelegatingMethodAccessorImpl.java:43) >> at java.base/java.lang.reflect.Method.invoke(Method.java:564) >> at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch >> Utils.java:99) >> at org.apache.tools.ant.Task.perform(Task.java:350) >> at org.apache.tools.ant.Target.execute(Target.java:449) >> at org.ap
Re: tools.jar …
That's how I thought it should work, but the project has JDK 1.8 both in Properties -> Libraries -> Java Platform as in Properties -> Sources -> Source/Binary format… Any other place where I have to look for? Best, Juan Miguel El 11 ago 2018 14:28 +0200, Geertjan Wielenga , escribió: > The JDK that you use to run NetBeans has nothing to do with the JDK that you > use to run your projects. Each of your projects can use a different JDK. It > souns like you need to go to the Project Properties dialog of your project in > NetBeans and set JDK 8 as the JDK to use for that project. > > Gj > > > > On Saturday, August 11, 2018, Juan Escribano wrote: > > Hi, > > > > As you know Java 9/10 do not include tools.jar in lib directory anymore. > > > > But if i’m trying to compile a project based on Java 1.8 wich has tools.jar > > (using Netbeans 9.0 running over Java 10), how can I avoid the following > > error?: > > > > .../nbproject/jaxws-build.xml:22: > > java.lang.ClassNotFoundException: JDK's tools.jar was not found in > > /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/lib/tools.jar. > > Usually this means you are running JRE, not JDK. Please use the java > > command in JDK 5.0 or later (not JRE.) > > at com.sun.tools.ws.ant.WrapperTask.createClassLoader(WrapperTask.java:106) > > at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:46) > > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > > at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) > > at > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.base/java.lang.reflect.Method.invoke(Method.java:564) > > at > > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) > > at org.apache.tools.ant.Task.perform(Task.java:350) > > at org.apache.tools.ant.Target.execute(Target.java:449) > > at org.apache.tools.ant.Target.performTasks(Target.java:470) > > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) > > at > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36) > > at org.apache.tools.ant.Project.executeTargets(Project.java:1251) > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) > > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > > at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) > > at > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.base/java.lang.reflect.Method.invoke(Method.java:564) > > at > > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) > > at org.apache.tools.ant.Task.perform(Task.java:350) > > at org.apache.tools.ant.Target.execute(Target.java:449) > > at org.apache.tools.ant.Target.performTasks(Target.java:470) > > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) > > at > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36) > > at org.apache.tools.ant.Project.executeTargets(Project.java:1251) > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) > > at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) > > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > > at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) > > at > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.base/java.lang.reflect.Method.invoke(Method.java:564) > > at > > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) > > at org.apache.tools.ant.Task.perform(Task.java:350) > > at org.apache.tools.ant.Target.execute(Target.java:449) > > at org.apache.tools.ant.Target.performTasks(Target.java:470) > > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) > > at > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36) > > at org.apache.tools.ant.Project.executeTargets(Project.java:1251) > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) > > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > > at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) > > at > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.base/java.lang.reflect.Method.invoke(Method.java:564) > > at > > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) > > at org.apache.tools.ant.Task.perform(Task.java:350) > > at org.apache.tools.ant.Target.execute(Target.java:449) > > at org.apache.tools.ant.Target.performTasks(Target.java:470) > > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) > > at > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36) > >
Re: tools.jar …
The JDK that you use to run NetBeans has nothing to do with the JDK that you use to run your projects. Each of your projects can use a different JDK. It souns like you need to go to the Project Properties dialog of your project in NetBeans and set JDK 8 as the JDK to use for that project. Gj On Saturday, August 11, 2018, Juan Escribano wrote: > Hi, > > As you know Java 9/10 do not include tools.jar in lib directory anymore. > > But if i’m trying to compile a project based on Java 1.8 wich has > tools.jar (using Netbeans 9.0 running over Java 10), how can I avoid the > following error?: > > .../nbproject/jaxws-build.xml:22: > java.lang.ClassNotFoundException: JDK's tools.jar was not found in > /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/lib/tools.jar. > Usually this means you are running JRE, not JDK. Please use the java > command in JDK 5.0 or later (not JRE.) > at com.sun.tools.ws.ant.WrapperTask.createClassLoader( > WrapperTask.java:106) > at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:46) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:564) > at org.apache.tools.ant.dispatch.DispatchUtils.execute( > DispatchUtils.java:99) > at org.apache.tools.ant.Task.perform(Task.java:350) > at org.apache.tools.ant.Target.execute(Target.java:449) > at org.apache.tools.ant.Target.performTasks(Target.java:470) > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) > at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets( > SingleCheckExecutor.java:36) > at org.apache.tools.ant.Project.executeTargets(Project.java:1251) > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:564) > at org.apache.tools.ant.dispatch.DispatchUtils.execute( > DispatchUtils.java:99) > at org.apache.tools.ant.Task.perform(Task.java:350) > at org.apache.tools.ant.Target.execute(Target.java:449) > at org.apache.tools.ant.Target.performTasks(Target.java:470) > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) > at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets( > SingleCheckExecutor.java:36) > at org.apache.tools.ant.Project.executeTargets(Project.java:1251) > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) > at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:564) > at org.apache.tools.ant.dispatch.DispatchUtils.execute( > DispatchUtils.java:99) > at org.apache.tools.ant.Task.perform(Task.java:350) > at org.apache.tools.ant.Target.execute(Target.java:449) > at org.apache.tools.ant.Target.performTasks(Target.java:470) > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) > at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets( > SingleCheckExecutor.java:36) > at org.apache.tools.ant.Project.executeTargets(Project.java:1251) > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:564) > at org.apache.tools.ant.dispatch.DispatchUtils.execute( > DispatchUtils.java:99) > at org.apache.tools.ant.Task.perform(Task.java:350) > at org.apache.tools.ant.Target.execute(Target.java:449) > at org.apache.tools.ant.Target.performTasks(Target.java:470) > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) > at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets( > SingleCheckExecutor.java:36) > at org.apache.tools.ant.Project.executeTargets(Project.java:1251) > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) > at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.jav