Einzelnen Beitrag anzeigen
Alt 12.06.2007, 17:57   #2
jak
Inventar
 
Registriert seit: 13.06.2001
Beiträge: 1.830


Standard

Sicher ist das möglich. Die normale main Methode ist ja auch static (public static void main(String[] args))

Du kannst im manifest den "entry point" bestimmen, soweit ich weiß muß das eine main Methode sein. Du musst daher entweder die Klasse so verändern das sie eine ordendliche main Methode hat oder einfach eine zweite Klasse schreiben die sich um das starten kümmert.

Siehe:
http://java.sun.com/docs/books/tutor...ar/appman.html
http://java.sun.com/docs/books/tutorial/deployment/jar/
http://www.javaworld.com/javaworld/j...avatip127.html

jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)
jak ist offline   Mit Zitat antworten