This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 43923
    
  33
Please Use One Thread Per Question. Closing thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to compile
 
It's not a secret anymore!