• 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

can't run java in windows2000 server

 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I downloaded & installed jdk1.4 from sun's site.I'm using a dual boot system win98 S.E & win 2000 server.I'm able to run java in win98 but can't run in 2000.I receive an error :
"Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/main "
Please reply me as soon as possible.
Happy middling with java.
Bye from netharam
 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems like a classpath problem, set classpath for ur win2000 config. Include the current directory (.) as well.
HTH,
- Manish
 
netharam ram
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello :roll: I've very well set the classpath & have tried these methods,please reply me with some advanced option
happy middling with java
Bye from netharam.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi netharam,
1)are u using dual boot from different hard drives?
if so see if jre is installed in both the hard drives or see if u have the right path set in the class path (also try constructing ur class path using environment variables)
2)It seems like the error u have implies that the java compiler cannot be found.
try and cd into the java/bin directory and compiling a class from the dos prompt. If it works it means that ur classpath is wrong. if thats not wrong then something is wrong with the jre installation. Uninstall jre using add/remove from control panel under both 98 and 2000 and install it seperately under both. try it compiling the class again.
if both does not work post again and tell me what went wrong. hope this helps regards
syd
 
netharam ram
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Naveen, I've tried going to the bin directory of java & compiling a class already, but that failed.Why have u suggested me to reinstall in diff. directories?Let me try that if u r a absolutely right.
Happy middling with java.
Netharam. :roll:
 
netharam ram
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I tried reinstalling java,while the setup sets the java runtime I receive an error
"Can't find the main class. The program will exit"
Please reply as soon as possible.
Happy middling with java.
Netharam.
 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Looks like your class is found now the problem is that you haven't defined a main method:
public static void main (String [] args) {}
Remember it has to have the exact same signature.
cheers,
Yoo-Jin.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic