File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Installing Java problem on nt server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Installing Java problem on nt server" Watch "Installing Java problem on nt server" New topic
Author

Installing Java problem on nt server

Luther Adon
Ranch Hand

Joined: Apr 27, 2002
Posts: 51
Ok, I am having problems installing Java on my win nt 4.0 server machine. I am not sure what the error could be at this point so here is some info:
the machine has installed:
Java 2 runtime environment se v1.4.0
java 2 sdk enterprise edition v 1.3.1
java 2 sdk se v1.4.0
java web start
java web services developer pack 1_0_01
windows nt 4.0 service pack 5
(I include this info as I am afraid one java thing may conflict with another)
environment variables (been playing with these)
classpath c:\j2sdk1.4.0\bin;c:\work'%CLASSPATH%
path c:\j2sdk1.4.0\bin
most java progs compile no prob but when I try to run I get Exception in thread "main" java.lang.NoClassDefFoundError: NameofProg
I have been coding awhile so I feel a little silly asking
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Have you tried to reinstall the JDK and/or the JRE? Upon installation, either one should (and in my experience do) set the environment variables correctly in order to run Java programs.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
Make sure you have the working directory ('.') in the classpath.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installing Java problem on nt server
 
Similar Threads
Need Help starting Tomcat
Where are step by step servlet and JSP instructions?
Environment Variables for j2sdk1.4.0 & j2re1.4.0-rc
Can't install Tomcat 4.0.1
How do I set Classpath in NT 4.0 SP 4/5 ?