JCEF with Netbeans 7.3

Having problems with building or using the JCEF Java binding? Ask your questions here.

JCEF with Netbeans 7.3

Postby rover886 » Tue Dec 16, 2014 3:31 am

I want to make browser embedded java application using JCEF. for that I have downloaded JCEF binary from This URL. I have tried running compile.bat and run.bat all goes successful and fine. Now I want to integrate into an java application for that I have created an new project in Netbeans 7.3 and copied MainFrame.java from "\bin\tests\simple" I also added all the jars as dependencies (look at the image)

Image

When I try to build the application I got error as

Failed to execute goal on project mavenproject1: Could not resolve dependencies for project test:mavenproject1:jar:1.0-SNAPSHOT: Failed to collect dependencies for [cef.jcef:jcef:jar:3.1750.1738 (compile), cef.jcef:gluegen-rt:jar:1 (compile), cef.jcef:gluegen-rt-natives-windows-amd64:jar:1 (compile), cef.jcef:jcef-tests:jar:1 (compile), cef.jcef:jogl-all:jar:1 (compile), cef.jcef:jogl-all-natives-windows-amd64:jar:1 (compile)]: Failed to read artifact descriptor for cef.jcef:jcef:jar:3.1750.1738: Could not transfer artifact cef.jcef:jcef:pom:3.1750.1738 from/to SVNServer (http://10.2.10.83:8081/artifactory/libs-release): Not authorized, ReasonPhrase:Unauthorized.


This seems application cannot find dependencies while building the application. I tired all to get it run successful but I am not able to do it. Where I am doing wrong?
rover886
Techie
 
Posts: 19
Joined: Fri Mar 14, 2014 4:34 am

Re: JCEF with Netbeans 7.3

Postby Zerberbuth » Tue Dec 16, 2014 4:19 pm

Did you upload the JCEF jars and dependencies to a Maven repository? It seems you added the jar files to the project as dependencies from the file system but not configured them in Maven. Please show the contents of the pom.xml file.
Zerberbuth
Newbie
 
Posts: 8
Joined: Fri Jun 06, 2014 7:39 am

Re: JCEF with Netbeans 7.3

Postby rover886 » Wed Dec 17, 2014 1:26 am

Zerberbuth wrote:Please show the contents of the pom.xml file.


Content of pom.xml

Code: Select all
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>test</groupId>
  <artifactId>mavenproject1</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>mavenproject1</name>
  <url>http://maven.apache.org</url>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
    <dependency>
      <groupId>cef.jcef</groupId>
      <artifactId>jcef</artifactId>
      <version>3.1750.1738</version>
    </dependency>
    <dependency>
      <groupId>cef.jcef</groupId>
      <artifactId>gluegen-rt</artifactId>
      <version>1</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>cef.jcef</groupId>
      <artifactId>gluegen-rt-natives-windows-amd64</artifactId>
      <version>1</version>
    </dependency>
    <dependency>
      <groupId>cef.jcef</groupId>
      <artifactId>jcef-tests</artifactId>
      <version>1</version>
    </dependency>
    <dependency>
      <groupId>cef.jcef</groupId>
      <artifactId>jogl-all</artifactId>
      <version>1</version>
    </dependency>
    <dependency>
      <groupId>cef.jcef</groupId>
      <artifactId>jogl-all-natives-windows-amd64</artifactId>
      <version>1</version>
    </dependency>
  </dependencies>
</project>


Zerberbuth wrote:Did you upload the JCEF jars and dependencies to a Maven repository?


Yes, I have uploaded JCEF jars in local repo. (I can see all jars are present in my .m2 folder).
rover886
Techie
 
Posts: 19
Joined: Fri Mar 14, 2014 4:34 am

Re: JCEF with Netbeans 7.3

Postby rover886 » Wed Dec 17, 2014 6:30 am

Problem is solved. Problem is may be jar is wrongly deployed on local repo. Previously I have deployed jar from netbeans because of which pom.xml for jar in repo is not created. When I deployed jar into repository using STS (Spring Tool Suite) now it's working. Thank you for help. :)
rover886
Techie
 
Posts: 19
Joined: Fri Mar 14, 2014 4:34 am


Return to JCEF Forum

Who is online

Users browsing this forum: Google [Bot] and 24 guests