CEF project description gives me much hope since I find HTML 5 + JS nice and easy alternative to Java's naitive GUI stuff so I want to get started with it in my idea.
I found https://github.com/viglucci/app-jcef-example.
When I right-click SimpleFrameExample and select Run SimpleFrameExample.main() I get error
- Code: Select all
/usr/lib/jvm/java-8-oracle/bin/java -javaagent:/home/rain/idea-IU-171.4694.23/lib/idea_rt.jar=38245:/home/rain/idea-IU-171.4694.23/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/home/rain/app-jcef-example-master/target/classes:/home/rain/app-jcef-example-master/src/main/resources/jogl/jogamp/jar/gluegen-rt.jar:/home/rain/app-jcef-example-master/src/main/resources/jogl/jogamp/jar/jogl-all.jar example.simple.SimpleFrameExample
Exception in thread "main" java.lang.UnsatisfiedLinkError: no cef in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.cef.CefApp.<init>(CefApp.java:154)
at org.cef.CefApp.getInstance(CefApp.java:247)
at org.cef.CefApp.getInstance(CefApp.java:234)
at example.simple.SimpleFrameExample.<init>(SimpleFrameExample.java:74)
at example.simple.SimpleFrameExample.main(SimpleFrameExample.java:149)
Process finished with exit code 1
Could you tell me how I could fix that error?