• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What does this mean?

 
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
reply
    Bookmark Topic Watch Topic
  • New Topic