I'm trying to write a bash script that will allow me to type tekkit in the cmd line and have it launch the technic launcher.What I have so far works, when you are in the same directory as the TechnicLauncher.jar.But, I'm trying to make it so I can type tekkit and have it run from anywhere.
I'm trying to get the launcher to run and these are the errors I'm getting.
Exception in thread "main" 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 net.technicpack.ui.controls.DraggableFrame.<init>(DraggableFrame.java:32)
at net.technicpack.launcher.ui.InstallerFrame.<init>(InstallerFrame.java:79)
at net.technicpack.launcher.LauncherMain.main(LauncherMain.java:162)