I want to embed chrome inside a SWT application. I was trying with JCEF. But not able to succeed.
I came across the following link: How to integrate Chromium Embedded Framework (CEF) with java
But I don't want to use maven as mentioned in step3.
I need a step by step details of how to embed a chrome.
If you can't build JCEF you can use some maven builds and forks like:
GitHub: Pandomium - fork with maven builds and natvies
Maven: JavaCef - clean maven builds
~ I dont want to use maven
Maven just hosts jar files so you can download it and add to your project manually but it's not recommended at all.
Since you're using SWT, I think that you should checkout this: Browser implement Chromium support
This request lead to this project: Chromium for SWT
Currently is working on version 59 of chormium and uses the SWT Browser API.
Related
I am following AEM tutorial wknd tutorial. I have created the project using archetype and installed it on local AEM instance. Unlike the tutorial when i create a new page i do not get the option to drag and drop components and neither am i able to find any components in side rail.
I went to the template to edit it in design mode and enable components but could not find design mode to edit it to enable components.
I am not sure what to do to follow along with the tutorial. Any help is much appreciated.
I was able to resolve the issue by installing the wknd project again using -Pclassic option in the maven command. The project was designed for Cloud service but after reading the description in github for AEM 6.x.x it worked.
Building for AEM 6.x.x
The project has been designed for AEM as a Cloud Service. The project is also backward compatible with AEM 6.4.8 and 6.5.5 by adding the classic profile when executing a build, i.e:
mvn clean install -PautoInstallSinglePackage -Pclassic
TL;DR -> How to integrate a local Opendaylight Karaf App in the Opendaylight integration/distribution project, for local use? I am not looking to publish my code to upstream to official opendaylight repositories.
I am trying to understand how to make changes to source code of certain features in Opendaylight to fulfill my custom use-cases.
For this, I downloaded the Netconf Source code from "https://git.opendaylight.org/gerrit/netconf" and the distribution source code from "https://git.opendaylight.org/gerrit/integration/distribution".
I made certain modifications in the Netconf Code and built it using mvn clean install -Pq -Dcheckstyle.skip.
Now, how do I go about integrating these updates in the integration/distribution project?
FYI:
I am working on ODL "release/oxygen-sr2". However, I realise that newer versions are available and I am open to shifting to them.
Using Java 8 and Maven 3.6.0
I had been suggested that I could just maven build the Netconf Project code and run Apache Karaf from there. Any other feature could then be installed via the Karaf CLI. But, my use case would require modifications on multiple existing features and even creating a new feature. Therefore, this solution also doesn't work for me as I would still need to integrate everything in one central project.
Actually, it's pretty simple, but maybe not obvious. Build all the projects you
want locally, then build the integration/distribution project. Any artifacts it
finds in the local m2 repo will be used for the final int/dist karaf that will
get created.
in other words, for every project you want to customize, pull that repo, make
your changes, build it. Then as a last step, build the int/dist project.
I'm used to Visual Studio, so Eclipse is very new for me.
I have to start (ASAP) developing a project that contains 3 subprojects:
1 - Business logic library with Hibernate support
2 - JavaFX configuration utility
3 - Spring MVC app with a lot of JavaScript inside
2 and 3 use 1 as a core.
I've tried to google manual but all of them were about parts of this task, nothing about the complete solution.
I can create all 3 projects and put them in same subdirs in a solution directory. But how to connect them to core lib? Maven looks great for it, but I can't explain him how modules have to be connected.
How to make such a structure?
At the risk of being shot down in flames, in my opinion Eclipse does not handle structured projects as well as Visual Studio. (I program Java/Eclipse at work and use VS aka Atmel Studio at home for hobbyist C++/Arduino projects).
In Eclipse, I have found to best to check out each component to the top level and compile each component separately (mvn clean install). The output of this is generally a .jar file that will be installed in your local maven repository. You then list that jar as a dependency in the pom.xml file of the higher-level components.
I suggest you install M2Eclipse or some other Maven client into Eclipse. They are not perfect, but are far more productive than doing everything manually.in my opinion.
Also Eclipse supports multiple workspaces quite well. One workspace per major multi-component project works well.
I recently found the library Libsodium and was glad that there are also Bindings for Java. Unfortunately, the libraries don't appear to work with Windows because they were developed for other systems.
How can I use the libraries under Windows (if possible)?
Are there any alternative libraries for Java?
On that page for other bindings, you find the Java binding is called Kalium. You'll see it requires Apache Maven. So I went and got that (at the bottom it explains how to install maven, but basically you just add some environment variables).
Now on to kalium, I got it from their abstract on github. I needed mvn clean install from the directory in order to install it in Maven. After changing directory to the unzipped Kalium folder I ran the specified command (which is telling Maven to get the files and install Kalium). This will handle the rest of the set-up.
Then it's just a matter of adding it as a dependency in your Maven projects as per the Kalium readme. As for libsodium: it is a library that works with MinGW, and VisualStudio in Windows. So if you want to do C/C++ coding you can use that instead. But for the Java binding it seems you'll have deploy it using Maven.
It would be even better if the same standalone tool can also support browsing repositories over other protocols than file system
I've found this simple tool which is great
http://code.google.com/p/mycila/wiki/MavenDeployer
The small tool maven-install-ui (https://github.com/escv/maven-install-ui) offers a simple UI to install jar files locally.
Well, NetBeans comes at least with a local Maven repository browser, but I think it currently doesn't have a GUI to install new jars
why not use the atifactory . You can install new jars from web UI