Results 1 to 9 of 9
  1. #1
    mr_anderson is offline Member
    Join Date
    May 2010
    Location
    Florida
    Posts
    68
    Rep Power
    0

    Default problem with permission and netbeans 6.9 on linux

    Hi
    I am developing a java application that deals with the parallel port I used the parport library, I have the following problem:
    I am using netbeans 6.9 and linux redhat, when I run the code (java code that controls parallel port) from netbeans I get:
    "ioperm error: Operation not permitted"
    I used the "clean and build" function in Netbeans to create the jar file (test.jar)
    then I changed the permission of the test.jar to root using this command
    "chmod 4777 test.jar"
    and the test.jar file worked just fine as a stand alone file, but I still get the same error message when I try to run the program from Netbeans, how can I solve this issue?
    Regards.
    Anderson.

  2. #2
    mr_anderson is offline Member
    Join Date
    May 2010
    Location
    Florida
    Posts
    68
    Rep Power
    0

    Default

    what if I try to give the chmod 4777 permission to the Netbeans IDE, any one think that will work?

  3. #3
    dsims is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default

    how about using chown instead of chmod. chown -R your files to your username. netbeans is a little weird when it comes to permissions. sometimes something I can delete in nautilus I cannot delete in netbeans.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

    Default

    I might be out of date, but isn't chmod simply 3 digits?
    Read, write and execute?

    And (as dsims suggests) isn't chown for changing ownership?
    Chmod is for permissions, but has no effect on ownership...and even changing ownership will not mean it is root that is running the code, unless you are actually logged in as root.

    In any case, it is your login permission that's the cause. Presumably it doesn't have permission for whatever it's doing.

    Where's the exception coming from? Have you got the stacktrace?

  5. #5
    dsims is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default

    Tolls your out of date

  6. #6
    dsims is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default

    Quote Originally Posted by dsims View Post
    Tolls your out of date
    I was only kidding tolls. I have found on linux that sometimes if the files are not owned by the user netbeans messes up on the permissions. even when I am a member of the apache group when apache makes a file I have to open up nautilus to delete the file while netbeans will not let me delete a file.

  7. #7
    mwildam's Avatar
    mwildam is offline Member
    Join Date
    Aug 2007
    Posts
    72
    Rep Power
    0

    Default

    I had permission issues when installing NetBeans through apt-get (or yum or yast in your case maybe) and then applying the updates through NetBeans GUI.

    Similar issue when installing the downloaded installs with sudo (or as root respectively).

    I found the best solution being:

    1. Create a dir in opt, e.g. NetBeans and give full permissions or change owner to your user that you are working as normally.

    2. Install into that folder from within your normal user account.

    3. Make sure, that you place additional libraries in a user-available folder before defining libraries in NetBeans that point to those files.
    Greetings, Martin Wildam.

  8. #8
    dsims is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default

    I gave up on using apt or urpmi or deb for netbeans or eclipse I usually download the app from the site and just set it up in ~/app folder, with a symlink in ~/bin, and then create a menu entry.
    @mwildam Your method has less steps though.
    Last edited by dsims; 08-24-2010 at 01:46 PM. Reason: type faster than I think

  9. #9
    mr_anderson is offline Member
    Join Date
    May 2010
    Location
    Florida
    Posts
    68
    Rep Power
    0

Similar Threads

  1. Problem with FreeRapid in Linux
    By jacatone in forum Java Applets
    Replies: 5
    Last Post: 06-13-2010, 05:03 AM
  2. File Permission Problem
    By ProgrammingPup in forum Java Applets
    Replies: 2
    Last Post: 12-29-2009, 11:48 PM
  3. File Permission Problem
    By ProgrammingPup in forum Advanced Java
    Replies: 1
    Last Post: 12-29-2009, 05:05 PM
  4. To run Netbeans on Linux Fedora 8
    By rorootot in forum NetBeans
    Replies: 11
    Last Post: 07-22-2008, 04:23 AM
  5. problem with ServerSocket on Linux
    By gabriel in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 04:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •