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 Help Running Java apps on Mac OS X.2.8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help Running Java apps on Mac OS X.2.8" Watch "Help Running Java apps on Mac OS X.2.8" New topic
Author

Help Running Java apps on Mac OS X.2.8

Philip Herzer
Greenhorn

Joined: Oct 21, 2003
Posts: 21
I'm having problems running this basic Hello World app. It is a modification of a simple java based app that displays the text in a command line window. I got the code from Sun's Java Tutorial
Here is the actual code:

Unfortunately, I keep getting this error:

I tried it also on a Intel box running Gentoo Linux. I'm getting the same error as above.
I'd appreciate any help to fix the problem.
Thanks,
Felipe


"Mejor morir de pie que vivir toda la vida arrodillas."<br /> Emilio Zapata
Philip Herzer
Greenhorn

Joined: Oct 21, 2003
Posts: 21
I feel ashamed for posting the last question. I found out that I forgot to define the main method: .
I was able to run it through a web browser without attaching the main method. But, if I were wanting to run it from the command line, where does the main method belong in above code.
Thanks for everyones help, I'm looking forward to really learning java. Just have to correlate some of the nuances of this language with Python and Ruby.
Felipe
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
Moving this to JIGB.
Pauline McNamara
Sheriff

Joined: Jan 19, 2001
Posts: 4012
    
    6
Hi Felipe, welcome to JavaRanch.
In a browser you can have an Applet, from the command line you run an Application. In Sun's tutorial, Step 3 "Create Your First Applet" comes after Step 2 "Create Your First Application".
Sun's tutorial for macs
Maybe you want to go back to Step 2 and try that?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help Running Java apps on Mac OS X.2.8
 
Similar Threads
just starting, how to run .java files?
JNI example gives UnsatisfiedLinkError
Exception thrown While Running a Client
Newbie Help Please.
Servlet Internal Error