File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes java appl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java appl" Watch "java appl" New topic
Author

java appl

Rajeev Kadam
Greenhorn

Joined: Nov 10, 2003
Posts: 1
can we write a java application without main which prints message on console
using System.out.println()??
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
no a j2me question. move to JiG (beginner).


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1817

How do you write a java application without a main method? Are you talking about an applet?
In any case, I don't think that this is a possibility. If you somehow start your application through a means whereby it does not have a console window, you will have to redirect your System.out calls to have it display wherever you want. In order to diplay to a system console, you would have to know which console and other bits of system-level information that Java does not provide.
You could, of course, write your own console class and have the data directed there.


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java appl
 
Similar Threads
class
WA #2 ..... word association
c++ or Java--your suggestions please
zipping as self extracting exe
J2EE