|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
HELP!!! NETBEANS ERRORSI 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 > 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. > 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 > > 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! Attachments: http://forums.netbeans.org//files/picture2_437.png http://forums.netbeans.org//files/picture1_284.png |
|
|
Re: HELP!!! NETBEANS ERRORSThe 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 <p0932273@...> wrote: I am a student working on my project and i need NetBean up quickly. I am facing couple of problems with my netbeans. -- 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 |
|
|
HELP!!! NETBEANS ERRORSHow do i change the permission for it?
|
|
|
Re: HELP!!! NETBEANS ERRORSThis is dependent on your operating system. Please check your OS for how to change permissions.
-- 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 |
|
|
HELP!!! NETBEANS ERRORSI am using vista at the moment, i have remove the firewall block but i cant access too.?
|
| Free embeddable forum powered by Nabble | Forum Help |