| View previous topic :: View next topic |
| Author |
Message |
alekoc
Joined: 10 Oct 2008 Posts: 30
|
Posted: Tue Jul 10, 2012 9:21 pm Post subject: jsp Compile File Exception |
|
|
Description:
Beginning NB 7.x versions I get
| Code: | Exception in thread "main" java.lang.IllegalArgumentException: PWC6309: Illegal compilerSourceVM: 1.7
at org.apache.jasper.JspC.setCompilerSourceVM(JspC.java:708)
at org.netbeans.modules.web.project.ant.JspC.main(JspC.java:80)
at org.netbeans.modules.web.project.ant.JspCSingle.main(JspCSingle.java:119)
E:\zProjects\zJava\dbase\nbproject\build-impl.xml:651: The following error occurred while executing this line:
E:\zProjects\zJava\dbase\nbproject\build-impl.xml:626: Java returned: 1
BUILD FAILED (total time: 0 seconds) |
when I do Compile File F9 for any “jsp” file.
I went through forums and found the recommendation – to comment couple lines in build-impl.xml file like next:
| Code: | <!-- <arg value="-compilerSourceVM ${javac.source}"/>
<arg value="-compilerTargetVM ${javac.target}"/> --> |
I tried the recommendation and was really happy. Everything works fine. I am able to compile single jsp, to clean and build and to run the project.
The questions to experts:
Are there any invisible problems with that kind of patch? Can I use this for my work? How it can affect other areas of NB?
Product Version: NetBeans IDE 7.0.1 (Build 201107282000)
Java: 1.7.0_03; Java HotSpot(TM) 64-Bit Server VM 22.1-b02
System: Windows 7 version 6.1 running on amd64; Cp1251; en_US (nb) |
|
| Back to top |
|
 |
SearchEngine27
Joined: 21 Jun 2012 Posts: 66
|
Posted: Tue Jul 10, 2012 10:18 pm Post subject: |
|
|
| well your "problem" is that javascript is interpreted.... |
|
| Back to top |
|
 |
alekoc
Joined: 10 Oct 2008 Posts: 30
|
Posted: Tue Jul 10, 2012 11:30 pm Post subject: |
|
|
| SearchEngine27 wrote: | | well your "problem" is that javascript is interpreted.... |
What are you talking about? Could you clarify, please? I don’t see any relation with JavaScript. I do Right Click-New-JSP-Finish and receive Hello World JSP. It does not contain any JavaScript at all. Next I just try to compile it by F9 and have Exception. |
|
| Back to top |
|
 |
SearchEngine27
Joined: 21 Jun 2012 Posts: 66
|
Posted: Wed Jul 11, 2012 12:38 am Post subject: |
|
|
| thats my mistake, i had the wrong understanding of jsp's. i had thought they were javascript. i havent used them in a while, so i had mistaken them for script files at first glance seeing "js" in there |
|
| Back to top |
|
 |
emiddio-frontier Posted via mailing list.
|
Posted: Wed Jul 11, 2012 2:27 pm Post subject: jsp Compile File Exception |
|
|
This is a bug that has been around for some time; i have not tried compiling
jsp files in months. Issue was with jdk7, nb701; may be fixed in nb7.2 when
it ships.
-Gary
----- Original Message -----
From: "alekoc" <address-removed>
To: <address-removed>
Sent: Tuesday, July 10, 2012 4:30 PM
Subject: [nbusers] jsp Compile File Exception
SearchEngine27 wrote:
| Quote: | well your "problem" is that javascript is interpreted....
|
What are you talking about? Could you clarify, please? I don |
|
| Back to top |
|
 |
alekoc
Joined: 10 Oct 2008 Posts: 30
|
Posted: Wed Jul 11, 2012 5:25 pm Post subject: |
|
|
Thanks emiddio-frontier. You are right. I’ve just downloaded NetBeans IDE 7.2 RC1 and no Exception any more. The bug is fixed at 7.2 version, but exist at 7.0 and 7.1.
Maybe you can answer another question, please: Beginning 7.1 version, NB does not support Swing Application Framework, but when I downloaded 7.1 and 7.2 I have got the library link errors for my Swing projects and invitation to resolve it by downloading SFA plugins. I’ve pushed the button “Download” and got response: | Code: | | The following plugins will be installed: Swing Application Framework Library [1.0]. | The download finished fine, but I am receiving the error | Code: | | “NetBeans support of SFA has been discontinued. Please, use NetBeans 7.0 if you want to use this framwork” | when I am opening some SFA form.
The question: What did I downloaded, if it is still does not resolve the problem? Maybe I have to do some additional steps for SFA plugins activation? |
|
| Back to top |
|
 |
alekoc
Joined: 10 Oct 2008 Posts: 30
|
|
| Back to top |
|
 |
|