File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes how to compile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

how to compile

saravanan rajendran
Ranch Hand

Joined: Jun 13, 2008
Posts: 75
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

Joined: Oct 13, 2005
Posts: 39393
    
  28
Please Use One Thread Per Question. Closing thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to compile