iOS Question Problems installing on Mac

Andrew Lindsay

Member
Licensed User
Longtime User
Hello,


I¹ve only just had a chance to try to install B4i on my mac.


I have downloaded Java8, opened a Terminal window and typed the command, now

I get the following error, with the java stalled.


What do I need to do? I am running OS Mavericks


B4X:
ANDREWLDSAYsMBP:b4i andrewlindsay$ java -jar B4iBuildServer.jar Build server

version: 1.01 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2014-11-22 02:00:40.542:INFO::main: Logging initialized @1802ms Loading

default configuration file.

AppPath=/Users/andrewlindsay/Documents/B4i

Creating key for: 192.168.1.94

2014-11-22 02:00:47.916:INFO:oejs.Server:main: jetty-9.1.z-SNAPSHOT

2014-11-22 02:00:47.995:WARN:oejh.MimeTypes:main:

java.util.MissingResourceException: Can't find bundle for base name

org/eclipse/jetty/http/encoding, locale en_US

2014-11-22 02:00:48.091:INFO:oejsh.ContextHandler:main: Started

o.e.j.s.ServletContextHandler@2a18f23c{/,file:/Users/andrewlindsay/Document

s/B4i/www,AVAILABLE}

2014-11-22 02:00:48.102:INFO:oejs.AbstractNCSARequestLog:main: Opened

/Users/andrewlindsay/Documents/B4i/logs/b4j-2014_11_21.request.log

2014-11-22 02:00:48.193:WARN:oejuc.AbstractLifeCycle:main: FAILED

ServerConnector@4ec6a292{HTTP/1.1}{0.0.0.0:51041}: java.net.BindException:

Address already in use

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:436)

at sun.nio.ch.Net.bind(Net.java:428)

at

sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at

org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:279)

at

org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkCo

nnector.java:80)

at

org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:218)

at

org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.

java:68)

at org.eclipse.jetty.server.Server.doStart(Server.java:337)

at

org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.

java:68)

at

anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:151)

at b4j.example.main._appstart(main.java:116)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:6

2)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp

l.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)

at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)

at b4j.example.main.main(main.java:28)

2014-11-22 02:00:48.197:WARN:oejuc.AbstractLifeCycle:main: FAILED

ServerConnector@1b40d5f0{SSL-http/1.1}{0.0.0.0:51042}:

java.net.BindException: Address already in use

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:436)

at sun.nio.ch.Net.bind(Net.java:428)

at

sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at

org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:279)

at

org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkCo

nnector.java:80)

at

org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:218)

at

org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.

java:68)

at org.eclipse.jetty.server.Server.doStart(Server.java:337)

at

org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.

java:68)

at

anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:151)

at b4j.example.main._appstart(main.java:116)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:6

2)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp

l.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)

at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)

at b4j.example.main.main(main.java:28)

2014-11-22 02:00:48.199:WARN:oejuc.AbstractLifeCycle:main: FAILED

org.eclipse.jetty.server.Server@ea4a92b:

MultiException[java.net.BindException: Address already in use,

java.net.BindException: Address already in use]

MultiException[java.net.BindException: Address already in use,

java.net.BindException: Address already in use]

at org.eclipse.jetty.server.Server.doStart(Server.java:303)

at

org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.

java:68)

at

anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:151)

at b4j.example.main._appstart(main.java:116)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:6

2)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp

l.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)

at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)

at b4j.example.main.main(main.java:28)

main._appstart (java line: 116)

MultiException[java.net.BindException: Address already in use,

java.net.BindException: Address already in use]

at org.eclipse.jetty.server.Server.doStart(Server.java:303)

at

org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.

java:68)

at

anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:151)

at b4j.example.main._appstart(main.java:116)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:6

2)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp

l.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)

at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)

at b4j.example.main.main(main.java:28)

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:436)

at sun.nio.ch.Net.bind(Net.java:428)

at

sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at

org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:279)

at

org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkCo

nnector.java:80)

at

org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:218)

at

org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.

java:68)

at org.eclipse.jetty.server.Server.doStart(Server.java:337)

at

org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.

java:68)

at

anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:151)

at b4j.example.main._appstart(main.java:116)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:6

2)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp

l.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)

at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)

at b4j.example.main.main(main.java:28)

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:436)

at sun.nio.ch.Net.bind(Net.java:428)

at

sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at

org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:279)

at

org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkCo

nnector.java:80)

at

org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:218)

at

org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.

