NetBeans Forums

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

Erroneous sym type in Netbeans but not in Eclipse

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



Joined: 22 Sep 2011
Posts: 1

PostPosted: Thu Sep 22, 2011 9:53 am    Post subject: Erroneous sym type in Netbeans but not in Eclipse Reply with quote

Hi

i tried to create a simple programm, which use the Google Calendar Api: http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html

The code is the same on the page above.it works on Eclipse but not in Netbeans:

Code:


public class Start {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)  {
        CalendarService calendarService = new CalendarService("calendar");
        calendarService.setUserCredentials("jo@gmail.com", "mypassword");


    }
}




In Netbeans i get the following error message:

Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: com.google.gdata.client.calendar.CalendarService.setUserCredentials
at control.Start.main(Start.java:21)
Java Result: 1

Why does it not work , bur in Eclipse ? The imports of packages is the same.I import gdata_client 1.0,gdata_calendar 2.0 and guava r09.
Back to top
Agus



Joined: 24 Jan 2010
Posts: 2

PostPosted: Fri Sep 23, 2011 10:39 am    Post subject: Re: Erroneous sym type in Netbeans but not in Eclipse Reply with quote

Maybe this link will be useful for you:

http://stackoverflow.com/questions/4386076/uncompilable-source-code-runtimeexception-in-netbeans


I hope this was helpful. Best regards,



--------------------------------------------------
From: "etuli" <address-removed>
Sent: Thursday, September 22, 2011 11:54 AM
To: <address-removed>
Subject: [nbj2ee] Erroneous sym type in Netbeans but not in Eclipse

Quote:
Hi

i tried to create a simple programm, which use the Google Calendar Api:
http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html

The code is the same on the page above.it works on Eclipse but not in
Netbeans:


Code:


public class Start {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
CalendarService calendarService = new CalendarService("calendar");
calendarService.setUserCredentials("address-removed", "mypassword");


}
}






In Netbeans i get the following error message:

Exception in thread "main" java.lang.RuntimeException: Uncompilable source
code - Erroneous sym type:
com.google.gdata.client.calendar.CalendarService.setUserCredentials
at control.Start.main(Start.java:21)
Java Result: 1

Why does it not work , bur in Eclipse ? The imports of packages is the
same.I import gdata_client 1.0,gdata_calendar 2.0 and guava r09.




Back to top
CodeDoc



Joined: 28 Apr 2012
Posts: 3

PostPosted: Sat Apr 28, 2012 8:11 am    Post subject: To avoid this exception .... Reply with quote

To avoid the "uncompilable source code - erroneous sym type" if it occurs (please don't ask me why, but I get it sometimes, if I exchange the complete source code by an older backup) you can help yourself by the following action in NetBeans:

Open the project properties, select the Build-Compiling, uncheck "Compile on save" and rerun the application. This will make sure all your source code becomes recompiled before running it.

If it was successful, check "Compile on save" again to save time when you keep doing your job.
Back to top
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
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo