Sitemap

Amicuk Programming Answers

SGD Portlet - Failed to build using Ant - UnsupportedClassVersionError

2015-10-11   Views:1

Advertisement

Hi, I've downloaded the Sun Secure Global Desktop portlet source code from here: https://portlet-repository.dev.java.net/public/Download.html and I'm trying to compile it using Ant. I have Ant 1.7.0 and I'm using JRE 1.4.2_15. For some reason, the An

Hi,
I've downloaded the Sun Secure Global Desktop portlet source code from here: https://portlet-repository.dev.java.net/public/Download.html and I'm trying to compile it using Ant.
I have Ant 1.7.0 and I'm using JRE 1.4.2_15. For some reason, the Ant task fails. Using the -debug and -logfile options, it points to a VersionTask class error:
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: C:\Program Files\Java\j2sdk1.4.2_15\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.file -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build.xml with URI = file:/C:/Documents%20and%20Settings/Administrator/My%20Documents/Projects/2007/Bell/Sun%20SGD/sgdportlet/build.xml
Setting ro project property: ant.project.name -> SGD Portlet
Adding reference: SGD Portlet
Setting ro project property: ant.file.SGD Portlet -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build.xml
Project base dir set to: C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet
+Target:
+Target: all
+Target: init
+Target: version
+Target: compile
+Target: dist
+Target: clean
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Setting project property: src -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\src
Setting project property: build.top -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build
Setting project property: build.webinf -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build\WEB-INF
Setting project property: build.classes -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build\WEB-INF\classes
Setting project property: dist -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\dist
Setting project property: lib -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\lib
Setting project property: web -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\web
Setting project property: tools -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\tools
Setting project property: webinf -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\web\WEB-INF
Finding class com.tarantella.tools.ant.tasks.VersionTask
Loaded from C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\lib\tarantella-tasks.jar com/tarantella/tools/ant/tasks/VersionTask.class
BUILD FAILED
C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build.xml:14: java.lang.UnsupportedClassVersionError: com/tarantella/tools/ant/tasks/VersionTask (Unsupported major.minor version 50.0)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
I know this portlet code was just released this week, but has anybody had any success building the portlet into a .WAR file?
Thanks in advance!
Rob.

The replay answer
Advertisement
I figured it out... the tarantella-tasks.jar file had class files in it that were compiled using jdk 6, and the rest of the project was compiled using jdk 1.4.2. Luckily, the source code was there so that I could recompile the classes back to 1.4.2 and it now works.

Go to See the other 3 answers

SGD Portlet - Failed to build using Ant - UnsupportedClassVersionError

Category:DefaultRelease time:2015-10-11Views:130

Hi, I've downloaded the Sun Secure Global Desktop portlet source code from here: https://portlet-repository.dev.java.net/public/Download.html and I'm trying to compile it using Ant. I have Ant 1.7.0 and I'm using JRE 1.4.2_15. For some reason, the An[More]

XSS SCA import in CMS error: failed to build

Category:DefaultRelease time:2015-10-11Views:130

We are getting error when trying to build XSS Track in NWDI. There are 2 brocken DC for development track. Here is the error message that we get: Development Component Build (2008-11-28 22:04:10)   Component name: mss/mol   Component vendor: sap.com[More]

Server subsys tem failed. Reason: java.lang.UnsupportedClassVersionError

Category:DefaultRelease time:-0001-11-30Views:130

Hello! Is not possible to run WebLogic 10R3 with JAVA 5? <24/Nov/2009 10H14m GMT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.5.0_22-b03 from Sun Microsyste ms Inc.>[More]

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

Category:DefaultRelease time:-0001-11-30Views:130

I can't install gem pg: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /home/alex/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --wi[More]

"Generation failed" - DC build failed!

Category:DefaultRelease time:-0001-11-30Views:130

Hi,     I have two DCs: Comp A and Comp B. If I build Comp A or Comp B it's OK ! If I import comp B public part into compA and I build comp A it's OK! If I add in used web dynpro component of comp A, a component of comp B and I build comp A, the buil[More]

[SOLVED] l2tp-ipsec-vpn-daemon from AUR fails to build

Category:DefaultRelease time:2015-10-11Views:130

