I don’t know the MTOW here, but I can try to find out.
Using generalised very conservative flight manual aircraft performance based on that runway length in a C4 engined A340-300 you would have to reduce your take off weight from 262 tonnes to 245 tonnes. Now if we had airfield specific performance charts that figure would increase however local topography (I don’t know the lay out of surrounding obstacles in the local net take off flight path) may cause the weight to come down again.
In reality you’d fill up with payload and take enough fuel to go somewhere with a longer runway to top up and head home. This is what happens sometimes with Skiathos-Thessaloniki, Zakinthos-Keffalonia, etc.