This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

J Morberg

Greenhorn
+ Follow
since Mar 02, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by J Morberg

Rajeshwari,
Thank you for checking the code out. Yes, I am using the right command.
I believe I might have some classpath or something set up wrong. I am going to investigate that!

I keep getting the error
------------------------------------
Exception in thread "main" Java.lang.NoClassDefFoundError: Sort
------------------------------------
my classpath is set to include the directory for my sdk installation; a QTJava.zip file residing in a j2rel.4.0 directory; and a servlet.jar file within a tomcat directory I've installed to run the server.
As long as one of the classpath entries is set to the "j2sdk1.4.1_01" directory I should be fine, right?
Does it seem that a missmatch in my classpath could create such a problem?
Thanks.../JM
============
oh, by the way...if it worked for you, then I feel much more confident that it's just a setting on my machine that is causing the problem. I will research and find out how to fix it. Thanks again for checking it!
Take care/JM
19 years ago
Layne and Chad,
Thank you both for your help. Your suggestions quickly fixed my problem.
The code compiled w/out error...but now it wont execute!
When trying to run my "Sort.class" file, I receive the following error:
=================================
Exception in thread "main" java.lang.NoClassDefFoundError: Sort
=================================
Hopefully this one is equally as simple to fix!
Thanks again ~ JM
19 years ago
Hello. I'm compiling my first program which
  • accepts 3 numbers from the user
  • sorts ascending
  • prints 3 numbers in ascending order


  • I am having a problem with my if/else statements
    ==============================
    "'else' without 'if'"
    ------------------------------
    else if (y > z); on line 28
    and
    else if (x > y); on line 33
    ------------------------------
    ==============================
    here is the code:

    This is my first program, so obviously I don't know exactly what I am doing. Any help would be appreciated.
    Thank you so much,
    JM
    19 years ago
    Thank you everyone for your help~!
    19 years ago
    Hi! I'm very new to Java, so please be gentle *_*
    I'm trying to write a .java file that will get three numeric values from the user, sort them in ascending order, and print the sorted values.
    This is the basis for the program:The most important thing is to be able to make this work with ONLY 3 IF statements.
    Can anyone help? I assume it's pretty easy...but I have not been able to figure it out.
    Thank you so much in advance...
    /JM
    [ edited to preserve formatting using the [code] and [/code] UBB tags -ds ]
    [ March 02, 2003: Message edited by: Dirk Schreckmann ]
    19 years ago