Ionic2 Android deployment - ionic2

I am using a MAC machine with Java 9. While deploying my ionic2 app, System returns following error:
ANDROID_HOME=/Users/apple/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
Error: Requirements check failed for JDK 1.8 or greater
[ERROR] An error occurred while running cordova run android (exit code 1)
My java version is great than 1.8 but system still returning me above error. Please advise.

Related

Selenium server did not start.Another Selenium process may already be running or your java version may be out of date

Just starting out with Polymer and Unit Testing. I was trying out the activity on this page https://www.polymer-project.org/2.0/docs/tools/tests but I couldn't get polymer test to run. So I tried running polymer test --verbose and end up getting this error:
Error: Selenium server did not start.Another Selenium process may already be running or your java version may be out of date.
error: cli runtime exception: Error: Selenium server did not start.Another Selenium process may already be running or your java version may be out of date.
error: Error: Selenium server did not start.Another Selenium process may already be running or your java version may be out of date.
at ChildProcess.errorIfNeverStarted (C:\Users\Eleonor Somosot\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\selenium-standalone\lib\start.js:141:15)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
Hoping someone could help me with this and maybe explain. Thanks..
Hit below url for shut down already running selenium server on port 4444.
http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
If selenium server is already running on port 4444 then it will shut down the server and says OK if selenium is not running on this port 4444 then by hitting above url will give you "Unable to connect"
If no server was running, Tuned out the java version was in cause. Make sure you are running java 7 or higher:
java -version

Failed to execute 'send' on 'XMLHttpRequest' error while installing Sitecore Azure

I want to deploy my website (built in sitecore 8.0) in Azure using Sitcore Azure module. I have downloaded the Sitecore azure 8.0 module from https://dev.sitecore.net/Downloads/Sitecore_Azure/80/Sitecore_Azure_80.aspx . And started installation using Installation wizard, I got an error after around 2 hours are spent on installation process. The error saying "Failed to execute 'send' on 'XMLHttpRequest' : Failed to load 'sitecoredemo/.../InstallationWizard'.
How to proceed further, please suggest.

Compilation error start up failed Invalid command line for usage of javac

I am new to grails I first Installed Java 1.7 then I set path JAVA_HOME to
C:\Program Files\Java\jdk1.7.0
and GRAILS_HOME to
D:\grails\grails-2.2.4
and I set path to
C:\Program Files\Java\jdk1.7.0\bin;D:\grails\grails-2.2.4\bin
and I am compiling the application from command prompt ,when I run the application using
grails RunApp
I got the following error
grails 2.2.4 error compilation error start up failed Invalid commandline for usage of javac.
JavaC:invalid flag: Xlint :-option.
Will this version support tomcat 7.0 for deployment.
Grails 2.2 support java 1.7 which you are doing is correct and this version supports tomcat 7.0. I tried grails 2.2 with java 1.6 and run my applications successfully so can try it with java6 so that you can run your applications.

Compile error wso2 ESB 4.8.1. and kernel

We are having problems compiling kernel wso2 esb and wso2
Jdk -> jdk1.7.0_60
Error wso2 esb 4.8.1
[ERROR] Failed to execute goal on project org.wso2.esb.integration.core: Could not resolve dependencies for project org.wso2.esb:org.wso2.esb.integration.core:jar:4.8.0: Could not find artifact org.apache.ws.security:wss4j:jar:1.5.11-wso2v6 in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project org.wso2.esb.integration.core: Could not resolve dependencies for project org.wso2.esb:org.wso2.esb.integration.core:jar:4.8.0: Could not find artifact org.apache.ws.security:wss4j:jar:1.5.11-wso2v6 in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
Error wso2carbon-kernel 4.2.0
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:compile (default-compile) on project wss4j: Compilation failure: Compilation failure:
[ERROR] /sources/wso2/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24] EncryptionKey is internal proprietary API and may be removed in a future release
[ERROR]
A greeting and thanks.
As Asela mentioned kernal switch to java 1.6 and for the ESB failure, you can build [1] to get rid of that issue.
[1]-http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0002/dependencies/wss4j/1.5.11-wso2v6/
You can not use JDK 1.6 to build the WSO2 platform. Please check WSO2 docs from here
If you want to build the product from the source distribution, you
must use JDK 1.6 instead of JDK 1.7.
But it says that you can run the product on JDK 1.7
Oracle and IBM JRE 1.7 are also supported when running (not building)
WSO2 products.

Is Sun/Oracle JDK required to build WSO2 4.1.x?

Is Sun/Oracle JDK required to build WSO2 4.1.x?
I tried building with OpenJDK, but ran into the following issue:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
(default-compile) on project axis2-transport-testkit: Compilation failure: Compilation failure:
[ERROR] ... carbon_kernel_4.1.0/dependencies/transports/1.1.0-wso2v8/modules/testkit/
src/main/java/org/apache/axis2/transport/testkit/doclet/ResourceInfoDoclet.java:[27,22]
error: package com.sun.javadoc does not exist
Yes, Oracle JDK is required to build Carbon.
Currently Open JDK is not recommended.
Please make sure to use Oracle JDK 1.6 for building Carbon.
You can use Oracle JRE 1.7 for running WSO2 products, but there are known issues with compiling the source code with Java 7.
See http://docs.wso2.org/wiki/display/Carbon410/Installation+Prerequisites for additional info.