This question already has an answer here:
I read a book about students who were graduating from some kind of academy where they trained to be the first people visiting a new planet and to scout it out or otherwise prepare it for colonisation. There is some kind of technology available on earth like a waygate that colonists can pass through to reach the other planet.
The problem is, this class of graduates end up being lost on the other planet, instead of returning to earth a few days or weeks after they arrive on the other planet and graduating, they are stuck there because there is some malfunction with the waygate back on earth or perhaps interference from a supernova.
Eventually after months or years they have established a society within some caves on the planet with their own form of crude government. Only then does a waygate open up from earth again and they are rescued.
Could anyone identify this story for me please?