Ross Goldberg

Ranch Hand
+ Follow
since Jul 09, 2003
Merit badge: grant badges
For More
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 Ross Goldberg

I am looking to experiment with J2ME for one or more Java enabled phones. Currently, I have a Nextel i730 (love Nextel, but do not like the i730) and am considering a switch, perhaps to a J2ME capable Sanyo on Sprint. While I know there are toolkits to write apps against, I know (not specifically) that some phones have adapters that allow connection to a PC while others do not. Have you found a particular phone/service/resolution to be best for development? What method do you use to test your code on your actual phone after doing so within an emulator (or do you perform this process in some other way?)

19 years ago
My first question was "duh! Of course!" That made perfect sense...although I would have expected the classpath pointing to the jar to include that current directory, I have rationalized/figured out why it doesn't/wouldn't.
However, when I put in either of the two examples you typed, I ended up getting a different error much to my surprise, that relates to the classloader. I've been trying various things, but from DOS, nothing has yet to work despite the ease by which it worked from the UI...perhaps I'm forgetting another item in the classpath that I'm not realizing?? Would I need to include the J2EE.jar in the classpath? Nope...that wasn't it either. Here are the failed attempts:

I know I'm realllllllly close, especially since it works fine in the GUI, but like I said, I want to ensure I know how to do it from the command line as well.
Plz help.
In my example above which works from within the IDE, but not from DOS, I'm simply using RI.
One more...
While I'm having NO PROBLEM at all running the advice client from an IDE (IDEA), I am not able to run it from the command line and am getting virtually no error information to help me diagnose....this is still under the RI (which was updated with the change to make it work, and which works fine under IDEA, which has the AdviceAppClient.jar in its classpath.
For the dos version, I copied the AdviceClient.class to the /projects/advice directory to ensure it is in the same directory. If you look at my listing above, you can confirm that (which was created in /projects/advice/src and compiled into /projects/advice/classes is not in a package. So I copied AdviceClient.class to /projects/advice to put it in the same directory as the deployed jar (or rather as the client jar for the deployed bean).
Following are what I tried and the tiny amount of feedback I'm getting back...while I am using J2SDK1.4.2_02 (yes, should be 1.3) and J2SDKEE1.3, I am using the exact same set under the IDE which as I mentioned works fine.
I'm not sure if the package name should be preceded by a : as shown in the book on pg. 58 or if that should be a semicolon....anyone know for certain??? I tried both, but get the same error....see below, plz. I'm getting really close, but want to ensure I fully understand it and that I have it working for all cases...then I can work on the JBoss cases for Windows, then Linux locally, then Linux remotely.
Woohoo! Asher (for the link) and Dan are the champs!!!
My problem, as I posted above, was the CORBA NO_PERMISSION issue (and not the first issue that was referenced).
The ONLY CHANGE I had to make were the ones per Dan's instructions in the deploytool....that is, I clicked on the security tab for the Advice/Advisor EJB. I then chose Deployment Settings...then selected Support Client Choice. I then redeployed (Tools -> Update and Redeploy) and was able to readily run my program without any recompilation of the client nor any changes to the java source code for the bean and its two interfaces.
Now, I do have a question about using the RI and/or JBoss...first, I'm trying to figure out how to use JBoss (I believe 3.2.2) on Windows, but I'm also trying to figure out how to use both the RI and JBoss on Linux WITHOUT a GUI since when deploying to a web site (for testing and fun), I won't have a GUI available (or so I presume). I do on the local linux install, but not for the remote-hosted website.
Would appreciate any pointers.
Many thanks, Asher and others!!! I didn't realize Kathy had that post up there, so that is very helpful.
BTW, does anyone know if there is a thread on JBoss configuration as well? Especially WITHOUT using a GUI, since I want to learn how to do it on Linux (both on my machine and on a "commercial" website)? These will lead to the steps I ultimately hope to post for John and others, because I think it will benefit all of us, but I'm running into a lot of learning curve right now and could definitely use some pointers or a turn in the right direction.
I'll try the suggested rename and see if that resolves it...or the classpath being more explicit. It's odd since it basically seems as though it is a path issue given that it deployed fine, etc.
Well, before I can try to help others, I think I'm in need of some help myself...
Please click on the following link to see my screenshot:
Uh Oh!!!
It's a 1400 x 1050 desktop, so you'll need to scroll a bit to see it all, probably.
I created all the code for the three pieces of the AdviceBean, went through all the steps through deployment and that went without a hitch. I double-checked to ensure I set the interfaces correctly (see uhoh2 below):
Uh Oh 2
The code is as appears in the book for each of the three classes as well as for the AdviceClient and compiles without a hitch. I tried running it two different was where I created my source for the client in /projects/advice/src (with the class in /projects/advice/classes) and the other was with the AdviceClient.class copied to /projects/advice in case it was a classpath issue.
In the version I ran via IDEA, I included the AdviceClientJar in the classpath and started execution at main inside of AdviceClient. I receive the following error:

In the second case, where I ensured I had AdviceBean in the same spot as the jar, I issued the command
java -cp {$CLASSPATH}:AdviceAppClient.jar AdviceClient
My %classpath% var contains:
C:\Program Files\Altova\xmlspy\XMLSpyInterface.jar;.
The only error feedback I get there is:
Exception in thread "main" java.lang.NoClassDefFoundError: AdviceClient

Here is my code:

Would appreciate any insight...this went smooth as silk until this final step where I went to remove the results.
Well look who's finally crawling out of the woodwork...(me)
I just recently installed Mandrake Linux and plan to try it on both WinXP as well as on Linux with both RI and with JBoss...not sure when I'll get to it, but my goal is over the weekend to get the initial advice beans working for all four scenarios or as many of them as I can get working...will post details here as I accomplish them, but again, I won't likely start on this until Saturday.
Dunno if I can help you, but I'm surely going to try.
Not sure where to post this question, so I chose the forum I guessed was most relevant. I just picked up K&B's HFEJB book....however, there are versions for J2EE of 1.3_01 and 1.3.1 (as well as 1.4). K&B use version 1.3 for compatibility with what is actually question is whether this is 1.3_01 or 1.3.1 (I'm guessing 1.3_01) when they refer to version 1.3
I'm not sure if they've set up a site for the book yet....I went to, but Kathy doesn't have anything up there. Actually, it would be ideal if she added some links to the proper downloads associated to the book.
20 years ago
Much like what Andres said (and Jessica w/r to the experience), a cert will usually NOT get you in the door....but when it comes to deciding between candidates and you're one of the finalists, it will almost always give you an edge, at least w/r to that credential (if it is their primary focus...for example, a java programmer job).
I used to have an MCSD (which I am just about to start pursuing again as well), and that was the difference that got me my job that I've held for 5 years now. Right skill, right place, right time, right CONTACTS (NEVER underestimate the importance of contacts you have in other organizations---your best chance for getting hired!!).
My 2 cents.
You're being WAAAAY too modest!
Awesome job!
20 years ago
I'm an SCJP2 1.4 now!!!
I scored an 85%, with pretty solid scores in every section. That score was well above my expectations! I began studying just about a month ago and at the time I started, I soon found that my Java skills bordered pathetic. I've been studying, programming, and practicing about 4 hours a night at least, and have been programming Java daily at work all month as well. LOTS of work, but it was well worth it (and quite fun actually, due to Kathy and Bert!)
Here's what I did:
1. Had very limited experience when I began studying.
2. Read Head First Java by Kathy Sierra and Bert Bates cover to cover (as well as doing all the excercises (except crosswords, which I can't stand because I'm terrible at them)).
3. Read their Java 2 Certification book, had friends question me constantly, tried various permutations of questions that would strike me, posted on the board (both questions and answers) to immerse myself fully in Java and to *THINK* Java all the time.
4. Took the MasterExams included with the book in #3. These exams were excellent and very close to the test format questions. My score on the first test was like 80% and on the second, I failed as I ran out of time with 8 questions left. But I actually found these tests to be a truer proxy of how one will probably do on the real hindsight, I would now save the two MasterExams to be the very LAST tests you take.
5. Took the Whizlabs (commercial package) tests....5 practice and 1 exam out of the 10 exams (including the 9 practice). These tests are HARD!!! I averaged about 65% consistently on those, and thus, that was my expectation going into the test.
Once I have taken a test and read about the answers, I cannot take that test again or I'll score ridiculously high, so I needed lots of unique tests for my practice. While the Whizlabs exams are very hard and very helpful, they did have a number of non-applicable questions and MANY typos/spelling errors in the explanations...also at least one wrong answer and at least one typo in a code sample. Nevertheless, it was the highest quality test suite, IMHO. I could still think of many useful features they could add, but I do recommend it. Even the unrelated questions get you thinking very DEEP and that tends to help indirectly by increasing your overall understanding....the tricky part is remembering all the things you get wrong...after all, 20 or so wrong questions per test is a lot to learn!
But if you're scoring on your first try in the 60s on the Whizlabs or in the 70s on K & B, you should smash the Java test pretty well. The questions are MUCH, MUCH easier than on either of those two tests, IMHO.
Also, the HFJ was essential to my success!!! That was what truly built a solid foundation upon which I am continuing to build...of all the things, that was the most important, but the cert book was also every bit as just wouldn't have helped much without the understanding I gained from HFJ. You MUST have a solid foundation of understanding before getting everything you can out of the cert book so that you can APPLY what you are learning.
SCJP2 1.4
20 years ago
Your description was the first thing that popped in my mind and seems fully logical. After all, you have to handle or declare and when you're getting to class C, you're neither handling or declaring. Sounds like an explosion waiting to happen...
Well, I decided to buy the Whizlabs test suite after playing some more with the various tests (both free and if only they had some certain other tests I'm interested in (but I dare not mention .NET here!!! then I could have taken advantage of some nice price specials they have. Thus, I settled for just the SCJP 1.4 product and about 10 minutes later, I had my license.
Here's my advice:
1. Read "Head First Java" if you are fairly new to Java or if you really don't understand the concepts inside-out...I am finding that from that book alone, I have reached a level of understanding far beyond that of one of my friends who I thought previously to be an expert in the language. You need a solid foundation and this book WILL give it to you if you work it cover to cover....with persistence, you can do so in perhaps 2 weeks.
2. Read K & B's cert book (yes, both books are by Kathy Sierra and Bert Bates...I cannot praise them enough...they're the greatest gift to javakind, IMHO!). Both books make learning fun and interesting. I have also referred back to them on dozens of occasions already as questions crop up...and if I can't find an answer there, I certainly can on the JavaRanch. But read HFJ FIRST if you don't have a solid foundation (or if you aren't confident that you definitely do). LOTS of tips and tricks and gotchas are mentioned in there that add to the true, complete understanding...perhaps not 100% comprehensive, but like I said, it's like having a brick foundation built on rock versus building with mud blocks on quicksand.
3. The cert book comes with (including the CD-ROM and a downloadable test) two tests...mine actually showed 3, but the third was basically the same as the second with perhaps half the questions different and thus an artificially inflated score. They only stated that two came with it, which is the correct statement to make. I highly recommend both these MasterExams and the Whizlabs based on the tests I've taken so far with it tonight. Excellent quality questions and explanations on the same caliber as the masterexams (actually, better on the explanations because it shows ALL answers rather than just the wrong and right one---a major shortcoming in the MasterExam results review). Also, my scores are proving fairly consistent between the two products (which means I'd better pass!
It also shows I have much room for improvement. Overall, Whizlabs is the better of the two test environments, IMHO...breaks everything out by the categories, etc. Much of that information is also in the MasterExam, but as best as I could tell, was not as easily extractable.
As for which product you use first, that's up to you. Both are quality products (although there are at least two minor flaws in the MasterExam questions...something like pc = cc or pp = cc...the correct answer is stated with the wrong answers which, in my case, made me guess one of the wacky answers which was obviously wrong. Another has to do with an array question that another member on the BB posted gives an answer of d and some non-sensical answer when it should be f.
Overall, I'd recommend the MasterExams first and then then WhizLabs....if you buy the cert book, the masterexams are free, giving you two quality tests at no extra cost and then you have the option of the many free ones or one of the commercial products. The other thing I like about subsequently using WhizLabs is that with the many tests it has, it makes the progress more measurable. But you really can't go wrong either way.
I truly believe those two books and one or two quality exam series is all you need if you work through it. Of course, I won't be putting my money where my mouth is until Thursday, so we'll see if I'm humbled then or not.
But I hope this review helps others in their quest.