Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Deepak Sharma
Hitting error while doing service build in liferay
September 29, 2011 11:39 PM
Answer

Deepak Sharma

Rank: New Member

Posts: 4

Join Date: September 15, 2011

Recent Posts

Hi,

I am using liferay IDE. I've started working on a dummy project and created a new portlet project and added a service.xml file. After I created the service.xml file when i was trying to do a service build, its getting failed. Below the the error which I've been receiving.


Buildfile: C:\Liferay\liferay-plugins-sdk-6.0.6-20110225\portlets\ProductRegistration-portlet\build.xml
build-service:
Loading jar:file:/C:/Liferay/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
Loading jar:file:/C:/Liferay/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/C:/Liferay/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/classes/portal-ext.properties
Loading jar:file:/C:/Liferay/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
06:23:35,078 INFO [PortalImpl:278] Global lib directory /C:/Liferay/liferay-portal-6.0.6/tomcat-6.0.29/lib/ext/
06:23:35,078 INFO [PortalImpl:298] Portal lib directory /C:/Liferay/liferay-portal-6.0.6/tomcat-6.0.29/webapps/ROOT/WEB-INF/lib/
Building PRProduct
Writing docroot\WEB-INF\service\com\inkwell\internet\productregistration\model\PRProductWrapper.java
compile-java:
Compiling 13 source files to C:\Liferay\liferay-plugins-sdk-6.0.6-20110225\portlets\ProductRegistration-portlet\docroot\WEB-INF\service-classes
javac: invalid target release: 1.5
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options

BUILD FAILED
C:\Liferay\liferay-plugins-sdk-6.0.6-20110225\build-common-plugin.xml:220: The following error occurred while executing this line:
C:\Liferay\liferay-plugins-sdk-6.0.6-20110225\build-common.xml:90: Compile failed; see the compiler error output for details.


Total time: 16 seconds

Please share your thoughts if anyone has any idea.

Thanks
Deepak
Ravi Kumar Gupta
RE: Hitting error while doing service build in liferay
September 29, 2011 11:48 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1303

Join Date: June 23, 2009

Recent Posts

I guess its the java version.. can you please update java and see..
Ravi Kumar Gupta
RE: Hitting error while doing service build in liferay
September 29, 2011 11:49 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1303

Join Date: June 23, 2009

Recent Posts

https://forums.alfresco.com/en/viewtopic.php?f=9&t=7750&p=14633&st=0&sk=t&sd=a

http://codewriterstips.blogspot.com/2009/01/javac-invalid-target-release-15.html