how to run java program that has several classes under package from usb drive?

how to run java program that has several classes under package from usb drive?

I have an assignment where I have to submit my code in flash drive. I did all coding in eclipse and getting all output. I tried running it through command line and it works. I copied all java files and class files to flash drive and tried again through command line but does not work.

I have a package a1.cis568 under this package I have several classes. main class is A1.java and other classes are Circle, Point, PlaneCircle, EHashtable, CHashtable in the same package.

I have to use following line on command line to compile and run my program through flash drive, E:> E:>javac -d . A1.java E:>java a1.cis568.A1

when I was searching for solution I found that I can install jdk on flash drive and run the code. I tried installing jdk but it was taking very long time so did not complete the process till end.

Any suggestion would be great help.

Thanks, Hiral

View Answers

Ads









Related Tutorials/Questions & Answers:
how to run java program that has several classes under package from usb drive?
how to run java program
Advertisements
How to compile and run Java program
Java Illegal State Exception
Java Get classes In Package
how to create classes for lift program
how to run a java program using run.exec()?
how to run this program?
how to run rmi program
How Jdbc program can be run??
How to run a Java program in CMD
Find the files that has been modified before run the program
Find the files that has been modified before run the program
Find the files that has been modified before run the program
Factorial Program in Java
executing java program with 2 classes
How to run JSP program inEclipse?
Updating rows who has same id with different values for each row from java program
run command prompt from jsp program
how to compile and run servlet program
How to run java swing application from jar files .
how to run a applet from browser
Distinguishes JavaBeans from Java Classes
write a java program that implements the following classes:
java program run on thml page?
ModuleNotFoundError: No module named 'drivel'
How to run program in new opened cmd
how to run jdbc program in linux-ubuntu?
how to run jdbc program in linux-ubuntu?
How to run PHP Script from the command line ?
How to call the run method from another class?
how to write to java program to get the particular data from the website
how to execute a unix shell script from a java program
We can run Java on most platforms provided a platform must has a Java interpreter
Java classes
How to list all drives available in the system
How are Anonymous (inner) classes used in Java?
why java program not run with msword editor
Exception Classes
I really need a tutor for Java program that has to do with multithreading and gui!
What is a Java package and how is it used?
How to run JSP program in Tomcat server step by step?
How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide?
How to obtain the selected data item from a list box when listbox contains objects wrapped under Arraylist?
WAS server configuration from JAVA program
connect ftp from java program
connect ftp from java program
How to import a package
how can i run ASP.Net Server from netbeans IDE?
java program

Ads