This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Do I need to reinstall Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Do I need to reinstall Java?" Watch "Do I need to reinstall Java?" New topic
Author

Do I need to reinstall Java?

Janeice DelVecchio
Saloon Keeper

Joined: Sep 14, 2009
Posts: 1659
    
  11

Apparently, something is pretty messed up. I'm getting the following message, that I have never seen before, and I'm getting it on known-good and new applications. Is there a fix for this, or do I have to reinstall?



Here's the code... I made it because I was getting this error on something else that WAS working before.


When you do things right, people won't be sure you've done anything at all.
Dinah Gans
Greenhorn

Joined: Feb 15, 2010
Posts: 8
Was there a change to your environmental variables? That's one idea.

Are you trying to save to a flash drive? I was having similar error messages using a flash drive where it wouldn't compile after I edited a .java file on my school computer.

I was able to fix it without reinstalling, I believe I just copied it to the C: drive, compiled, and copied back to my flash drive.

Hope this helps or if not someone else can help.


Dinah
Janeice DelVecchio
Saloon Keeper

Joined: Sep 14, 2009
Posts: 1659
    
  11

Dinah Gans wrote:Was there a change to your environmental variables? That's one idea.


You know I checked and there was nothing changed, I ran a Java update and rebooted and it worked fine.

Weird.

Thanks!
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18492
    
  40


Having a classpath set incorrectly can cause this issue too.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do I need to reinstall Java?
 
Similar Threads
running with command line
New to programming and trying to learn and stuck!
Compiles, but showing up "NoClassDefFoundError". Successfully compile and run for other programs.
Weird message when running class file
java app launch on console