aspose file tools*
The moose likes Cattle Drive and the fly likes What does this mean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "What does this mean?" Watch "What does this mean?" New topic
Author

What does this mean?

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
This is what shows up on the dos window that runs in the background when I'm using the LogApp:

C:\CattleDrive\Cattle Drive LogApp>java -classpath "C:\PROGRA~1\PHOTOD~1.1\ADOBE
C~1;.;C:\j2sdk1.4.2_09\lib;C:\java;C:\java\jrcommon-2-bin.jar;C:\j2sdkee1.3.1\li
b\j2ee.jar;C:\mysql-connector-java-3.0.11-stable\mysql-connector-java-3.0.11-sta
ble-bin.jar;C:\XT\xt.jar;C:\XML\SAX;C:\XML\xp\xp.jar;;C:\CattleDrive\jr.jar" LogApp

I've always wondered exactly what it means. Obviously, it has something to do with classpath, so I'm afraid of it! I'm thinking if I put C:\CattleDrive\jr.jar in my classpath on the new system, the stuff between the "" will show the classpath as it is configured on that system, but what does LogApp>java -classpath "scary stuff goes here" LogApp do? What does it mean?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
C:\CattleDrive\Cattle Drive LogApp>java -classpath <list of stuff in your classpath with C:\CattleDrive\jr.jar stuck onto the end of the classpath> LogApp

To run Assignment Java 1a, you type

java Hundred

You can do that because you have defined your classpath in your environment variables.

You could also type

java -classpath <put classpath here> Hundred

Does that help?
[ March 25, 2007: Message edited by: Marilyn de Queiroz ]

JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
So if my classpath is properly defined in the environment variables, could I change the LogApp dos window to read C:\CattleDrive\Cattle Drive LogApp>java LogApp and have it function the same way?
How would I go about doing that?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
Do you run the LogApp by using LogApp.bat? If so, edit that file to include only

java LogApp

Then it will use only the classpath you have in your environment variables.
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
I've been opening it with a shortcut on the desktop. I edited the classpath part out. We'll see what happens. Now I know what a bat file is!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What does this mean?
 
Similar Threads
Stuck on the classpath again!
can't compile .java file
No suitable driver
Please help me with Java connection to MySql
classpath JDBC driver