Top.Mail.Ru
February 17th, 2004 - Java developers — LiveJournal
? ?

Java developers

February 17th, 2004

11:17 am - talldean

What's the difference between Java Beans and EJB?

To my knowledge, beans implement java.io.serializeable, have a constructor that takes no parameters, and may have a getFoo() and setFoo(Object o) defined for objects in the class.

EJB? Well, they do more than that, but I'm looking for a short (paragraph?) answer, not the specification.

// Edited: Removed some replies, left the 'best of'.

03:39 pm - alistairg - Net Beans Question

Hello, I've just joined this community, and I'm a newbie learning Java at university.

I'm running the NetBeans IDE on a computer running windows XP and I'm having problems getting a java program to read files.

I keep getting the error:
java.io.FileNotFoundException: myfile (The system cannot find the file specified)

I also get this error when using an example that I know runs fine under java on debian:

CodeCollapse )

The file is in the same directory as the .java file, but whenever I execute the program in netbeans I get the following error:

java.io.FileNotFoundException: football.txt (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at java.io.FileReader.(FileReader.java:41)
at ReadFileApp.main(ReadFileApp.java:14)
Exception in thread "main"

Any help would be muchly appreciated. Thanks

Edit: All fixed - Thanks guys!

05:44 pm - bobbotron - Good enterprise java books

I'm thinking of buying a decent book for doing enterprise work with java (J2EE, java beans, etc.)  I'm new to enterprise work, have been doing java work for a while.  Are there any classic books out there right now, or any one that stands above the rest?
Powered by LiveJournal.com