making Eclipse work in Fedora - eclipse

i would like to use Eclipse on Fedora. When i run a simple program i get "permission denied"
Any hints, links to tutorials to setup/configure Eclipse on Fedora 14 would be appreciated. No luck with Google "configure eclipse fedora".
I am fairly new to Fedora/Linux.
thank you

You need permissions on the eclipse directory as well as on the workspace directory.

A quick google search lead me to here :
http://www.if-not-true-then-false.com/2010/linux-install-eclipse-on-fedora-centos-red-hat-rhel/

Try changing permissions of the directory using
#chmod 777 directorylocation
Or
#chown user directorylocation
#chmod 755 directorylocation
For only user specific use

Related

Give access to Sql developer to Documents Folder

Firstable, i don't know if this is the best place to ask this.
I made a clean Catalina OSX (10.15.7) install, and i'm trying to access to Document Folder using Sql Developer, but i don't know what is the problem.
If you see the image, this is the error:
I'm using java version "11.0.9" 2020-10-20 LTS
What is wrong?
Folder permissions
Best regards
UPDATE:
The same error with other folders
Go to System Preferences → Security & Privacy → Privacy → Full Disk Access.
Click add ([+]) and grant access to /bin/bash.
Yes, same Error here.
Installed Java 11 and SQL-Developer "20.2..." on a fresh macOS Big Sur (also tested it with a fresh install of macOS Catalina).
Can't access my desktop-, documents-, downloads-directory and /home through the import/open-dialog of SQL-Dev. Other directories can be accessed.
In the macOS-privacy-settings I granted Java 11 to full access my drive.
Starting the SQL-Developer manuell via sudo "solves" the problem.

After I update to MacOs Catalina MAMP stop working

I have a folder on my Desktop named work where I keep all my php projects. I use MAMP and all projects are set to work on virtual hosts, for example, if I have a project named test I access this project on this URL http://test.dev.
Everything went ok until I updated to macOS Catalina when I started to have this error.
(1)Operation not permitted: Can't open directory for index: /Users/username/Desktop/work/php/development/projectname.
I set the permissions to the work folder and all subfolders to be read & write for my user and staff group, I tried all the terminal permission
commands: chmod 777, 755, etc.
I had the same problem like you, and I spent many days to solve it by doing:
stop MAMP, then open terminal and type
sudo /Applications/MAMP/bin/startApache.sh -> then Enter
and then type your admin password to give apache full privileges to start apache. (this way can let MAMP read any files on your Mac, include external drives)
now you can open MAMP and see that Apache is started, then click Start on MAMP app to start MySql too.
I've solved doing the following operations:
Quit MAMP and all the applications that are using mySql and Apache Server (stop all the instances)
Go to System Preferences, Systema & Privacy, Full Disk Access Tab
Click "add" and go to /Applications/MAMP/Library/bin and add apachectl
Run this command from the terminal: sudo /Applications/MAMP/bin/startApache.sh\
Open MAMP and press the Start Servers button
now you should be able to start your localhost app
This could be due to wrong permission given by the new MacOS Catalina permission manager. A possible way to solve this issue is to check if the folder in which the project is stored can be accessed by your Application.
To do this you have to:
Go to System Preferences
Go to System & Privacy
Go to Files and Folders
Be sure that the folder of your project is checked in the subsection concerning your Application
I hope this could solve your problem.
Prior to the steps below I added Full disk access to MAMP under the Security and Privacy Folder.
The steps I did after:
Stop MAMP
Open terminal
Then type: /Applications/MAMP/bin/startApache.sh
Start MAMP
Incase it wont work, try on the terminal: /Applications/MAMP/bin/stopApache.sh and then /Applications/MAMP/bin/startApache.sh
I had a similar problem with XAMPP. Apache just lost access to my external drive, which I included via a symlink. Even giving "Full Disk Access" to the httpd webserver didn't help.
The final solution was to start Apache with the sudo command:
sudo Applications/XAMPP/bin/apachectl start
did the job for me. Please note that
sudo apachectl start
would start the Apache that comes with macOS and thus wouldn't be used with XAMPP (and MAMP as well, I guess).

Netbeans and Derby : access denied

