Message Boards
unable to build portlets in eclipse
unable to build portlets in eclipse
Expert Posts: 486 Join Date: 8/16/14 Recent PostsWorking Directory:
C:\newsvn\branches\magma-development\magma-hdi-portal\modules\com.magmahdi.esales.motor.rollover
Gradle
user home: C:\Users\G02365\.gradle
Gradle Distribution: Gradle
wrapper from target build
Gradle Version: 3.0
Java Home:
C:\Program Files\Java\jre1.8.0_271
JVM Arguments:
None
Program Arguments: None
Build Scans Enabled:
false
Offline Mode Enabled: false
Gradle Tasks: deploy
:modules:com.magmahdi.esales.services:com.magmahdi.esales.services-api:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task
':modules:com.magmahdi.esales.services:com.magmahdi.esales.services-api:compileJava'.
>
Could not find tools.jar. Please check that C:\Program
Files\Java\jre1.8.0_271 contains a valid JDK installation.
* Try:
Run with --stacktrace option to get the stack trace. Run
with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.316 secs
RE: unable to build portlets in eclipse
Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent PostsYou need a JDK to build the code, a JRE is only sufficient to run it. So, download a JDK and install it. It is possible that you have to set JAVA_HOME manually to point to it afterwards.
RE: unable to build portlets in eclipse
Expert Posts: 486 Join Date: 8/16/14 Recent PostsDear rabel,
thank you replying .
Working Directory:
D:\backup\22-12-2020\branches\magma-development\magma-hdi-portal\modules
Gradle
user home: C:\Users\G02365\.gradle
Gradle Distribution: Gradle
wrapper from target build
Gradle Version: 3.0
Java Home:
C:\Program Files\Java\jdk1.8.0_271
JVM Arguments:
None
Program Arguments: None
Build Scans Enabled:
false
Offline Mode Enabled: false
Gradle Tasks: deploy
:modules:com.magmahdi.esales.services:com.magmahdi.esales.services-api:compileJava
:modules:com.magmahdi.esales.services:com.magmahdi.esales.services-api:buildCSS
UP-TO-DATE
:modules:com.magmahdi.esales.services:com.magmahdi.esales.services-api:processResources
UP-TO-DATE
:modules:com.magmahdi.esales.services:com.magmahdi.esales.services-api:transpileJS
SKIPPED
:modules:com.magmahdi.esales.services:com.magmahdi.esales.services-api:configJSModules
SKIPPED
:modules:com.magmahdi.esales.services:com.magmahdi.esales.services-api:replaceSoyTranslation
UP-TO-DATE
:modules:com.magmahdi.esales.services:com.magmahdi.esales.services-api:wrapSoyAlloyTemplate
SKIPPED
:modules:com.magmahdi.esales.services:com.magmahdi.esales.services-api:classes
:modules:com.magmahdi.esales.services:com.magmahdi.esales.services-api:jar
:modules:com.magmahdi.customerlogin:compileJava
:modules:com.magmahdi.customerlogin:buildCSS
UP-TO-DATE
:modules:com.magmahdi.customerlogin:processResources
:modules:com.magmahdi.customerlogin:transpileJS
SKIPPED
:modules:com.magmahdi.customerlogin:configJSModules
SKIPPED
:modules:com.magmahdi.customerlogin:replaceSoyTranslation
UP-TO-DATE
:modules:com.magmahdi.customerlogin:wrapSoyAlloyTemplate
SKIPPED
:modules:com.magmahdi.customerlogin:classes
:modules:com.magmahdi.customerlogin:jar
:modules:com.magmahdi.customerlogin:deploy
Files
of project ':modules:com.magmahdi.customerlogin' deployed to D:\It
Softwares\liferayDXP\liferay-dxp-7.1.10-ga1\osgi\modules
:modules:com.magmahdi.esales.branches:compileJava
:modules:com.magmahdi.esales.branches:buildCSS
Using
native Sass compiler
# BridJ: LoadLibrary error when loading C:\Users
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries3255945555517473765\liferaysass.dll :
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries3255945555517473765\liferaysass.dll : A dynamic link library (DLL) initialization rout
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries3255945555517473765\life
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries3255945555517473765\liferaysass.dll : A dynamic link library (DLL) initi
# BridJ: Loa
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppD
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries3255945555517473765\liferaysass.dll : A dynamic li
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries3255945555517473765\liferaysass.dll : A dynamic link library (DLL) initialization routine failed.
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtrac
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries3255945555517473765\liferaysass.dll
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries3255945555517473765\liferaysass.dll : A dynamic link library (DLL) initialization ro
# BridJ: LoadLibrary err
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Te
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries3255945555517473765\liferaysass.dll : A dynamic link library (
# BridJ:
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries3255945555517473765\liferaysass.dll : A dynamic
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtractedLibraries3255945555517473765\liferaysass.dll : A dynamic link library (DLL) initialization routine failed
# BridJ: LoadLibrary error when loadException in thread
"main" java.lang.UnsatisfiedLinkError:
com.liferay.sass.compiler.jni.internal.libsass.LiferaysassLibrary.sassMakeFileContext(J)J
at
com.liferay.sass.compiler.jni.internal.libsass.LiferaysassLibrary.sassMakeFileContext(Native
Method)
at
com.liferay.sass.compiler.jni.internal.libsass.LiferaysassLibrary.sassMakeFileContext(LiferaysassLibrary.java:1275)
at
com.liferay.sass.compiler.jni.internal.JniSassCompiler.createSassFileContext(JniSassCompiler.java:292)
at
com.liferay.sass.compiler.jni.internal.JniSassCompiler.compileFile(JniSassCompiler.java:147)
at
com.liferay.css.builder.CSSBuilder._parseSass(CSSBuilder.java:380)
at
com.liferay.css.builder.CSSBuilder._parseSassFile(CSSBuilder.java:394)
at
com.liferay.css.builder.CSSBuilder.execute(CSSBuilder.java:160)
at com.liferay.css.builder.CSSBuilder.main(CSSBuilder.java:79)
# BridJ: LoadLibrary error when loading C:\Users\G02365\AppData\Local\Temp\BridJExtr
:modules:com.magmahdi.esales.branches:buildCSS FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task
':modules:com.magmahdi.esales.branches:buildCSS'.
> Process
'command 'C:\Program Files\Java\jdk1.8.0_271\bin\java.exe'' finished
with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run
with --info or --debug option to get more log output.
BUILD FAILED
Total time: 9 mins 13.997 secs
RE: RE: unable to build portlets in eclipse
Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent PostsI am not sure, but I guess from the following error that you need to install Sass.
"com.liferay.sass.compiler.jni.internal.JniSassCompiler.compileFile(JniSassCompiler.java:147)
at
com.liferay.css.builder.CSSBuilder._parseSass(CSSBuilder.java:380)
at
com.liferay.css.builder.CSSBuilder._parseSassFile(CSSBuilder.java:394)
at
com.liferay.css.builder.CSSBuilder.execute(CSSBuilder.java:160)
at com.liferay.css.builder.CSSBuilder.main(CSSBuilder.java:79)"
Please read here:
https://help.liferay.com/hc/en-us/articles/360018162071-Liferay-Theme-Generator
Since I am on Linux, I am not sure what you have to do exactly or if this is really the root cause of the issue. But I would try it.