Win a copy of TDD for a Shopping Website LiveProject this week in the Testing 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

"could not find main class: program will exit"

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not a programming question, but I'm trying to install azureus. Their jar file will not open on windows. I have the java JRE installed. Apparently there is no CLASSPATH setting in the environment variables. It is not there. What do I do?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it an executable JAR file (i.e., a JAR file which you double click to run)? If so, then the CLASSPATH environment variable is not applicable. In an executable JAR file, the classpath in the manifest file which is inside the META-INF directory in the JAR file determines the classpath.

The error message might mean that there's something wrong with the JAR file (maybe it's corrupted in some way?). Are you sure that you're using the right version of Java?

If it's not an executable JAR, but a command batch file (*.bat or *.cmd) that you use to start the program, then look in the file to see how it exactly starts up the program.
[ January 15, 2007: Message edited by: Jesper Young ]
 
Jesse Crockett
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, it is an executable jar.
 
Let nothing stop you! Not even this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic