• Post Reply Bookmark Topic Watch Topic
  • New Topic

It doesn't work  RSS feed

 
Vincent Hendriks
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I'm puzzled...
I made my java programme, put it in a .jar and it works.
Took it to my work, put it on the computer (network drive) and it works on my work-PC.
Wanted to show it to my colleagues on their computer and it says "Could not find main class. Program will exit"???

What am I doing wrong??? (I checked for JRE: same version as my work-PC).
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is as if this FAQ page was made just for this topic...

http://www.coderanch.com/how-to/java/ItDoesntWorkIsUseless


If I had to speculate with what little data available, I would guess that your friend has a CLASSPATH set.

Henry
 
Vincent Hendriks
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Henry, I'll look into that
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!