java:68)

at org.eclipse.jetty.server.Server.doStart(Server.java:337)

at

org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.

java:68)

at

anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:151)

at b4j.example.main._appstart(main.java:116)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:6

2)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp

l.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)

at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)

at b4j.example.main.main(main.java:28)



main.main (java line: 28)

java.lang.RuntimeException: MultiException[java.net.BindException: Address

already in use, java.net.BindException: Address already in use]

at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)

at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)

at b4j.example.main.main(main.java:28)

Caused by: MultiException[java.net.BindException: Address already in use,

java.net.BindException: Address already in use]

at org.eclipse.jetty.server.Server.doStart(Server.java:303)

at

org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.

java:68)

at

anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:151)

at b4j.example.main._appstart(main.java:116)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:6

2)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp

l.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)

... 2 more
 

billzhan

Active Member
Licensed User
Longtime User
Port 51042 is already in use, maybe the builder is already running.

ServerConnector@1b40d5f0{SSL-http/1.1}{0.0.0.0:51042}:

java.net.BindException: Address already in use

java.net.BindException: Address already in use
 
Upvote 0

Andrew Lindsay

Member
Licensed User
Longtime User
Port 51042 is already in use, maybe the builder is already running.
OK thanks. I've rebooted, now I get it installed, the builder is running, but I don't have an IDE. Is there an idiot's guide to setting up a mac somewhere in the forums?
Any assistance would be greatly apprecoated.

Best regards

Andrew
 
Upvote 0

Andrew Lindsay

Member
Licensed User
Longtime User
OK, so now I have gotten this far.
B4X:
ANDREWLDSAYsMBP:b4i andrewlindsay$ java -jar B4iBuildServer.jar
Build server version: 1.01
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2014-11-23 07:30:37.624:INFO::main: Logging initialized @592ms
Loading default configuration file.
AppPath=/Users/andrewlindsay/Documents/b4i
2014-11-23 07:30:38.118:INFO:oejs.Server:main: jetty-9.1.z-SNAPSHOT
2014-11-23 07:30:38.203:WARN:oejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name org/eclipse/jetty/http/encoding, locale en_US
2014-11-23 07:30:38.271:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@3ecf72fd{/,file:/Users/andrewlindsay/Documents/B4i/www,AVAILABLE}
2014-11-23 07:30:38.279:INFO:oejs.AbstractNCSARequestLog:main: Opened /Users/andrewlindsay/Documents/B4i/logs/b4j-2014_11_22.request.log
2014-11-23 07:30:38.367:INFO:oejs.ServerConnector:main: Started ServerConnector@3ab39c39{HTTP/1.1}{0.0.0.0:51041}
2014-11-23 07:30:39.270:INFO:oejs.ServerConnector:main: Started ServerConnector@d44fc21{SSL-http/1.1}{0.0.0.0:51042}
2014-11-23 07:30:39.272:INFO:oejs.Server:main: Started @2260ms
Build server is ready
https://192.168.1.94:51042
http://192.168.1.94:51041

The cursor just sits there, but I don'y have a GUI. Is the Editor created as another app during the installation process, because if it is it is well hidden as it doesn't appear anywhere that is obvious...

I've tried following the tutorials, but the first one that says open the link http://www.b4x.com/ca.pem, so I do that, I get a text screen with the certificate key, but nothing else. WTF???

The tutorials are not very helpful.

Any assistance from people that have installed the app on a Mac would be appreciated.
 
Upvote 0

billzhan

Active Member
Licensed User
Longtime User
iOS 7+ devices are needed.

Open http://www.b4x.com/ca.pem with your iOS device safari, and click OK to install profile. See
http://www.b4x.com/android/forum/threads/installing-b4i-bridge-and-debugging-first-app.45871/


Log shows that your local builder is working.

Developers who use a local Mac: Local Mac Builder Installation
- You can test that the server is running by going to the following link: http://<server ip>:51041/test

You need to set windows IDE (port # should be 51042):
6. Set the builder IP address in the IDE under Tools - Build Server - Server Settings



Note that v1.2 is released, you may want to upgrade the windows IDE &Mac builder together later.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The IDE runs on the Windows machine and connects through the network to the Mac.

The Mac software will not show any UI.

You can test whether there is a server running with this link: http://<ip address>:51041/test

There is no need to reboot the computer to kill the server. If it is not open from the terminal then you can kill the java process with Activity Monitor.
 
Upvote 0
Top