Closed GoogleCodeExporter closed 9 years ago
Your app needs to be structured as a valid OS X app bundle. Look at the
structure of the sample app in the binary distribution and see
https://code.google.com/p/chromiumembedded/wiki/GeneralUsage#Mac_OS_X.
Original comment by magreenb...@gmail.com
on 27 Jun 2014 at 3:50
Hi ! Thanks for the tip there, so to run it I had to do the following.
1. Make the working directory the bin directory which contains jcef_app.app.
/Users/orsa/home/projects/Shape/bin
2. Add java library path to be set to the path where the JAR's are kept inside
jcef_app.app
-Djava.library.path="/Users/orsa/home/projects/Shape/bin/jcef_app.app/Contents/J
ava"
Now it runs, it does give an error in the logs but it runs OK.
/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java
-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:61052,suspend=y,server=n
-Djava.library.path=/Users/orsa/home/projects/Shape/bin/jcef_app.app/Contents/Ja
va -Dfile.encoding=UTF-8 -classpath
"/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/lib/ant-javafx.
jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/lib/dt.jar:/
Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/lib/javafx-doclet
.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/lib/javafx-
mx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/lib/jcons
ole.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/lib/sa-j
di.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/lib/tools
.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/cha
rsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/li
b/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre
/lib/htmlconverter.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Content
s/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Cont
ents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Cont
ents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Cont
ents/Home/jre/lib/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Co
ntents/Home/jre/lib/JObjC.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/
Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk
/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jd
k1.7.0_45.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines
/jdk1.7.0_45.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMa
chines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMac
hines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirt
ualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Ja
va/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Libr
ary/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/ext/sunjce_pr
ovider.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/l
ib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/
Home/jre/lib/ext/zipfs.jar:/Users/orsa/home/projects/Shape/target/scala-2.11/cla
sses:/Users/orsa/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.1
1.1.jar:/Users/orsa/home/projects/Shape/lib/jME3-bullet-natives.jar:/Users/orsa/
home/projects/Shape/lib/applet-loader.zip:/Users/orsa/home/projects/Shape/lib/jM
E3-android.jar:/Users/orsa/home/projects/Shape/lib/nifty-javadoc.jar:/Users/orsa
/home/projects/Shape/lib/jME3-niftygui.jar:/Users/orsa/home/projects/Shape/lib/j
oal.jar:/Users/orsa/home/projects/Shape/lib/jME3-desktop.jar:/Users/orsa/home/pr
ojects/Shape/lib/stack-alloc.jar:/Users/orsa/home/projects/Shape/lib/jMonkeyEngi
ne3-javadoc.zip:/Users/orsa/home/projects/Shape/lib/jME3-ios.jar:/Users/orsa/hom
e/projects/Shape/lib/retrace.jar:/Users/orsa/home/projects/Shape/lib/gluegen-rt.
jar:/Users/orsa/home/projects/Shape/lib/jME3-jogl.jar:/Users/orsa/home/projects/
Shape/lib/gluegen-rt-natives-macosx-universal.jar:/Users/orsa/home/projects/Shap
e/lib/jME3-terrain.jar:/Users/orsa/home/projects/Shape/lib/jME3-networking.jar:/
Users/orsa/home/projects/Shape/lib/nifty-style-black.jar:/Users/orsa/home/projec
ts/Shape/lib/jglfont-core.jar:/Users/orsa/home/projects/Shape/lib/jME3-testdata.
jar:/Users/orsa/home/projects/Shape/lib/jME3-bullet.jar:/Users/orsa/home/project
s/Shape/lib/jME3-lwjgl-natives.jar:/Users/orsa/home/projects/Shape/lib/nifty-def
ault-controls-javadoc.jar:/Users/orsa/home/projects/Shape/lib/jogl-all-natives-m
acosx-universal.jar:/Users/orsa/home/projects/Shape/lib/jME3-bullet-natives-andr
oid.jar:/Users/orsa/home/projects/Shape/lib/xmlpull-xpp3.jar:/Users/orsa/home/pr
ojects/Shape/lib/xstream.jar:/Users/orsa/home/projects/Shape/lib/nifty-default-c
ontrols.jar:/Users/orsa/home/projects/Shape/lib/jcef.jar:/Users/orsa/home/projec
ts/Shape/lib/jME3-core.jar:/Users/orsa/home/projects/Shape/lib/vecmath.jar:/User
s/orsa/home/projects/Shape/lib/lwjgl.jar:/Users/orsa/home/projects/Shape/lib/eve
ntbus.jar:/Users/orsa/home/projects/Shape/lib/jME3-jbullet.jar:/Users/orsa/home/
projects/Shape/lib/proguard.jar:/Users/orsa/home/projects/Shape/lib/nifty.jar:/U
sers/orsa/home/projects/Shape/lib/jogl-all.jar:/Users/orsa/home/projects/Shape/l
ib/jinput.jar:/Users/orsa/home/projects/Shape/lib/jbullet.jar:/Users/orsa/home/p
rojects/Shape/lib/jME3-lwjgl.jar:/Users/orsa/home/projects/Shape/lib/jcef-tests.
jar:/Users/orsa/home/projects/Shape/lib/j-ogg-oggd.jar:/Users/orsa/home/projects
/Shape/lib/launch4j.jar:/Users/orsa/home/projects/Shape/lib/jME3-plugins.jar:/Us
ers/orsa/home/projects/Shape/lib/jME3-effects.jar:/Users/orsa/home/projects/Shap
e/lib/jME3-blender.jar:/Users/orsa/home/projects/Shape/lib/jMonkeyEngine3-source
s.zip:/Users/orsa/home/projects/Shape/lib/jME3-openal-soft-natives-android.jar:/
Users/orsa/home/projects/Shape/lib/j-ogg-vorbisd.jar:/Users/orsa/home/projects/S
hape/lib/jME3-jogg.jar:/Applications/IntelliJ IDEA 13 CE.app/lib/idea_rt.jar"
tests.detailed.MainFrame
Connected to the target VM, address: '127.0.0.1:61052', transport: 'socket'
Offscreen rendering enabled
initialize on Thread[AWT-EventQueue-0,6,main] with library path
/Users/orsa/home/projects/Shape/bin/jcef_app.app/Contents/Java
Added scheme search://
Added scheme client://
[0628/154224:ERROR:renderer_main.cc(226)] Running without renderer sandbox
[0628/154227:INFO:CONSOLE(0)] "event.returnValue is deprecated. Please use the
standard event.preventDefault() instead.", source: (0)
shutdown on Thread[AWT-EventQueue-0,6,main]
shutdown complete
See attached image to see how I run from IntelliJ IDEA.
Original comment by philip142au@gmail.com
on 28 Jun 2014 at 7:46
Attachments:
Original comment by magreenb...@gmail.com
on 1 Jul 2014 at 5:32
Hi. I also have the same problem in the OSX. Magreenb, I understand that I'd
like to focus on keeping the distribution as a regular bundle, however, it make
it very hard to develop a new solution on Mac with JCEF, since I'm unable to
debug it, or run the application quickly through Eclipse. Suggestions?
Original comment by pe...@fluor.io
on 9 Apr 2015 at 3:44
Original issue reported on code.google.com by
philip142au@gmail.com
on 27 Jun 2014 at 3:45