Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

how to compile

 
saravanan rajendran
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi,
I have program compiling package program please help me
my two program path is: /usr/local/apache-tomcat-5.5.26/webapps/Asianet/WEB-INF/classes/com/example/servlets/
first program:

package com.example.servlets;
public class balance
{
public void show()
{
System.out.println("welcome");
}
}
when i compile balance program its compiled
second program:

import com.example.servlets.*;
public class auto
{
public static void main(String args[])
{

balance.show();
}
}
when i compile balance program its showing below error:

auto.java:7: cannot find symbol
symbol : class balance
location: class com.example.servlets.auto
balance obj=new balance();
^
auto.java:7: cannot find symbol
symbol : class balance
location: class com.example.servlets.auto
balance obj=new balance();
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please Use One Thread Per Question. Closing thread.
 
    Bookmark Topic Watch Topic
  • New Topic