I have just downloaded and installed Netbeans 7.2.1. Goind on the service tab and trying to start JavaDB. I have the following error :
java.security.AccessControlException: access denied ("java.util.PropertyPermission" "file.encoding" "read")
:(
a problem Java Security Manager
Can someone tell me how to resolve this to finally start javaDB by right clicking and choose "Start server" ?
Thank you
To solve this , You need to append this permission below to the java policy file that is shipped with JDK 1.7.:
permission java.util.PropertyPermission "file.encoding", "read";
The file can be found under : /jdk1.7.0/jre/lib/security/java.policy
Visit this link for more information. You can check this IBM document for configuration file descriptions.
I found a quick solution to this problem - Start your JavaDB from the command line\terminal like so:
<base folder>/db/bin/startNetworkServer -noSecurityManager
Then it runs fine without adding new permissions.

ECLIPSE 4.1.0; 4.1.1; Indigo - install/update plugins fail to connect to sites - fail to connect to SVN repo with Subclipse

Need help figuring out why I keep 'getting the following error :
permission denied: connect
Unable to read repository at http://update1.aptana.org/rails/1.2.1.23268/content.xml.
Permission denied: connect
Basically for all of my installed plug-ins. I was trying to update or install the latest Subclipse plug-in since I can't seem to connect to my repository (even one I knew was working before - and the svn url works elsewhere like with TortoiseSVN).
svn: Cannot connect to 'svn+ssh://kosh.nku.edu': There was a problem while connecting to kosh.nku.edu:22
svn: Cannot connect to 'svn+ssh://kosh.nku.edu': There was a problem while connecting to kosh.nku.edu:22
There was a problem while connecting to kosh.nku.edu:22
Permission denied: connect
I did switch the interface to SVNkit - which solved the issue before.
I feel like the two issues are connected somehow? I did make sure to turn off the firewall and that didn't change anything.
I am on a Windows 7 laptop - just using my home internet.
Any ideas or help would be appreciated.
Lora
....."adding '-Djava.net.preferIPv4Stack=true' to the eclipse.ini under -VMARGS:
openFile
-vmargs
-Djava.net.preferIPv4Stack=true
An alternative is to run Eclipse under a 1.6 jvm by adding
-vm
C:/Program Files/Java/jre6/bin/javaw.exe
above -VMARGS."
--this worked for me. found solution here: http://www.java.net/node/703177
I am using JDK 7
I encounter same problem and solved by:
"adding '-Djava.net.preferIPv4Stack=true' to the eclipse.ini under -VMARGS:
After modification,the ini file looks like:
...
openFile
-vmargs
-Djava.net.preferIPv4Stack=true
...
I've had similar problem with Android SDK and Eclipse 3.7.2.
Android SDK said: "permission denied: connect".
Eclipse was failed in blue screen.
My laptop is running under Windows Vista and protected by Dr.Web Security Space.
Advises with "-Djava.net.preferIPv4Stack=true" and "Window --> Preference --> General --> Network Connection --> select Direct" did not help.
Problem was resolved by installing last version of anti-virus without firewall.
After upgrading to Windows 8, I've found many of the programs on the toolbar, etc are not set to run as administrator. Though this didn't seem to make a difference in Windows 7 (perhaps because I was running unzip from the command line in an administrator cmd window), it does now.
I had the problem described in this thread because WinRAR used to unzip the downloaded zip file was not run as administrator so the installation was not properly configured. After removing the installation of eclipse and using the Properties / Shortcut / Advanced to set Run as Administrator on the WinRAR launch icon, then running it and selecting the eclipse download zip and extracting it, I was able to access the Eclipse and Android update sites without any problem. What threw me for a loop was, I was running the Oracle Java 6 JDK 1.6.0.38 so the preferIPv4Stack didn't seem to apply.
I hope this alternative provides insight to others where the IPv4 issue doesn't help.

autocomplete in a file without project in netbeans

Is it possible to activate full autocompletion without having the file added to a project?
Maybe with a plugin or any another modification?
I installed the plugin "remote file systems" for netbeans 6.9.1 (php)
(http://www.stoehrer.net/downloads/remotefs/nb-remotefs-0.1.3.zip) to access my linux server over ssh on my windows machine.
Autocompletion doesn't work with it - the files have to be in a netbeans project :(
I also tried the mounting tool "dokan" but sometimes it destroys a file when I save.
Other mounting tools work less well or just show my home folder.
Sorry for my english and thx for your answer.
coudnt solve the problem that way
so i used samba and add the files to a netbeans project
wasnt easy because for some reason
i have to use the ip path ("\\192.168.xx.xxx" and type my smbuser and the password)
to map the drive in windows
on my other pc i didnt need that. dont know why
bye guys
There is an open bug, or as they have called it, the umbrella issue #135222, to aggregate requests and ideas regarding how to
Improve support for editing files that do not belong to a project.
I have just added the suggestion of somehow allowing to define a classpath for files that don't belong to any project. I hope I can soon update this answer with a "there is a better way..." ;-)