Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

Jay Kipler

+ Follow
since Jan 15, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jay Kipler

You have to search for the class you want to compile in the objects panel from
the schema browser and then click on "compile", after editing it (maybe
you will have to load the class in the editor, right clicking on the
Hope that helps
18 years ago
Hi Svitlana,
what exactly are you typing to run your class? Is your class
in a package? (i.e. is there a line "package ..." in your source?). What
does following command return: "java -version"? And what is the exact
error message you are becoming? What does the following command return:
"set classpath"?
I don't see anything wrong in your autoexec.bat, just the third line
should be "SET PATH=C:\orawin95\bin;%PATH%" (you forgot the set and the "="
here), but this should have no influence on executing a java program.
Generally, you just have to verify that you are setting the classpath
correctly, either with the envrionment variable CLASSPATH or in the command line. The following command will execute a class which is located in
the current directory, if this class is not in a package:
java -classpath . classname
If the class is in a package, then you should put the
in the dir mypackage, compile with javac mypackage\ and
then type:
java -classpath . mypackage.classname
to run it.
Hope it helps,

Originally posted by Svitlana Dukhovna:
I installed jsdk 1.4.1 long time ago and everything was working fine. I have Windows 98. Recently I was editing my autoexec.bat file, and today I noticed that after I compile my code with javac, when I try to run it with java Classname command, I get a message "Can't find the class Classname".
I always run my java programs in the current directory(directory where they are located) Please help me to figure out what is wrong!
I researched on-line and thought that I should have set my CLASSPATH variable, but it does not make any sense, since I attempt running java programs in my current directory, which should be a default path anyway.
here are the few last lines of my autoexec file( I don't know what I could possible mess up! ):
set PATH=%PATH%;C:\j2sdk1.4.1\bin;
set PATH=%PATH%;C:\unzipped\masm611;
PATH C:\orawin95\bin;"%PATH%"
set JAVA_HOME=C:\j2sdk1.4.1
set CATALINA_HOME=C:\unzipped\jakarta-tomcat-4.1.29\jakarta-tomcat-4.1.29
I added Java_Home and CATALINA_HOME lines a few days ago.
I would highly appreciate any ideas! Thank you everybody!
Svitlana Dukhovna

18 years ago

Originally posted by Srinivas Bitla:
Questions on iterator pattern :
1.In iterator pattern ,does it allow different iterators to access a
data collection simultaneously?
Ans. No.

Of course the answer is yes! The Gang of 4 book on Design Patterns explicitly mentions it: "You might also need to have more than one traversal pending on the same list". Why shouldn't it be allowed? You need it, for example, if you want to compare two collections.

Originally posted by Vish Kumar:

My answer would be D.
In EJB2.0, CMP performance is better than the BMP performance.
But Complex data types may not be possible with CMP entity beans.
So I would use BMP to store complex datatypes, where performance is not a essential criteria.

Why should CMP performance be better than the BMP performance with EJB 2.0? Actually I would generally expect BMP performance to be better, since it hasn't the overhead of the container. Further I don't see any reference to performance of persistence, either BMP or CMP, in the EJB 2.0 spec.
I think A, C and D were the right answers.