This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes re AS400's CommandCall class in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "re AS400 Watch "re AS400 New topic

re AS400's CommandCall class in Java

Eung maeng
Ranch Hand

Joined: Feb 10, 2002
Posts: 68
I am trying to use CommandCall. however,i am getting error in compiling.
please anyone can correct me. what should i import for CommandCall class?

import java.lang.Object;
import; // <-----here error

public class CommandCall extends java.lang.Object
implements {

public CommandCall() {

// Work with commands on server named "Hal."
AS400 system = new AS400("ibas4011");
CommandCall command = new CommandCall(system);

}//end of public

public static void main ( String args[]){
CommandCall commandCall = new CommandCall();
}// end of main class


please correct to me. thanks a lot,
Bupjae Lee
Ranch Hand

Joined: May 14, 2007
Posts: 107
I think the reason of this error is 'ambiguous class name'

Two class "" and (default package)"CommandCall" try to use same simple name "CommandCall", and the compiler complains about this fact.
I agree. Here's the link:
subject: re AS400's CommandCall class in Java
Similar Threads
Using AS400JDBCDriver() and AS400() together
java -classpath
Failure launching application... access denied
IBM toolbox for JAVA
Adding a package statement makes jar not visible during runtime?