Run Java Project from Ubuntu Terminal?
Posted
by
Christopher Gwilliams
on Super User
See other posts from Super User
or by Christopher Gwilliams
Published on 2011-04-28T11:18:10Z
Indexed on
2012/09/25
3:41 UTC
Read the original article
Hit count: 288
I have a small java project that handle connections. In order to run it from the terminal I have to cd into the folder that contains the source and run the following command:
java -cp classes com.packagename.mainclass
Where classes is the folder that contains the classes.
I want ubuntu to run this application on startup, is there a Java command I can use? Or am I just better off creating a shell script?
Thanks!
© Super User or respective owner