Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Launching OSBot in Java Docker container

Featured Replies

So i've been trying to setup a Java docker container for my bots,

following this thread:


My Dockerfile

 

FROM openjdk:8

ENV DISPLAY :0.0

RUN apt-get update

RUN apt-get install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev xvfb -y

RUN mkdir -p /root/OSBot/Data
RUN mkdir -p /root/OSBot/Scripts

RUN wget https://osbot.org/mvc/get -O /root/OSBot/osbot.jar

COPY map.bin /root/OSBot/Data
COPY script.jar /root/OSBot/Scripts
COPY entrypoint.sh /

ENTRYPOINT ["/entrypoint.sh"]



Im running into the following error:

Spoiler
Starting OSBot with no interfaces, inherits lowresource
Starting OSBot in low cpu mode
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
	at org.pushingpixels.neon.api.NeonCortex.getPlatform(NeonCortex.java:72)
	at org.pushingpixels.neon.api.NeonCortex.getDefaultFontPolicy(NeonCortex.java:104)
	at org.pushingpixels.substance.api.SubstanceCortex$GlobalScope.getFontPolicy(SubstanceCortex.java:510)
	at org.pushingpixels.substance.api.SubstanceCortex$GlobalScope.setSkin(SubstanceCortex.java:188)
	at org.pushingpixels.substance.api.SubstanceLookAndFeel.initialize(SubstanceLookAndFeel.java:209)
	at javax.swing.UIManager.setLookAndFeel(UIManager.java:538)
	at org.osbot.BotApplication.IiiiIiIiIII(rt:204)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.awt.HeadlessException
	at sun.awt.HeadlessToolkit.getScreenResolution(HeadlessToolkit.java:226)
	at org.pushingpixels.neon.internal.contrib.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:196)
	at org.pushingpixels.neon.internal.contrib.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:142)
	... 21 more
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
	at java.awt.Window.<init>(Window.java:536)
	at java.awt.Frame.<init>(Frame.java:420)
	at java.awt.Frame.<init>(Frame.java:385)
	at javax.swing.JFrame.<init>(JFrame.java:189)
	at org.osbot.oA.<init>(oy:208)
	at org.osbot.Boot.iIIiiiiiIII(mt:338)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
tail: cannot open '/proc//fd/1' for reading: No such file or directory
tail: no files remaining

 

 

Might wanna look into this one:

 

Also it cannot retrieve the pid of your osbot.jar (/proc//fd/1 is missing the pid) which is why tailing the log is not working.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.