Please let me know if there are other details that require posting:- ==> Starting build()... /usr/bin/qmake -o qttmp-Release.mk -after "OBJECTS_DIR=build/Release" "DESTDIR=dist/Release" nbproject/qt-Release.pro mv -f qttmp-Release.m[More]

Failed to build StructureDefinition for - POJO Datacontrol

Category:DefaultRelease time:2015-10-11Views:130

Hi I found a message - "<BeanHandler> <getStructure> Failed to build StructureDefinition for : oracle.****.***.model.services.HomeService" in weblogic server log, while the pages renders completely, i did not define any action / acti[More]

Adding environment variable in build.xml(ANT)

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I need some information Regarding ANT, the problem is i have to add a property file in build.xml (as a environment varialble) so that i can read it in my java code. as System.getProperty(""). Please sugggest me how to set environment variabl[More]

Formatting Failed. Building not successful. See log.

Category:DefaultRelease time:-0001-11-30Views:130

I keep getting a 'Formatting Failed. Building not successful. See log.' error every time I try to burn a project. I created the movie using Final Cut Pro, exported it to Compressor, and then submitting it using the DVD: Best Quality 120 minutes prese[More]

Changes to MXML fail to build

Category:DefaultRelease time:-0001-11-30Views:130

I imported a flex archive file but when Changes to MXML file they fail to build when I run the application. Flex builder keeps build a different Flex project. How to get it to build the current project I'm working on? I'm also not getting syntax high[More]

[SOLVED] nVidia 87.76 Drivers installer fails to build kernel module

Category:DefaultRelease time:-0001-11-30Views:130

Hey, I have a nVidia GeForce2 Integrated graphics card on my Asus A7N266 motherboard. According to the nVidia site, http://www.nvidia.com/object/IO_32667.html, the most recent driver that supports this is the 96.xx series. Yet as shown here, http://w[More]

Hot
Hi everyone, my motherbord is giving me the 8 or 9 beep code (8 = Display memory Read/Write test failure, 9 = ROM BIOS checksum failure) guess I need a new motherbord? I have a MSI KT3 Ultra-ARU and it has Promise 20276 (raid 0 and 1) The beeping sta [More]
I recently purchased a Server that houses 45 4TB drives to use as my backup to disk solution. I installed Windows Server 2012 R2 Standard so that I could take advantage of Microsoft's Storage Spaces. I have configured the Storage Pool with Dual Parit [More]
MacBook Pro (13 mid 2012), 2.5ghz Intel i5, 8GB, OS X Yosemite 10.10.1 I can not open any purchased apps or log on to the app store on my macbook only. I am able to log into iTunes just fine. And am able to use my account for the app store on my iPho [More]
I set up a new installation of Leopard Server 10.5.6 and accepted the base configuration. I wanted to test a mail server setup on VMware Fusion 2.0.2. No issues during the installation but once I started the mail services and setup my first user acco [More]
Good Day, I get the error Account determination for 2000 WRX is not possible when trying to post a Goods Receipt for a material without a master. My material is linked to material material type 1. Material type 1 is linked to valuation class 3000. In [More]
I'd like to reformat my hard drive and do a clean install of leopard. I've backed up my drive with time machine and I'm wondering if it is possible to recover all my third party applications etc etc including passwords and settings without having to [More]
i need to search all columns of all tables in a database , i already write the code below , but i've got the error message below when run this script DECLARE cnt number; v_data VARCHAR2(20); BEGIN v_data :='5C4CA98EAC4C'; FOR t1 IN (SELECT table_name [More]
We are receiving this error occasionally when processing CREMAS IDocs. We are receiving the IDoc from PI and processing through ALE. Occurring at the same time we have DEBMAS IDocs coming into the system through Crossworlds being processed by a user [More]
I am just starting to use Address Book after using Palm Desktop for a long time. Is there a way of flagging an Address Book entry (a bank for example) to be private, and only viewable using a passcode?It sounds like you're considering storing confide [More]
I have two task flows: TFBrowseRecs and TFUploadFile. I initiate calling of TFUploadFile from view (by af:button) inside TFBrowseRecs. TFUploadFile has return-value-definition which is is used to return value which is created in TFUploadFile. TFUploa [More]