Computing.Net > Forums > Programming > Urgent! Can't run java programme

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Urgent! Can't run java programme

Reply to Message Icon

Name: Reeve
Date: May 22, 2002 at 01:36:55 Pacific
Comment:

1st question:
I am using JDK 1.3.1_03 on Win2K Server. When I have compiled the javaapplications, I try to use "java " to run the programme, but an error message "Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object" come up on the screen.
Why is it so? It run normally in the past.
I have upgraded Windows2K once using the Win2K Server CD recently, is it
the cause of the problem? How can I solve it? Please help! Thank you!

2nd question:
I have installed JDK1.4 Final version recently. However, after I have uninstalled it, it still appear in the Add/Remove Programme list in the control panel. I have tried to install another version of JDK, see if it would replace the JDK1.4, but it failed. Why is it so? Now when I go to some websites designed by javascript, the Internet Explorer suddenly closed by itself. How can I solvethe problem? Please help! Thank you!



Sponsored Link
Ads by Google

Response Number 1
Name: Paul Robotham
Date: May 22, 2002 at 04:23:13 Pacific
Reply:

Question 1: Try the Microsoft SDK for Java. It would be more compatible with Windows 2000.
http://www.microsoft.com/java/download/dl_sdk40.htm

Question 2: In IE, go to Tools - Internet Options - Advanced tab - Java(Sun)- Unselect 'use Java runtime environment' or whatever it says there.

IE can use Microsoft's Virtual Machine for Java, which should run smoother than using Sun's Java runtime environment.



0

Response Number 2
Name: Jason Humphries
Date: May 26, 2002 at 11:58:43 Pacific
Reply:

Solution:

in MS-DOS, type "Path" and see if the "bin" folder appears from the directory of your SDK. If it doesn't, type "path=directory of your SDK bin; stuff from before that was on path"

Also, in MS-DOS, type "classpath=" This will set the classpath variable equal to nothing.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Urgent! Can't run java programme

Can't run Batch files www.computing.net/answers/programming/cant-run-batch-files/14839.html

Urgent!!!can't compile *.java file(rev.) www.computing.net/answers/programming/urgentcant-compile-java-filerev/227.html

Can't uninstall Java JDK or JRE www.computing.net/answers/programming/cant-uninstall-java-jdk-or-jre/15494.html