Java errors when trying to compile a Red5 server sample - ant

I'm trying to a build a Red5 server sample using the tutorial here. I have done all the things including adding red5.jar, commons-logging-1.1.1.jar but when i try to build the my own jar file using ant I get the following errors!
Buildfile: C:\Users\MediaStudio\workspace\Sample\build.xml
clean:
compile:
[javac] C:\Users\MediaStudio\workspace\Sample\build.xml:8: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to C:\Users\MediaStudio\workspace\Sample\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:4: error: package org.apache.commons.logging does not exist
[javac] import org.apache.commons.logging.Log;
[javac] ^
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:5: error: package org.apache.commons.logging does not exist
[javac] import org.apache.commons.logging.LogFactory;
[javac] ^
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:6: error: package org.red5.server.adapter does not exist
[javac] import org.red5.server.adapter.ApplicationAdapter;
[javac] ^
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:7: error: package org.red5.server.api does not exist
[javac] import org.red5.server.api.IConnection;
[javac] ^
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:8: error: package org.red5.server.api does not exist
[javac] import org.red5.server.api.IScope;
[javac] ^
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:12: error: cannot find symbol
[javac] public class Application extends ApplicationAdapter{
[javac] ^
[javac] symbol: class ApplicationAdapter
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:14: error: cannot find symbol
[javac] private static final Log log = LogFactory.getLog(Application.class);
[javac] ^
[javac] symbol: class Log
[javac] location: class Application
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:17: error: cannot find symbol
[javac] public boolean appStart(IScope app){
[javac] ^
[javac] symbol: class IScope
[javac] location: class Application
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:26: error: cannot find symbol
[javac] public boolean roomStart(IScope room){
[javac] ^
[javac] symbol: class IScope
[javac] location: class Application
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:35: error: cannot find symbol
[javac] public boolean roomConnect(IConnection conn, Object params[]){
[javac] ^
[javac] symbol: class IConnection
[javac] location: class Application
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:44: error: cannot find symbol
[javac] public void roomDisconnect(IConnection conn){
[javac] ^
[javac] symbol: class IConnection
[javac] location: class Application
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:50: error: cannot find symbol
[javac] public void appDisconnect(IConnection conn){
[javac] ^
[javac] symbol: class IConnection
[javac] location: class Application
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:14: error: cannot find symbol
[javac] private static final Log log = LogFactory.getLog(Application.class);
[javac] ^
[javac] symbol: variable LogFactory
[javac] location: class Application
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:18: error: cannot find symbol
[javac] if(super.appStart(app) == false){
[javac] ^
[javac] symbol: variable super
[javac] location: class Application
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:27: error: cannot find symbol
[javac] if(super.roomStart(room) == false){
[javac] ^
[javac] symbol: variable super
[javac] location: class Application
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:36: error: cannot find symbol
[javac] if(super.roomConnect(conn, params) == false){
[javac] ^
[javac] symbol: variable super
[javac] location: class Application
[javac] C:\Users\MediaStudio\workspace\Sample\src\org\xyz\Application.java:45: error: cannot find symbol
[javac] super.roomDisconnect(conn);
[javac] ^
[javac] symbol: variable super
[javac] location: class Application
[javac] 17 errors
[javac] 1 warning
BUILD FAILED
C:\Users\MediaStudio\workspace\Sample\build.xml:8: Compile failed; see the compiler error output for details.
I'm using the classic version of Eclipse (not sure if it's important or not but!)

I solved this problem by adding the classpath attribute to the javac command inside the build file pointing to the right jar files like the line below:
classpath="${lib.dir}/red5.jar:${lib.dir}/commons-logging-1.1.1.jar"

Related

Undefined symbol: nominal type descriptor for Swift.UInt8

I am trying to run react native app in a Mac Mini with Apple M1 chipset.The project run well on intel based system but not running on M1. When I build I got following errors.
Undefined symbol: nominal type descriptor for Swift.UInt8
Undefined symbol: nominal type descriptor for Swift._ContiguousArrayStorage
Undefined symbol: _swift_deletedMethodError
Undefined symbol: __swift_FORCE_LOAD_$_swiftsimd
Undefined symbol: _swift_deallocObject
Undefined symbol: _swift_getObjCClassMetadata
Undefined symbol: __swift_FORCE_LOAD_$_swiftAVFoundation
Undefined symbol: Swift.String.count.getter : Swift.Int
Undefined symbol: (extension in Foundation):Swift.StringProtocol.cString(using: (extension in Foundation):Swift.String.Encoding) -> [Swift.Int8]?
Undefined symbol: Foundation.Data._Representation.replaceSubrange(_: Swift.Range<Swift.Int>, with: Swift.UnsafeRawPointer?, count: Swift.Int) -> ()
Undefined symbol: type metadata accessor for Foundation.__DataStorage
Undefined symbol: type metadata accessor for Foundation.Data.RangeReference
Undefined symbol: Swift.Hasher.init(_seed: Swift.Int) -> Swift.Hasher
Undefined symbol: Swift.String.hash(into: inout Swift.Hasher) -> ()
Undefined symbol: Swift.Hasher._finalize() -> Swift.Int
Undefined symbol: Foundation._convertNSErrorToError(__C.NSError?) -> Swift.Error
Undefined symbol: static (extension in ObjectiveC):__C.NSObject.== infix(__C.NSObject, __C.NSObject) -> Swift.Bool
Undefined symbol: static (extension in Foundation):Swift.String._unconditionallyBridgeFromObjectiveC(__C.NSString?) -> Swift.String
Undefined symbol: _swift_beginAccess
Undefined symbol: static (extension in Foundation):Swift.Dictionary._unconditionallyBridgeFromObjectiveC(__C.NSDictionary?) -> [A : B]
Undefined symbol: _swift_getTypeByMangledNameInContextInMetadataState
Undefined symbol: __swiftEmptyDictionarySingleton
Undefined symbol: _swift_bridgeObjectRetain
Undefined symbol: Swift._StringGuts.grow(Swift.Int) -> ()
Undefined symbol: nominal type descriptor for Swift.AnyHashable
Undefined symbol: static Swift._DictionaryStorage.allocate(capacity: Swift.Int) -> Swift._DictionaryStorage<A, B>
Undefined symbol: Swift.String.append(Swift.String) -> ()
Undefined symbol: protocol witness table for Swift.AnyHashable : Swift.Hashable in Swift
Undefined symbol: _swift_initStackObject
Undefined symbol: _swift_getWitnessTable
Undefined symbol: (extension in Foundation):Swift.Dictionary._bridgeToObjectiveC() -> __C.NSDictionary
Undefined symbol: protocol witness table for Swift.String : Swift.Hashable in Swift
Undefined symbol: __swift_FORCE_LOAD_$_swiftDispatch
Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreImage
Undefined symbol: __swiftEmptyArrayStorage
Undefined symbol: Swift.KEY_TYPE_OF_DICTIONARY_VIOLATES_HASHABLE_REQUIREMENTS(Any.Type) -> Swift.Never
Undefined symbol: Foundation.NSLog(Swift.String, Swift.CVarArg...) -> ()
Undefined symbol: _swift_bridgeObjectRetain_n
Undefined symbol: (extension in Foundation):Swift.String._bridgeToObjectiveC() -> __C.NSString
Undefined symbol: _swift_bridgeObjectRelease
Undefined symbol: Foundation.Data._bridgeToObjectiveC() -> __C.NSData
Undefined symbol: _swift_allocObject
Undefined symbol: static (extension in Foundation):Swift.String.Encoding.utf8.getter : (extension in Foundation):Swift.String.Encoding
Undefined symbol: Swift._HashTable.previousHole(before: Swift._HashTable.Bucket) -> Swift._HashTable.Bucket
Undefined symbol: _swift_initStaticObject
Undefined symbol: protocol conformance descriptor for Swift.String : Swift.StringProtocol in Swift
Undefined symbol: associated type descriptor for Swift.ExpressibleByIntegerLiteral.IntegerLiteralType
Undefined symbol: type metadata for Swift.String
Undefined symbol: Swift._stringCompareWithSmolCheck(_: Swift._StringGuts, _: Swift._StringGuts, expecting: Swift._StringComparisonResult) -> Swift.Bool
Undefined symbol: type metadata for Swift.AnyHashable
Undefined symbol: (extension in Foundation):Swift.Error.localizedDescription.getter : Swift.String
Undefined symbol: nominal type descriptor for Swift.CollectionOfOne
Undefined symbol: _swift_isUniquelyReferenced_nonNull_native
Undefined symbol: __swift_FORCE_LOAD_$_swiftUIKit
Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral
Undefined symbol: associated conformance descriptor for Swift.ExpressibleByIntegerLiteral.Swift.ExpressibleByIntegerLiteral.IntegerLiteralType: Swift._ExpressibleByBuiltinIntegerLiteral
Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreFoundation
Undefined symbol: value witness table for Builtin.UnknownObject
Undefined symbol: method descriptor for Swift.ExpressibleByFloatLiteral.init(floatLiteral: A.FloatLiteralType) -> A
Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreAudio
Undefined symbol: protocol descriptor for Swift.ExpressibleByIntegerLiteral
Undefined symbol: _swift_dynamicCast
Undefined symbol: protocol conformance descriptor for <A where A == Swift.UInt8> Swift.CollectionOfOne<A> : Foundation.ContiguousBytes in Foundation
Undefined symbol: value witness table for Builtin.Int32
Undefined symbol: type metadata accessor for (extension in Foundation):Swift.String.Encoding
Undefined symbol: _swift_retain
Undefined symbol: __swift_FORCE_LOAD_$_swiftMetal
Undefined symbol: Swift.AnyHashable._rawHashValue(seed: Swift.Int) -> Swift.Int
Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreGraphics
Undefined symbol: type metadata for Any
Undefined symbol: protocol witness table for Swift.Float : Swift._ExpressibleByBuiltinFloatLiteral in Swift
Undefined symbol: __swift_FORCE_LOAD_$_swiftFoundation
Undefined symbol: _swift_getForeignTypeMetadata
Undefined symbol: method descriptor for Swift.ExpressibleByIntegerLiteral.init(integerLiteral: A.IntegerLiteralType) -> A
Undefined symbol: nominal type descriptor for Swift._DictionaryStorage
Undefined symbol: static Swift._DictionaryStorage.copy(original: Swift.__RawDictionaryStorage) -> Swift._DictionaryStorage<A, B>
Undefined symbol: _swift_willThrow
Undefined symbol: _swift_endAccess
Undefined symbol: __swift_FORCE_LOAD_$_swiftObjectiveC
Undefined symbol: _swift_errorRelease
Undefined symbol: protocol witness table for Swift.Int : Swift._ExpressibleByBuiltinIntegerLiteral in Swift
Undefined symbol: _swift_getTypeByMangledNameInContext
Undefined symbol: (extension in Foundation):Swift.Array._bridgeToObjectiveC() -> __C.NSArray
Undefined symbol: associated type descriptor for Swift.ExpressibleByFloatLiteral.FloatLiteralType
Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreMedia
Undefined symbol: Foundation.__DataStorage.init(capacity: Swift.Int) -> Foundation.__DataStorage
Undefined symbol: __swift_FORCE_LOAD_$_swiftQuartzCore
Undefined symbol: _swift_release
Undefined symbol: static Swift._DictionaryStorage.resize(original: Swift.__RawDictionaryStorage, capacity: Swift.Int, move: Swift.Bool) -> Swift._DictionaryStorage<A, B>
Undefined symbol: associated conformance descriptor for Swift.ExpressibleByFloatLiteral.Swift.ExpressibleByFloatLiteral.FloatLiteralType: Swift._ExpressibleByBuiltinFloatLiteral
Undefined symbol: _swift_getErrorValue
Undefined symbol: __swift_FORCE_LOAD_$_swiftDarwin
How can I fix this issue. I already tried adding a Swift file and bridge file. But that doesnt work.Please help me
Xcode version : 13.0,
React Native Version : 0.64.2,
iOS simulator 15,
Mac OS: 11.4,
For those who still have this issue you can try out the following because it worked for me:
The link to the original post: https://dev.to/mngyuan/updating-react-native-projects-for-m1-mac-development-1mk4
We're going to exclude the arm64 architecture from our build. Under Targets, select your project -> Build Settings -> Excluded Architectures, and add Any IOS Simulator SDK : arm64 for both Debug and Release. Do the same for your Pods project.
If your project for some reason has VALID_ARCHS set, you'll want to remove that key from your project as well (and the Pods project) at this stage.
We're very close to done, but the version of Flipper installed in your pods is likely not new enough to include the fixes for M1 macs. Open ios/Podfile and apply the following
use_flipper!
use_flipper!({ 'Flipper' => '0.75.0' })
And update your Pods
cd ios/
optionally reinstall all your Pods if you're still having issues
pod deintegrate
pod update
If you performed a build which failed, you might want to clear DerivedData like so
rm -rf ~/Library/Developer/Xcode/DerivedData/
Since am running react-native 0.64 I also had to add this to my pod file

How to build Beanshell with ANT?

I have a task: to build this project I have a project git clone --depth 1 --branch 2.0b6 https://github.com/beanshell/beanshell.gitfrom sources whit JDK11 or report that sources are broken or report that they are incompatible with JDK 11. For that I have change build.xml to <javac target="1.8" then ran ant
And got the following error:
compile:
[javac] /home/katya/tmp_work/beanshell/build.xml:176: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 48 source files to /home/katya/tmp_work/beanshell/classes
[javac]
[javac] WARNING
[javac]
[javac] The -source switch defaults to 9 in JDK 9.
[javac] If you specify -target 1.8 you now must also specify -source 1.8.
[javac] Ant will implicitly add -source 1.8 for you. Please change your build file.
[javac] warning: [options] bootstrap class path not set in conjunction with -source 8
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/AWTDemoApplet.java:30: warning: [deprecation] Applet in java.applet has been deprecated
[javac] import java.applet.Applet;
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/AWTRemoteApplet.java:30: warning: [deprecation] Applet in java.applet has been deprecated
[javac] import java.applet.Applet;
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/AWTConsole.java:122: warning: [deprecation] getModifiers() in InputEvent has been deprecated
[javac] type( e.getKeyCode(), e.getKeyChar(), e.getModifiers() );
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/AWTConsole.java:146: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
[javac] if ( (modifiers & InputEvent.CTRL_MASK) > 0 ) {
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/AWTConsole.java:173: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
[javac] if ( (modifiers & InputEvent.CTRL_MASK) > 0 ) {
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/AWTConsole.java:217: warning: TextComponentPeer is internal proprietary API and may be removed in a future release
[javac] ((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition(
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/AWTConsole.java:217: error: cannot find symbol
[javac] ((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition(
[javac] ^
[javac] symbol: method getPeer()
[javac] location: class AWTConsole
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/AWTDemoApplet.java:38: warning: [deprecation] Applet in java.applet has been deprecated
[javac] public class AWTDemoApplet extends Applet
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/AWTRemoteApplet.java:39: warning: [deprecation] Applet in java.applet has been deprecated
[javac] public class AWTRemoteApplet extends Applet
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/JConsole.java:227: warning: [deprecation] getModifiers() in InputEvent has been deprecated
[javac] if ( (e.getModifiers() & InputEvent.CTRL_MASK) > 0 ) {
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/JConsole.java:227: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
[javac] if ( (e.getModifiers() & InputEvent.CTRL_MASK) > 0 ) {
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/JConsole.java:263: warning: [deprecation] getModifiers() in InputEvent has been deprecated
[javac] if (( (e.getModifiers() & InputEvent.CTRL_MASK) > 0 )
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/JConsole.java:263: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
[javac] if (( (e.getModifiers() & InputEvent.CTRL_MASK) > 0 )
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/JConsole.java:281: warning: [deprecation] getModifiers() in InputEvent has been deprecated
[javac] (e.getModifiers() &
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/JConsole.java:282: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
[javac] (InputEvent.CTRL_MASK
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/JConsole.java:283: warning: [deprecation] ALT_MASK in InputEvent has been deprecated
[javac] | InputEvent.ALT_MASK | InputEvent.META_MASK)) == 0 )
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/JConsole.java:283: warning: [deprecation] META_MASK in InputEvent has been deprecated
[javac] | InputEvent.ALT_MASK | InputEvent.META_MASK)) == 0 )
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/JDemoApplet.java:38: warning: [deprecation] JApplet in javax.swing has been deprecated
[javac] public class JDemoApplet extends JApplet
[javac] ^
[javac] /home/katya/tmp_work/beanshell/src/bsh/util/JRemoteApplet.java:39: warning: [deprecation] JApplet in javax.swing has been deprecated
[javac] public class JRemoteApplet extends JApplet
[javac] ^
[javac] /home/katya/tmp_work/beanshell/tests/src/InterfaceImpl.java:5: warning: [deprecation] Integer(int) in Integer has been deprecated
[javac] public Integer getInteger() { return new Integer(5); }
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
[javac] 20 warnings
in the same time it is impossible to build this project with Maven. Could you tell me how to build beanshell version 2.0b6 with JDK 11 ?

Any iOS Device build errors after WebRTC's XCFramework update

I'm getting errors after I have updated to XCFramework of WebRTC. Here's manual instruction of it: https://swiftpackageregistry.com/alexpiezo/WebRTC
...missing required architecture armv7...
I don't need for Mac, so my steps like that:
gn gen ./out/ios_arm64 --args='target_os="ios" target_cpu="arm64" is_component_build=false is_debug=false ios_deployment_target="10.0" rtc_libvpx_build_vp9=true use_goma=false ios_enable_code_signing=false enable_stripping=true enable_ios_bitcode=false'
gn gen out/ios_x64 --args='target_os="ios" target_cpu="x64" is_component_build=false is_debug=false ios_deployment_target="10.0" rtc_libvpx_build_vp9=true use_goma=false ios_enable_code_signing=false enable_stripping=true enable_ios_bitcode=false'
ninja -C out/ios_arm64 sdk:framework_objc
ninja -C out/ios_x64 sdk:framework_objc
xcodebuild -create-xcframework \
-framework ./out/ios_arm64/WebRTC.framework \
-framework ./out/ios_x64/WebRTC.framework \
-output ./out/WebRTC.xcframework
It's working on iOS Simulators and real devices but Any iOS Device (arm64, armv7) does not work.
Undefined symbol: _OBJC_CLASS_$_RTCMediaConstraints
Undefined symbol: _kRTCMediaStreamTrackKindVideo
Undefined symbol: _OBJC_CLASS_$_RTCAudioSessionConfiguration
Undefined symbol: _OBJC_CLASS_$_RTCAudioSession
Undefined symbol: _OBJC_CLASS_$_RTCIceCandidate
Undefined symbol: _OBJC_CLASS_$_RTCIceServer
Undefined symbol: _OBJC_CLASS_$_RTCConfiguration
Undefined symbol: _OBJC_CLASS_$_RTCCallbackLogger
Undefined symbol: _OBJC_CLASS_$_RTCPeerConnectionFactory
Undefined symbol: _OBJC_CLASS_$_RTCDispatcher
Undefined symbol: _OBJC_CLASS_$_RTCDefaultVideoDecoderFactory
Undefined symbol: _OBJC_CLASS_$_RTCSessionDescription
Undefined symbol: _RTCSetMinDebugLogLevel
Undefined symbol: _OBJC_CLASS_$_RTCRtpTransceiverInit
Undefined symbol: _OBJC_CLASS_$_RTCCameraVideoCapturer
Undefined symbol: _OBJC_METACLASS_$_RTCEAGLVideoView
Undefined symbol: _OBJC_CLASS_$_RTCDefaultVideoEncoderFactory
Undefined symbol: _OBJC_CLASS_$_RTCEAGLVideoView
Is there any advice what should I do to overcome it?
Use the following as an argument to gn gen:
--args='target_os="ios" ios_enable_code_signing=false use_xcode_clang=true is_component_build=false rtc_include_tests=false is_debug=false target_cpu="arm64" ios_deployment_target="10.0" rtc_libvpx_build_vp9=false enable_ios_bitcode=false use_goma=false rtc_enable_symbol_export=true enable_dsyms=true enable_stripping=true'
The key here is the rtc_enable_symbol_export=true argument.

xcodebuild error: action 'archive' is not implemented

xcodebuild archive -archivePath ${archive_path} -workspace ${workspace_path} -scheme ${scheme} -configuration ${configuration} -sdk iphoneos
warning: unhandled ProductType key IsUnitTest
warning: unhandled ProductType key IsUITest
warning: unhandled ProductType key IsUnitTest
warning: unhandled ProductType key IsUnitTest
warning: unhandled ProductType key IsUITest
warning: unhandled ProductType key IsUnitTest
error: cannot find base BuildSystem specification 'embedded-shared:com.apple.buildsettings.standard'
error: cannot find base ProductType specification 'embedded-shared:com.apple.product-type.framework'
error: cannot find base ProductType specification 'embedded-shared:com.apple.product-type.xpc-service'
error: cannot find base ProductType specification 'embedded:com.apple.product-type.pluginkit-plugin'
error: cannot find base BuildSystem specification 'embedded:com.apple.build-system.core'
error: cannot find base BuildSystem specification 'embedded:com.apple.build-system.native'
error: cannot find base Linker specification 'embedded:com.apple.pbx.linkers.ld'
error: cannot find base ProductType specification 'embedded-simulator:com.apple.product-type.pluginkit-plugin'
error: action 'archive' is not implemented
warning: export archive not implemented
E, [2017-04-12T17:52:04.100088 #11625] ERROR -- : File does not exist

Amazon EMR tutorial example doesn't compile with ant

I am trying to do the tutorial of Amazon EMR (Elastic MapReduce) https://www.youtube.com/embed/ZSu8N2PoVbM?rel=0&hd=1;autoplay=1
I downloaded the tutorial example http://elasticmapreduce.s3.amazonaws.com/training/wikipedia-lab.tgz, which counts the number of bigrams in a collection of wikipedia documents. I get stuck a the very beginning:
2. Build the job jar
[On your dev machine]
% ant clean job
This will create the wikipedia-ngrams-job.jar Hadoop job jar
file in your build sub-directory. If you have Hadoop installed on
your development machine, you can try running it locally via:
% hadoop jar build/wikipedia-ngrams-job.jar -inputfile src/test/resources/enwiki-split.xml -outputdir build/test
This will generate text output files in build/test/raw-counts and build/test/sorted-counts.
To view the results, you can dump the output (these are text files), e.g.
% cat build/test/sorted-counts/part-r-00000
Here is the terminal output:
> ant clean job
Buildfile: /Users/jfk/work/data/aws_s3/wikipedia-lab/build.xml
clean:
[echo] cleaning wikipedia-ngrams
mvn-init:
[artifact:dependencies] [WARNING] POM for 'org.codehaus.janino:janino:pom:2.5.16:compile' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.codehaus.janino:janino at /Users/jfk/.m2/repository/org/codehaus/janino/janino/2.5.16/janino-2.5.16.pom
[...]
compile:
[mkdir] Created dir: /Users/jfk/work/data/aws_s3/wikipedia-lab/build/classes-main
[javac] Compiling 14 source files to /Users/jfk/work/data/aws_s3/wikipedia-lab/build/classes-main
[javac] error: error reading /Users/jfk/.m2/repository/org/codehaus/janino/janino/2.5.16/janino-2.5.16.jar; cannot read zip file
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/amazon/aws/training/emr/wikipedia/NgramsJobOptions.java:9: package org.apache.commons.lang.builder does not exist
[javac] import org.apache.commons.lang.builder.ReflectionToStringBuilder;
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/amazon/aws/training/emr/wikipedia/NgramsJobOptions.java:10: package org.apache.commons.lang.builder does not exist
[javac] import org.apache.commons.lang.builder.ToStringStyle;
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/scaleunlimited/wikipedia/ProcessXmlOptions.java:3: package org.apache.commons.lang.builder does not exist
[javac] import org.apache.commons.lang.builder.ReflectionToStringBuilder;
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/scaleunlimited/wikipedia/ProcessXmlOptions.java:4: package org.apache.commons.lang.builder does not exist
[javac] import org.apache.commons.lang.builder.ToStringStyle;
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/scaleunlimited/wikipedia/SplitXmlOptions.java:3: package org.apache.commons.lang.builder does not exist
[javac] import org.apache.commons.lang.builder.ReflectionToStringBuilder;
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/scaleunlimited/wikipedia/SplitXmlOptions.java:4: package org.apache.commons.lang.builder does not exist
[javac] import org.apache.commons.lang.builder.ToStringStyle;
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/scaleunlimited/wikipedia/SplitXmlTool.java:17: package org.apache.commons.io does not exist
[javac] import org.apache.commons.io.IOUtils;
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/amazon/aws/training/emr/wikipedia/NgramsJobOptions.java:84: cannot find symbol
[javac] symbol : variable ToStringStyle
[javac] location: class com.amazon.aws.training.emr.wikipedia.NgramsJobOptions
[javac] return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/amazon/aws/training/emr/wikipedia/NgramsJobOptions.java:84: cannot find symbol
[javac] symbol : variable ReflectionToStringBuilder
[javac] location: class com.amazon.aws.training.emr.wikipedia.NgramsJobOptions
[javac] return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/scaleunlimited/wikipedia/ProcessXmlOptions.java:41: cannot find symbol
[javac] symbol : variable ToStringStyle
[javac] location: class com.scaleunlimited.wikipedia.ProcessXmlOptions
[javac] return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/scaleunlimited/wikipedia/ProcessXmlOptions.java:41: cannot find symbol
[javac] symbol : variable ReflectionToStringBuilder
[javac] location: class com.scaleunlimited.wikipedia.ProcessXmlOptions
[javac] return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/scaleunlimited/wikipedia/SplitXmlOptions.java:52: cannot find symbol
[javac] symbol : variable ToStringStyle
[javac] location: class com.scaleunlimited.wikipedia.SplitXmlOptions
[javac] return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/scaleunlimited/wikipedia/SplitXmlOptions.java:52: cannot find symbol
[javac] symbol : variable ReflectionToStringBuilder
[javac] location: class com.scaleunlimited.wikipedia.SplitXmlOptions
[javac] return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
[javac] ^
[javac] /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/scaleunlimited/wikipedia/SplitXmlTool.java:128: cannot find symbol
[javac] symbol : variable IOUtils
[javac] location: class com.scaleunlimited.wikipedia.SplitXmlTool
[javac] InputStream is = IOUtils.toInputStream(xml, "UTF-8");
[javac] ^
[javac] Note: /Users/jfk/work/data/aws_s3/wikipedia-lab/src/main/java/com/scaleunlimited/wikipedia/ProcessXmlTool.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 15 errors
BUILD FAILED
/Users/jfk/work/data/aws_s3/wikipedia-lab/build.xml:70: Compile failed; see the compiler error output for details.
Total time: 2 seconds
Any help is welcome.
Deleting the .m2/repository directory
and then executing mvn clean install helped me

Resources