I have no idea if I can just run this code and it will work but here:
public void actionPerformed(ActionEvent e) {
try
{
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("c:\\Users\\Toby\\AppData\\Roaming\\.minecraft\\minecraft.exe");
}
catch(Exception a)
{
}
}
This is linked to a button, and it launches the minecraft launcher. If I want to give it to my friends, what do I have to do so that it doesn't look for the user 'Toby', but instead looks for their home folder? Sorry if its confusing!