To be more precised, your path should point to <PATH_TO_YOUR_JDK>, not 
<PATH_TO_YOU_JDK>/jre

Frédéric THOMAS

> From: webdoubl...@hotmail.com
> To: dev@flex.apache.org
> Subject: RE: ERROR Build BlazeDS - Could not find artifact 
> com.sun:tools:jar:jdk-version
> Date: Fri, 27 Mar 2015 08:08:48 +0000
> 
> Hi Edgar,
> 
> > /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar
> 
> This error seems to indicate you are using the JRE instead of the JDK.
> 
> Frédéric THOMAS
> 
> > Date: Thu, 26 Mar 2015 11:42:58 -0700
> > From: edgarmarioriv...@gmail.com
> > To: dev@flex.apache.org
> > Subject: ERROR Build BlazeDS - Could not find artifact 
> > com.sun:tools:jar:jdk-version
> > 
> > Hi guys I'm trying to build BlazeDS locally and I got this error
> > 
> > ----------------------->
> > The following artifacts could not be resolved:
> > com.sun:tools:jar:jdk-version,
> > org.apache.flex.blazeds:flex-messaging-opt:jar:4.7.0: Could not find
> > artifact com.sun:tools:jar:jdk-version at specified path
> > /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar
> >     at
> > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
> >     at
> > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
> >     at
> > org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
> >     at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
> >     at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> >     at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> >     at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> >     at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> >     at
> > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> >     at
> > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> >     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
> >     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> >     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
> >     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> >     at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >     at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >     at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >     at java.lang.reflect.Method.invoke(Method.java:597)
> >     at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> >     at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> >     at
> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> >     at
> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> > Caused by: org.apache.maven.project.DependencyResolutionException: Could not
> > resolve dependencies for project
> > com.businessinria.millionmindclub:millionmindclub-server:war:1.0.1-SNAPSHOT:
> > The following artifacts could not be resolved:
> > com.sun:tools:jar:jdk-version,
> > org.apache.flex.blazeds:flex-messaging-opt:jar:4.7.0: Could not find
> > artifact com.sun:tools:jar:jdk-version at specified path
> > /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar
> >     at
> > org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
> >     at
> > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
> >     ... 22 more
> > Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The
> > following artifacts could not be resolved: com.sun:tools:jar:jdk-version,
> > org.apache.flex.blazeds:flex-messaging-opt:jar:4.7.0: Could not find
> > artifact com.sun:tools:jar:jdk-version at specified path
> > /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar
> >     at
> > org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
> >     at
> > org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
> >     ... 23 more
> > Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The
> > following artifacts could not be resolved: com.sun:tools:jar:jdk-version,
> > org.apache.flex.blazeds:flex-messaging-opt:jar:4.7.0: Could not find
> > artifact com.sun:tools:jar:jdk-version at specified path
> > /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar
> >     at
> > org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
> >     at
> > org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
> >     at
> > org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
> >     ... 24 more
> > Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not
> > find artifact com.sun:tools:jar:jdk-version at specified path
> > /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar
> >     at
> > org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:302)
> >     ... 26 more
> > [ERROR] 
> > [ERROR] 
> > ----------------------->
> > 
> > In the README file from sources distribution I could read this
> > 
> > ----------------------->
> > 
> >     Java SDK 1.6 or greater (*1)                JAVA_HOME
> >         (for Java 1.7 see note at (*2))
> > 
> >     Maven 2.2.0 or greater (*1)                 MAVEN_HOME
> > 
> >     =====================================================================
> > 
> >     *1) The bin directories for MAVEN_HOME and JAVA_HOME should be added to
> > your
> >         PATH.
> > 
> >         On Windows, set PATH to
> > 
> >             PATH=%PATH%;%MAVEN_HOME%\bin;%JAVA_HOME%\bin
> > 
> >         On the Mac (bash), set PATH to
> > 
> >             export PATH="$PATH:$MAVEN_HOME/bin:$JAVA_HOME/bin"
> > 
> >          On Linux make sure you path include MAVEN_HOME and JAVA_HOME.
> > 
> > ----------------------->
> > 
> > But there isn´t note 2 available on the file. I also tried to change maven
> > dependencies in my pom file and I got same error. It looks like the error is
> > because my JAVA_HOME point to java version "1.7.0_45".
> > 
> > Any help here?
> > 
> > Thanks
> > 
> >                 .....
> >                 <blazeds.version>4.7.0</blazeds.version>
> >                 .....
> > 
> >                 .....
> >             <dependency>
> >                     <groupId>org.apache.flex.blazeds</groupId>
> >                     <artifactId>flex-messaging-common</artifactId>
> >                     <version>${blazeds.version}</version>
> >             </dependency>
> >             <dependency>
> >                     <groupId>org.apache.flex.blazeds</groupId>
> >                     <artifactId>flex-messaging-core</artifactId>
> >                     <version>${blazeds.version}</version>
> >             </dependency>
> >             <dependency>
> >                     <groupId>org.apache.flex.blazeds</groupId>
> >                     <artifactId>flex-messaging-opt</artifactId>
> >                     <version>${blazeds.version}</version>
> >             </dependency>
> >             <dependency>
> >                     <groupId>org.apache.flex.blazeds</groupId>
> >                     <artifactId>flex-messaging-proxy</artifactId>
> >                     <version>${blazeds.version}</version>
> >             </dependency>
> >             <dependency>
> >                     <groupId>org.apache.flex.blazeds</groupId>
> >                     <artifactId>flex-messaging-remoting</artifactId>
> >                     <version>${blazeds.version}</version>
> >             </dependency>
> >                 .....
> > 
> > 
> > 
> > --
> > View this message in context: 
> > http://apache-flex-development.2333347.n4.nabble.com/ERROR-Build-BlazeDS-Could-not-find-artifact-com-sun-tools-jar-jdk-version-tp45824.html
> > Sent from the Apache Flex Development mailing list archive at Nabble.com.
>                                         
                                          

Reply via email to