Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

classpath

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, i just downloaded a .jar file and was trying to use it and it didn't work. I'm using windows 2000, jre 1.3.1. I put the file in C:\jdk1.3.1\jre\lib\ext\ and java told me that it couldn't find a class that i know is in there (i looked with forte). Then i tried to change my classpath. where do you do this? so i tried a command line i.e. set classpath=%classpath%;C:\jdk1.3.1\jre\lib\ext\the.jar; but this didn't work so i uncompressed the jar into the file and now, for some reason, it works. but if i take away the decompressed file, it doesnt. What is going on here?
 
Ranch Hand
Posts: 1012
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what command are you using to run the .jar file? you have to type:
C:\ java -jar filename.jar
 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Greg Harris:
what command are you using to run the .jar file? you have to type:
C:\ [b]java -jar filename.jar
[/B]


oh, i'm sorry, but i am trying to run a .class file so i type
C:\ java this
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic