Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Simone Zampini
Problems from Ubuntu to Vista
March 16, 2010 10:45 AM
Answer

Simone Zampini

Rank: New Member

Posts: 4

Join Date: March 16, 2010

Recent Posts

Hi everyone.
I've a problem deploying some portlet.

I'm started from an application server with working portlets in. My system was Ubuntu 9.04, liferay-portal-5.2.3+tomcat-6.0.18, portlets compiled with jdk 1.6.0_14 (Sun). In the tomcat directory there is a subdirectory "jre1.5.0_17".

Liferay starts, but some portlet gives an UnsupportedClassVersionError. I've tried to do some change with jdks and paths, but nothing is resolved.

Can anyone help me?

Thanks
Wilson Man
RE: Problems from Ubuntu to Vista
March 16, 2010 1:55 PM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 577

Join Date: June 21, 2006

Recent Posts

what version of JRE/JDK are you running on windows? try upgrading that to at least 1.6.0.14
Simone Zampini
RE: Problems from Ubuntu to Vista
March 17, 2010 1:58 AM
Answer

Simone Zampini

Rank: New Member

Posts: 4

Join Date: March 16, 2010

Recent Posts

On Windows, right now, there is installed JDK 1.6.0_17 only. The PATH variable is set correctly to this Java folder.
Wilson Man
RE: Problems from Ubuntu to Vista
March 17, 2010 10:45 AM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 577

Join Date: June 21, 2006

Recent Posts

so if you check the java version on your command prompt, it says 1.6.0.17 right?
If it does say that, then i guess the only thing i would suggest is to have 1.6.0.17 on your machine that does the compiling also.
Olaf Kock
RE: Problems from Ubuntu to Vista
March 17, 2010 11:47 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1581

Join Date: September 23, 2008

Recent Posts

I'm not running Liferay on windows, but you should be able to delete the jre directory delivered with Liferay if you have an installed jre on your system. If it doesn't start then, check tomcat/bin/setenv.bat or startup.bat or catalina.bat (in the same directory) if they reference the jre from the liferay bundle.

As your portlets are compiled with JDK6, you most likely must run with JRE6 and have no chance to run with 5.

Just to be complete (not a solution to your problem):

The UnsupportedClassVersionError might also come from jsps translated by your ubuntu-jre. You can safely delete the contents of tomcat/work and tomcat/temp (leave the directories themselves in place). Prepare for some lower performance during the first display of jsps after you've deleted the content of these directories. (the "work" directory contains code that is generated from your jsps)