This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Runtime Error :( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Runtime Error :(" Watch "Runtime Error :(" New topic
Author

Runtime Error :(

Landon Ross
Greenhorn

Joined: Jun 23, 2005
Posts: 3
Oy, first post.

I'm new-ish to java. Learned it once, forgot most it and am re-learning it now.

So I picked up the Headfirst java book, cuz it looked like more fun then most dry manuals you get for programming, and first program in the book, I've hit a nasty looking wall.

Heres the code:


the filename is MyFirstApp.java. It compiles fine, but at runtime I get the error



where have I gone wrong?
Landon Ross
Greenhorn

Joined: Jun 23, 2005
Posts: 3
Sorry. Ignore the question. I was using a java compiler for 1.4 (dont ask me how, I've only installed 1.5) and a java 1.5 JVM.

If anybody knows off the top of their head does SuSE 9.3 proffesional come with java 1.4.x installed by default? That might be why it happened. No pressure to answer though, it works now .
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Originally posted by Landon Ross:

If anybody knows off the top of their head does SuSE 9.3 proffesional come with java 1.4.x installed by default?


I know that SuSe 9.2 does that.


The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny Gill Tweets
 
Consider Paul's rocket mass heater.
 
subject: Runtime Error :(