Results 1 to 4 of 4
  1. #1
    kingpabs is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default newbie here, access denied error?!?

    I was trying to run simple java programs in J Creator (I'm using Java for Dummies to learn) but I get an
    error every time that says the error has to do with the class and that
    my access is being denied... here is an example:

    error while writing MortgageText: C:\Program Files
    (x86)\JCreatorV4LE\MyProjects\Program0201\Mortgage Text.class (Access
    is denied)

    I think it has to do something with permissions but not really sure...
    I'm very new to all this and trying to learn but I can't run any
    programs!

    Could you please point me in the right direction?

    Thanks!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

    Default

    Don't attempt to save source files or compile to class files under C:\Program Files\. Some versions of Windows don't allow it, and it's a bad choice anyways.

    Instead, make a top level folder (say C:\Java\) and save your work there.

    db

  3. #3
    kingpabs is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default now its even more messed up

    I moved the jdk file to C:\Java\.... but I kept the files in the same place for the programs ... I got this error

    --------------------Configuration: Program0201 - JDK version 1.6.0_24 <Default> - <Default>--------------------
    Error : Invalid path, "C:\Program Files (x86)\Java\jdk1.6.0_24\bin\javac.exe" -source 1.5 -classpath "C:\Program Files (x86)\JCreatorV4LE\MyProjects\Program0201" -d C:\Program" Files "(x86)\JCreatorV4LE\MyProjects\Program0201 @src_program0201.txt"

    Process completed.

  4. #4
    kingpabs is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default

    never mind... I put the JCreator folder (with all the sample programs from the Dummies book) into the new folder (from program files) and it works now

    thanks for the help!

Similar Threads

  1. Jni registry 'access denied' error.
    By durino13 in forum Advanced Java
    Replies: 4
    Last Post: 09-17-2011, 07:06 AM
  2. Replies: 6
    Last Post: 02-10-2011, 09:55 AM
  3. Access is denied
    By tholland in forum New To Java
    Replies: 2
    Last Post: 12-20-2010, 08:57 PM
  4. access denied
    By Dennis in forum Advanced Java
    Replies: 8
    Last Post: 06-05-2010, 08:46 AM
  5. [SOLVED] Access Denied error using FileInputStream
    By xcallmejudasx in forum New To Java
    Replies: 8
    Last Post: 05-21-2009, 04:13 AM

Posting Permissions

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