This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What does this mean?

 
Carol Murphy
village idiot
Bartender
Posts: 1203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9066
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Carol Murphy
village idiot
Bartender
Posts: 1203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9066
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic