Results 1 to 2 of 2
  1. #1
    hussain is offline Member
    Join Date
    Sep 2009
    Posts
    1
    Rep Power
    0

    Default Compile and Run a Java package

    Hi All,
    Can any1 tel me how to compile and run a java file within a package from a command prompt.

    Eg:
    package pack1;

    public class One
    {
    public static void main(String args[])
    {
    System.out.println("hello world");
    }
    }


    please help this out

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

Similar Threads

  1. Replies: 5
    Last Post: 03-26-2009, 06:24 AM
  2. Java 1.5 compile time error
    By ank_k in forum New To Java
    Replies: 4
    Last Post: 11-13-2008, 11:12 AM
  3. [SOLVED] Java Class won't compile
    By kaizen in forum Java Applets
    Replies: 9
    Last Post: 10-18-2008, 06:55 AM
  4. My Java program will not compile and run?
    By sabrown311313 in forum Java Applets
    Replies: 1
    Last Post: 09-23-2008, 09:38 AM
  5. Help with Java Compile File
    By baltimore in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 07:48 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •