NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Gregg Wonderly Posted via mailing list.
|
Posted: Mon Aug 17, 2009 9:44 pm Post subject: Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol |
|
|
I am having problems with the netbeans cache rotting, or something related to
cached data going away. Multiple times today, I've had problems where build of
a project works flawlessly, with all dependent projects building, and then when
I press run, I get the "On or more projects were compiled with errors." dialog,
and then when I press "Run Anyway", I get the aweful
Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol
exception message in the console.
I'm sorry to say, but I have no understanding of WHY netbeans is using two
different sources of "class file" data such that it can resolve all the symbols
on a build, yet the runtime classpath and editor is using something different!
There is getting to be a lot less value in netbeans than I can stand to spend
time wasting.
These things that the IDE is trying to do for the developer are complicated and
horribly difficult to get right it seems to me. Is there some way that we can
step back a few steps and do some thing different so that we all are not
suffering with so many problems with how the editor, compiler and runtime are
interacting with the caching, scanning and other discovery support?
I'm really pleading for the dev team to look long and hard at how much software
that they are demanding work exactly right and the consequences of their
inability to code it all correctly and make it functional before deployment to
the users.
Gregg Wonderly |
|
| Back to top |
|
 |
Melongo Annabel Posted via mailing list.
|
Posted: Tue Aug 18, 2009 1:35 am Post subject: Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol |
|
|
Gregg,
Sometimes libraries available to you at compile time might not be there at runtime. To make this works, it's sometimes useful to add the same libraries to your runtime's classpath as well. Please read this: http://www.netbeans.org/kb/55/using-netbeans/deploy.html#69958
Thanks.
From: Gregg Wonderly <address-removed>
To: address-removed
Sent: Monday, August 17, 2009 4:44:14 PM
Subject: [nbusers] Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol
I am having problems with the netbeans cache rotting, or something related to cached data going away. Multiple times today, I've had problems where build of a project works flawlessly, with all dependent projects building, and then when I press run, I get the "On or more projects were compiled with errors." dialog, and then when I press "Run Anyway", I get the aweful
Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol
exception message in the console.
I'm sorry to say, but I have no understanding of WHY netbeans is using two different sources of "class file" data such that it can resolve all the symbols on a build, yet the runtime classpath and editor is using something different!
There is getting to be a lot less value in netbeans than I can stand to spend time wasting.
These things that the IDE is trying to do for the developer are complicated and horribly difficult to get right it seems to me. Is there some way that we can step back a few steps and do some thing different so that we all are not suffering with so many problems with how the editor, compiler and runtime are interacting with the caching, scanning and other discovery support?
I'm really pleading for the dev team to look long and hard at how much software that they are demanding work exactly right and the consequences of their inability to code it all correctly and make it functional before deployment to the users.
Gregg Wonderly |
|
| Back to top |
|
 |
Gregg Wonderly Posted via mailing list.
|
Posted: Tue Aug 18, 2009 2:23 pm Post subject: Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol |
|
|
Annabel, this project works fine for an hour or so, and then suddenly it fails like this after no config changes. I'm gonna try turning off compile on change as suggested.
Gregg Wonderly
On Aug 17, 2009, at 8:35 PM, Melongo Annabel wrote:
| Quote: | Gregg,
Sometimes libraries available to you at compile time might not be there at runtime. To make this works, it's sometimes useful to add the same libraries to your runtime's classpath as well. Please read this: http://www.netbeans.org/kb/55/using-netbeans/deploy.html#69958
Thanks.
From: Gregg Wonderly <address-removed ([email]address-removed[/email])>
To: address-removed ([email]address-removed[/email])
Sent: Monday, August 17, 2009 4:44:14 PM
Subject: [nbusers] Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol
I am having problems with the netbeans cache rotting, or something related to cached data going away. Multiple times today, I've had problems where build of a project works flawlessly, with all dependent projects building, and then when I press run, I get the "On or more projects were compiled with errors." dialog, and then when I press "Run Anyway", I get the aweful
Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol
exception message in the console.
I'm sorry to say, but I have no understanding of WHY netbeans is using two different sources of "class file" data such that it can resolve all the symbols on a build, yet the runtime classpath and editor is using something different!
There is getting to be a lot less value in netbeans than I can stand to spend time wasting.
These things that the IDE is trying to do for the developer are complicated and horribly difficult to get right it seems to me. Is there some way that we can step back a few steps and do some thing different so that we all are not suffering with so many problems with how the editor, compiler and runtime are interacting with the caching, scanning and other discovery support?
I'm really pleading for the dev team to look long and hard at how much software that they are demanding work exactly right and the consequences of their inability to code it all correctly and make it functional before deployment to the users.
Gregg Wonderly
|
|
|
| Back to top |
|
 |
Alan Stange Posted via mailing list.
|
Posted: Tue Aug 18, 2009 2:29 pm Post subject: Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol |
|
|
Gregg Wonderly wrote:
| Quote: | I am having problems with the netbeans cache rotting, or something
related to cached data going away. Multiple times today, I've had
problems where build of a project works flawlessly, with all dependent
projects building, and then when I press run, I get the "On or more
projects were compiled with errors." dialog, and then when I press
"Run Anyway", I get the aweful
Caused by: java.lang.RuntimeException: Uncompilable source code -
cannot find symbol
exception message in the console.
I'm sorry to say, but I have no understanding of WHY netbeans is using
two different sources of "class file" data such that it can resolve
all the symbols on a build, yet the runtime classpath and editor is
using something different!
There is getting to be a lot less value in netbeans than I can stand
to spend time wasting.
| I'll second this.
-- Alan |
|
| Back to top |
|
 |
johnstosh
Joined: 18 Nov 2011 Posts: 5
|
Posted: Fri Nov 18, 2011 9:59 pm Post subject: solution: Uncompilable source code - cannot find symbol |
|
|
I too had the problem with "Uncompilable source code - cannot find symbol"
I deleted .netbeans\7.0\var\cache\index
to get rid of this problem. |
|
| Back to top |
|
 |
jscolton
Joined: 12 May 2012 Posts: 1
|
Posted: Sat May 12, 2012 12:40 pm Post subject: deleting /var/cache/index doesn't work in netbeans 7.1 |
|
|
Hi,
I've wasted 3 hours on this.
It comiles ok in my IDE. But when deploying I get:
Caused by: java.lang.RuntimeException: Uncompilable source code - package org.hibernate does not exist
And when I click on the problematic class there's a compile error inside it against the Hibernate package!!!!!
What the hell is going on?
Going to move to Eclipse asap... |
|
| Back to top |
|
 |
|
|
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
|
|