This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Manuel Comnenus

Ranch Hand
+ Follow
since Apr 26, 2006
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 Manuel Comnenus

Hi Mark,

Thanks for your help. The JAR was downloaded from Sun, rather than being something that I created. Your response helped me figure out the problem. I viewed the JAR contents and noticed that the manifest was indeed in the JAR. So, I used the JAR extraction tool. The problem was based on a bad assumption by me. The JAR is, on my pc, listed as an executable JAR. So, I had expected that I should be able to execute it and that it would programatically unzip itself.
Has anyone else experienced a problem with the assignment JAR? I get the message "Failure to load Main-Class manifest..." Was there anything that you could do to fix the problem besides wait for a response from Sun?

There is something that I probably was not clear on, however. Perhaps I could have worded my question like the following... Does it change your response in any way? Thanks.

If we use Java 6 table sorting example, I am guessing that we would need to anticipate the Java 6 addition in our design decisions document and why we elected not to use it. If we don't do so, then we would lose points for not being thorough in our understanding of available solutions. Is this correct?
If a candidate were to mix and match techniques, etc from Java 5 and Java 6, would this (negatively) affect ones score? For example, suppose that one decided to use a Deque to solve a certain problem and then pre-Java 6 table sorting technique to solve another problem, would it matter in terms of one's ultimate score?
Can anyone advise me on how to correct this problem>

Environment - WinXP SP2, Eclipse 3.2, Callisto w./ all plugins installed, Tomcat 5.5.17.

I can successfully invoke servlets, JSP, and HTML in Tomcat via Eclipse. However, if I modify the servlets or JSP, the new versions are not invoked within the eclipse browser, even if I stop Tomcat, manually republish the web application, and then restart Tomcat. I need to directly enter the servlet or JSP in the browser command line for the new version to be invoked. As far as HTML is concerned, at least for one test, a modified HTML never became invoked. I had to copy the HTML to a new file and then invoke that new file in order for it to run with the modifications.

Hi Ernest,

Thanks for your help. You were right; a space was required before the file name.
14 years ago
Hi Ernest,

Could you provide an example? I am a little confused. This is what I am doing in the terminal window.

The script is in the current directory and it is named jinit, so I invoke it as with ...
When I do this, I get the results that I reported.

I tried typing .jinit first. This doesn't work, so I am probably misinterpreting your instructions.

14 years ago
Can someone help me with what is probably a ridiculously simple Fedora Linux
environment init problem. I admit that I am a Linux novice - I have always used Windows, but now need to quickly do some things with Java under Linux.

I have created a shell script and it works properly when I execute it from a Fedora Linux terminal window. I know that this is the case because I placed echo statements in the script and the echoed statements show that the enviroment variables (path, etc) have changed. However, once the script ends and I type echo $PATH in the terminal session window, the environment is the same as before I executed the script. The script is as follows:


export JAVA_HOME=/usr/java/jdk1.5.0_07
echo $PATH
14 years ago
Hi Jeroen,

Could you share your approach for situations when you had conflicting instructions? How did you make your final decisions in these cases.
It is probably best to use caution when using an IDE for the SCJD. In some cases, IDE's can produce code with deprecated methods that cause compiler warnings and possibly reduce project scores. As an example, Eclipse 3.11 generates GUI code that uses the deprecated show() instead of setVisible(true). Does anyone have similar experiences that they can share?
Hi Jeroen,

Could you elaborate on this or say it in different words. Did you mean that you provided two different versions of the class as part of your submitted project? If so, what did you do? Did you have two classes extend from an abstract class, or do you mean something else? Thanks.
Hi Andrew,

My question was specific to the relative merits of threads versus runnables, the reasoning behind your decision in your book, and general advice on this for the assignment. I think that you answered this well.

The sockets issue was one that you had raised - in your response, you asked me whether I was thinking of a sockets implementation and therefore was my thread/runnable question related to that. I asked you to further comment on sockets (this is just an open-ended question on my part) so that I, and others that view this discussion thread, can get more of your perspective on the threads and/or sockets issues. If there is anything else that you can share on this, it would be most welcome (I am reading your book and therefore am not going to ask you to repeat what you have stated there).

Please accept my apologies for the confusion over my name. It is, in fact, Steve. My name was already taken and the naming conventions prohibit alphanumeric combos, so I quickly tested to see if the name of a 12th century character was taken. I could have, perhaps, picked a better character, but I didn't want to spend a lot of time when all I needed to do was pick a unique name. For now, I'll refrain from signing my posts with my name. I will consider picking a new name, but I'd like to wait until sometime that I don't feel like I'm in as much of a rush.
[ May 19, 2006: Message edited by: Manuel Comnenus ]
Thanks again!

14 years ago
Hi Ben,

As you stated, the problem was related to using a colon instead of a semicolon. And, yes, your suggestion for the wording of the problem is more appropriate.

I passed the SCJP by relying completely on an IDE. As a result, command-line issues were something of a weak area for me. I've decided to use the command-line for the SCWCD, at least until I really am familiar with the various options.

14 years ago
I have tried your suggestions and have not been able to solve the problem. I agree that the problem is not directly related to Tomcat. It's just a matter of the servlet-api.jar being in the tomcat\common\lib directory.

I am using the javac command essentially as suggested in the HFSJSP book. Here it is. Is something wrong here, or is there something else for me to check? Thanks.

my file is in the e:\myProjects\BeerV1 directory and I have made that directory the current directory.

javac -classpath \f:\tomcat\common\lib\servlet-api.jar:classes:. -d classes src\com\example\web\
14 years ago