• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AnyJ

 
Jackie Wang
Ranch Hand
Posts: 315
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am setting up AnyJ3.5 in my computer.
I create a new work space and set my jdk home to
c:/J2SDK_Forte/jdk1.4.0 which is the right one in preference.
However, when I have the

It just say lwongz.java7: cannot resolve symbol
symbol : class util
compiled with errors.
Any one can help?
Thanks!
[ May 04, 2002: Message edited by: Dirk Schreckmann ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your import statement is incorrect. You're telling the compiler to import some class named util in package java - but no such class exists. You probably want to import all of the classes in the package java.util like this:
import java.util.*;
Good Luck.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And a couple of tips that you didn't ask for:
1. Your example code doesn't require any import statements.
2. Standard naming conventions call for all class names to begin with a capital letter.
Good Luck.
 
Jackie Wang
Ranch Hand
Posts: 315
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would anyone kindly tell me that how can I step thru for AnyJ for bebugging line by line?
Thanks!
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One thing to note:
You wouldn't be able to use the debugger on the above code. The debugger is only useful if the program will first compile. The compiler did give you some useful debugging information. It told you what line the problem was on and the nature of the problem.
Otherwise, on the website for AnyJ are instructions for how to debug.
Good Luck.
 
Jackie Wang
Ranch Hand
Posts: 315
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dirk,
I just wonder how I can have the console pull out in AnyJ. Cause I couldn't find any info regarding it the in help menu.thanks!
Originally posted by Dirk Schreckmann:
One thing to note:
You wouldn't be able to use the debugger on the above code. The debugger is only useful if the program will first compile. The compiler did give you some useful debugging information. It told you what line the problem was on and the nature of the problem.
Otherwise, on the website for AnyJ are instructions for how to debug.
Good Luck.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean exactly by "pull out"?
 
Jackie Wang
Ranch Hand
Posts: 315
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I couldn't see any console like command prompt with black background.

Originally posted by Dirk Schreckmann:
What do you mean exactly by "pull out"?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this on over to the IDE forum...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic