How to recompile red5 code at WEB-INF? - compilation

i have editing a opensource code of red5. But i don't know how to recompile it. I use javax at cmd but can't run.
What should I do?

To compile Red5 you need to install Apache Ant and run ant in the main Red5 source directory where the build.xml file is located, or import the sources into Eclipse and build it there.
The latter method is probably much better if you want to modify the source code. There're some video tutorials made by Dominick Accattato available on YouTube. He talks about building Red5 from sources in one of them.

Related

Complete example to use external jar libs in maven-based project

I am working on a project which uses Eclipse UML libraries, which are poorly supported on maven-central. The projects works well using the related jar libs in local. Now, we plan to deploy in using jenkins and docker, so now we want to make the maven build success. When ran locally with IntelliJ IDEA, the app works but when runnin mvn install, the jar libs are (obviously) not taken into account, and the build fails (package missing etc...).
I've investigated the maven-install-plugin for hours now, and I can not find a complete example and/or a MVP, with the syntax to use multiple jars in a libs folder during the maven build.
Can someone provide one or provide pointers to a clear and working example?
A possibly helpful "collection" of solutions, or pointers to solutions, for this kind of problem, including examples and discussion, can be found in this and that stackoverflow threads.
Though one wouldn't call that "clear". But it gives you a bundle of approaches to pick for your specific case.
Edit: Oh, and here, too.

Maven in Eclipse?

I am a total beginner at maven, I have read about it online but I am still confused how it can be used. I have eclipse Oxygen version installed and when I open projects I can see maven project option is already there. I was even able to create a maven project using YouTube tutorial. But now then I saw popular plugin called m2eclipse but I am not able to comprehend why is it actually used; when my application ran without it.
I am learning maven to get started with spring boot but I am finding it really overwhelming where to begin with, and many of the tutorial sites state to download maven (But maven already comes along with eclipse?)
Please explain.
Apache Maven is a build tool - a tool for compiling the source code of a project into a program that you can run (for example a jar file, or a war file that can be deployed on a Java EE application server). Besides automating all the tasks for building a project, it also gives you a standard way to organize your project and to keep track of dependencies (libraries that your project needs).
Why do you need such a tool?
When you write a small program that consists of one, or maybe a few source files, it's easy enough to compile it by hand on the command line, by directly using the Java compiler javac that comes with the JDK.
But when your project becomes more complex, and you have hundreds or even thousands of source files in multiple modules, it becomes really hard to keep track of everything and cumbersome to compile the files using javac. If your program needs libraries, it becomes even more complex, because you have to make sure that all the libraries are on the classpath, and some libraries need other libraries, which also have to be on the classpath.
A tool such as Maven helps you to compile all the source files in the right order and to keep track of all the libraries. Maven can automatically download libraries from the web and add them to your project, and downloading everything and building the whole project can be done with one simple command such as mvn clean package.
Spring Boot is part of the Spring Framework, which is a huge framework with tons of useful functionality for developing projects in Java. A Spring Boot project typically needs dozens of libraries, and it would be very hard to use if you'd have to keep track of all those libraries by hand - so that's why it uses Maven to manage all of this for you.
A Maven project is configured using a file named pom.xml - in that file, you describe your project and you put a list of libraries that your project needs. When you build your project, Maven will read the pom.xml file and figure out automatically what source files need to be compiled, and what libraries need to be downloaded.
m2eclipse comes preinstalled in Eclipse (at least when selecting "Eclipse for Java developers" or "Eclipse for Java EE developer"), thats why you were able to use Maven by default.
Still you probably want a command line Maven, because that's most likely how it will eventually run on the CI server, sometimes Eclipse Maven installation can produce different result than the command line install.

Opencv in Maven Project

I have a question please,when using opencv in a Maven project,do I need to install opencv in my computer ?
I've added the dependency in pom.xml and the dependency was added but when running the code it said no opencv in java.library.path. It needs to specify the dll path
Thanks for your help.
"When using opencv in a Maven project, do I need to install opencv in
my computer?"
Yes, you do.
When adding dependencies you are telling the compiler where to find the library you want to use. You may not need the library to be accessible from your computer, but the files definitely need to be accessible from your project directory.
Links that may help:
Maven: Introduction to the Dependency Mechanism
Understanding Dependencies

npm vs Apache build tools(maven, ant, groovy)

I have come across npm(Node Package Manager) which is used to share the code between js developers. Since this can be achievable through the existing build tools from Apache.
What is the difference between npm(Node Package Manager) and Apache build tools(Ant, Maven, Groovy)?
npm is a package manager, designed to download code that other developers write and you want to share.
Ant and Maven are Java build tools designed to compile Java source code and turn it into a jar file that can be run. In a modern open source world we don't write all our own source code, so Maven pioneered the idea of also managing the jars that other developers write, which links with our code.
Lastly Groovy is a Java based programming language.

How do I download ksoap2-android source code, to attach in eclipse

On http://code.google.com/p/ksoap2-android/wiki/NeedHelp
It says Android Development Toolkit (Eclipse plugin) based environment you will have to manually download the source and javadoc jar files from the assembly project.
I have all ready attached the source for my javaSDK (so I believe I know what I'm doing), but I cant find where the source code for ksoap2-android is even given that download link to the assembly project.
What am I missing? Can someone tell me exactly what i should be downloading ?.
Here is the exact link, attaching in Eclipse hope fully is as easy.
https://github.com/mosabua/ksoap2-android/downloads

Resources