The moose likes Java in General and the fly likes java package problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java package problem" Watch "java package problem" New topic

java package problem

satya sahu
Ranch Hand

Joined: Mar 26, 2003
Posts: 97
I have to run the java files using a batch script in windows XP.
I have a java file at path : c:\folder1\subfolder1\test\
The java file is given below:

package subfolder1.test;

public class TestProgram{
public static void main(String args[]){
For compilation i can write

Now what i have to write in the batch script file to execute this file ?

Thanks in advance.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
A batch file is at its most basic just a sequence of command line invocations. So if you just put the exact same command you'd type on the command line into the batch file, it should just work.
I agree. Here's the link:
subject: java package problem
It's not a secret anymore!