Why does it say "Operation Not Supported When Attempted To Save Java Source in Eclipse IDE?

Posted on 2010-09-13
Last Modified: 2013-12-29
I just implemented a directory watcher and everytime I attempt to save or run the program, i get the following message:

Save could not be completed.

Operation not supported for specified element types(s) [in <default> [ in src/com/goodiesdirect/gnfilemonitor [in GNFileMonitor]]]

I don't understand it because FileListener is an interface and all i'm doing is specifying which methods a class must implement when implementing the interface.

package com.goodiesdirect.gnfilemonitor;


public interface FileListener {
	void fileChanged(File file);
	void newFile(File file);

Open in new window

Help please.
Question by:davysouthernboy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
LVL 86

Expert Comment

ID: 33663950
Please post the result of the following (you should be in the project directory at the command prompt)
ls -ld src/com/goodiesdirect/gnfilemonitor 

Open in new window


Author Comment

ID: 33663974
what's the dir eqivalent because i'm running windows, not linux.
LVL 86

Expert Comment

ID: 33664023
Ah. The error message is showing Unix paths

Just make sure the directory is still writable
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI


Author Comment

ID: 33664080
It's writable because i can save the other 3 files that are part of the same package... just not that one java source file.
LVL 86

Accepted Solution

CEHJ earned 50 total points
ID: 33664131
Maybe worth looking at the perms on the file itself then. Also, make sure it's not locked by another app
LVL 86

Expert Comment

ID: 33665042
What was it?

Author Comment

ID: 33665090
I'm not a hundred percent sure. I thought about a process could have a lock on the file and although I wasn't sure what would have a lock on the file, I decided to reboot and see if the problem was resolved.  Upon rebooting, the problem was gone and I figured well, it's a possibility that it was a file lock and decided to give you credit.   An older instance of my java application may have been running and I may not have realized it.  In any event, it's working now and thank you very much for your help.  :)
LVL 86

Expert Comment

ID: 33665145
Yes, probably a file lock

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.
Suggested Courses

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question