file_util.py except IOError - SyntaxError: invalid syntax

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

Re: file_util.py except IOError - SyntaxError: invalid synta

Postby pinheirojava » Fri Aug 31, 2018 5:50 am

Czarek wrote:Delete that zip file. Re-run command. Check permissions on CEF folders.


The problem was permission to download using the network from my work.


At home I have managed the build successfully.

But after the Solution build he JCEF.jar was not created when I generate the Build distribution.

To use the component in my Java project do I need to generate the JCEF.JAR? Is it Correct ?

Thanks
pinheirojava
Techie
 
Posts: 22
Joined: Wed Aug 29, 2018 7:00 am

Re: file_util.py except IOError - SyntaxError: invalid synta

Postby Czarek » Fri Aug 31, 2018 6:38 am

Provide logs of what happened and directory structure of what was created.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: file_util.py except IOError - SyntaxError: invalid synta

Postby pinheirojava » Fri Aug 31, 2018 8:50 am

Czarek wrote:Provide logs of what happened and directory structure of what was created.


Why is there no repository with JCEF already built?
It would be so much easier for those who do not have so much experience with Java.

Could you please do Build for me?
I need to use URGENT!
My deadline is over at work! I'm going to get fired!
I'm trying to 1 week!

Thanks!
pinheirojava
Techie
 
Posts: 22
Joined: Wed Aug 29, 2018 7:00 am

Re: file_util.py except IOError - SyntaxError: invalid synta

Postby pinheirojava » Fri Aug 31, 2018 10:00 am

Czarek wrote:Provide logs of what happened and directory structure of what was created.


I brought the Solution that I generated at home here to work.
jcef_build_folders.JPG
jcef build folders
jcef_build_folders.JPG (42.37 KiB) Viewed 25115 times



But when I build the Solution in Visual Studio the following error appears:
c:\jcef\src\native\CefApp.h(2): fatal error C1083: Cannot open include file: 'jni.h': No such file or directory (compiling source file C:\jcef\src\native\CefApp.cpp)

solution_error_1.JPG
solution_error_1.JPG (98.8 KiB) Viewed 25115 times

solution_error_2.JPG
solution_error_2.JPG (74.7 KiB) Viewed 25115 times
pinheirojava
Techie
 
Posts: 22
Joined: Wed Aug 29, 2018 7:00 am

Re: file_util.py except IOError - SyntaxError: invalid synta

Postby Czarek » Fri Aug 31, 2018 10:12 am

Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: file_util.py except IOError - SyntaxError: invalid synta

Postby pinheirojava » Fri Aug 31, 2018 10:12 am

I finally have managed the distribution.
But I'm not finding jcef.jar.


Here are the screens:

build_distribution_3.JPG
build_distribution_3.JPG (32.26 KiB) Viewed 25113 times

build_distribution_2.JPG
build_distribution_2.JPG (22.14 KiB) Viewed 25113 times

build_distribution_1.JPG
build_distribution_1.JPG (16.25 KiB) Viewed 25113 times



Error:
C:\jcef\src\binary_distrib\win64>java -cp "./bin;./bin/*" -Djava.library.path=./bin/lib/win64 tests.detailed.MainFrame
Erro: Could not find or load main class tests.detailed.MainFrame
Caused by: java.lang.ClassNotFoundException: tests.detailed.MainFrame

C:\jcef\src\binary_distrib\win64>
pinheirojava
Techie
 
Posts: 22
Joined: Wed Aug 29, 2018 7:00 am

Re: file_util.py except IOError - SyntaxError: invalid synta

Postby Czarek » Fri Aug 31, 2018 10:51 am

Follow all the build instructions. Read it carefully 5 times until you get it.
https://bitbucket.org/chromiumembedded/ ... uilding.md
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: file_util.py except IOError - SyntaxError: invalid synta

Postby pinheirojava » Fri Aug 31, 2018 11:52 am

Czarek wrote:Follow all the build instructions. Read it carefully 5 times until you get it.
https://bitbucket.org/chromiumembedded/ ... uilding.md


I'm thinking that I'm participating in a "treasure hunt."
I've read it several times and I do not know what's missing now.

Are the generated files correct?

What is missing ? Can you help me, please ?
pinheirojava
Techie
 
Posts: 22
Joined: Wed Aug 29, 2018 7:00 am

Re: file_util.py except IOError - SyntaxError: invalid synta

Postby Czarek » Fri Aug 31, 2018 11:56 am

Have you followed step 2 from the build instructions? You don't provide no logs, I can't help you further.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: file_util.py except IOError - SyntaxError: invalid synta

Postby pinheirojava » Fri Aug 31, 2018 12:22 pm

Czarek wrote:Have you followed step 2 from the build instructions? You don't provide no logs, I can't help you further.


2. On Windows and Linux build the JCEF Java classes using the compile.[bat|sh] tool.
cd /path/to/java-cef/src/tools
compile.bat win64

Although the command has successfully created some files it has an error on the first line.

"Javac is not recognized as internal or external command"


I have fixed this error:

set path=C:\Program Files\Java\jdk-10.0.2\bin
pinheirojava
Techie
 
Posts: 22
Joined: Wed Aug 29, 2018 7:00 am

PreviousNext

Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 12 guests