FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

HELP!!! NETBEANS ERRORS

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
CL



Joined: 30 Oct 2009
Posts: 3

PostPosted: Fri Oct 30, 2009 3:49 pm    Post subject: HELP!!! NETBEANS ERRORS Reply with quote

I am a student working on my project and i need NetBean up quickly. I am facing couple of problems with my netbeans.

There will be an error when i am loading up netbeans during the loading modules. There's an screen shot on the error attached.

The below is the details of the error being provided by netbeans

Quote:
java.io.FileNotFoundException: C:\Users\Fujitsu User\.netbeans\6.7\config\Preferences\org\netbeans\modules\autoupdate.properties (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.openide.filesystems.LocalFileSystem.outputStream(LocalFileSystem.java:432)
at org.openide.filesystems.LocalFileSystem$Impl.outputStream(LocalFileSystem.java:652)
at org.openide.filesystems.StreamPool.createOutputStream(StreamPool.java:146)
at org.openide.filesystems.AbstractFileObject.getOutputStream(AbstractFileObject.java:240)
at org.openide.filesystems.AbstractFileObject.getOutputStream(AbstractFileObject.java:222)
at org.openide.filesystems.MultiFileObject.getOutputStream(MultiFileObject.java:623)
at org.openide.filesystems.MultiFileObject.getOutputStream(MultiFileObject.java:623)
at org.netbeans.core.startup.preferences.PropertiesStorage.outputStream(PropertiesStorage.java:250)
at org.netbeans.core.startup.preferences.PropertiesStorage.save(PropertiesStorage.java:218)
at org.netbeans.core.startup.preferences.NbPreferences.flushSpi(NbPreferences.java:166)
Caused: java.util.prefs.BackingStoreException
at org.netbeans.core.startup.preferences.NbPreferences.flushSpi(NbPreferences.java:168)
at org.netbeans.core.startup.preferences.NbPreferences$1$1.run(NbPreferences.java:70)
at
)
at org.netbeans.core.startup.preferences.PropertiesStorage.runAtomic(PropertiesStorage.java:314)
at org.netbeans.core.startup.preferences.NbPreferences$1.run(NbPreferences.java:66)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)


Also when i am opening up a project being saved previously. This error will happen, as attached.

Also when I want to print line or use the JOptionPane. This error will occurs.

My coding for the JOptionPane or Print Line is as follow too.

Quote:
package Q2;

import javax.swing.JOptionPane;

/**
*
* @author Lim Cheng Lei
*/
public class NewClass {

public static void main(String[] args) {
JOptionPane.showInputDialog(null,"How come?");
}//End of Method (Main)

}//End of Class


Quote:
java.lang.NoClassDefFoundError: Q2/NewClass
Caused by: java.lang.ClassNotFoundException: Q2.NewClass
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: Q2.NewClass. Program will exit.
Exception in thread "main" Java Result: 1


Please help me, i need to submit my project soon!



Picture2.png
 Description:
Opening Project
 Filesize:  298.11 KB
 Viewed:  244 Time(s)

Picture2.png



Picture1.png
 Description:
Error upon start up
 Filesize:  844.5 KB
 Viewed:  244 Time(s)

Picture1.png


Back to top
View user's profile Send private message
jyeary



Joined: 21 Oct 2008
Posts: 100
Location: Simpsonville, SC

PostPosted: Sat Oct 31, 2009 1:14 am    Post subject: HELP!!! NETBEANS ERRORS Reply with quote

The NetBeans error is an indication that the permissions on that file/directory are not set for you. In other words, you don't have permission to access those files.

You can try changing the permissions to fix that error.

Your code ran fine on my system. It does not do anything, but it displayed the dialog as expected. I suspect that the permissions are incorrect on this too.


On Fri, Oct 30, 2009 at 11:49 AM, CL <address-removed ([email]address-removed[/email])> wrote:
Quote:
I am a student working on my project and i need NetBean up quickly. I am facing couple of problems with my netbeans.



There will be an error when i am loading up netbeans during the loading modules. There's an screen shot on the error attached.



The below is the details of the error being provided by netbeans




Quote:
java.io.FileNotFoundException: C:\Users\Fujitsu User\.netbeans\6.7\config\Preferences\org\netbeans\modules\autoupdate.properties (Access is denied)

Quote:

_________________
You get more with a kind word and a gun than with a kind word alone.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CL



Joined: 30 Oct 2009
Posts: 3

PostPosted: Sat Oct 31, 2009 5:47 am    Post subject: Reply with quote

How do i change the permission for it?
Back to top
View user's profile Send private message
jyeary



Joined: 21 Oct 2008
Posts: 100
Location: Simpsonville, SC

PostPosted: Mon Nov 02, 2009 1:43 pm    Post subject: HELP!!! NETBEANS ERRORS Reply with quote

This is dependent on your operating system. Please check your OS for how to change permissions.

On Sat, Oct 31, 2009 at 12:47 AM, CL <address-removed ([email]address-removed[/email])> wrote:
Quote:
How do i change the permission for it?







--
John Yeary
--
http://javaevangelist.blogspot.com

"Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the grey twilight that knows not victory nor defeat."
-- Theodore Roosevelt

_________________
You get more with a kind word and a gun than with a kind word alone.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CL



Joined: 30 Oct 2009
Posts: 3

PostPosted: Mon Nov 02, 2009 2:12 pm    Post subject: Reply with quote

I am using vista at the moment, i have remove the firewall block but i cant access too.?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB