Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

build fails at sal

asked 2015-03-12 06:17:48 -0800

Janki gravatar image

updated 2015-03-12 06:19:47 -0800

Hi I have pulled a stable helium release from git. In controller folder

git status gives

On branch stable/helium
Your branch is up-to-date with origin/stable/helium.
nothing to commit, working directory clean

I am running

 mvn clean install

in controller directory and getting error at sal.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project sal: Fatal error compiling: tools.jar not found: /usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar -> [Help 1]<br />
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :sal
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-03-12 06:19:10 -0800

faizan gravatar image

updated 2015-03-12 06:20:11 -0800

Hi Janki, Install JDK. If Ubuntu, sudo apt-get install openjdk-7-jdk

edit flag offensive delete publish link more

Comments

Have it installed java -version java version "1.7.0_75" OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1) OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

Janki ( 2015-03-12 06:21:13 -0800 )edit

Hope you set the java environment variables correctly ? To my knowledge this error comes when you used jre instead of jdk.

faizan ( 2015-03-12 08:16:14 -0800 )edit

@faizan, the controller is built successfully, but it opens an OSGI console and not the karaf console that opens when we run pre-built Helium-SR1.

Janki ( 2015-03-13 00:25:28 -0800 )edit

Where from and how are you running the controller?

Vishal Thapar ( 2015-03-13 00:31:04 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2015-03-12 06:17:48 -0800

Seen: 133 times

Last updated: Mar 12 '15