Unable to compile jsp files using GAE - java

I'm trying to deploy an App for the first time on the App Engine and i'm getting an error saying "com.google.appengine.tools.admin.JspCompilationException: Failed to compile jsp files.". Anyone have any ideas how can i fix this. I've set up eclipse to point to JDK1.6.0_17. I'm trying to integrate OAuth with salesforce and GAE using Eclipse 3.7 Indigo having App Engine SDK 1.7. The problem is that application was written in jdk 1.5 and I have to make it deploy in jdk 1.6. I have used 5 helper jar files as: commons-codec-1.6.jar, commons-lang-2.6.jar, oauth-1.4.jar, partner-18.jar, wsc-gae-16_0.jar. The partner jar contains: com.sforce.sobject.SObject.class which is to be used to compile jsp files.
Its showing the error as:
Preparing to deploy:
Created staging directory at: 'C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp'
Scanning for jsp files.
Compiling jsp files.
com.google.appengine.tools.admin.JspCompilationException: Failed to compile jsp files.
Jul 11, 2012 10:20:18 AM org.apache.jasper.compiler.AntCompiler generateClass
SEVERE: Error compiling file: C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java [javac] Compiling 1 source file
[javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:6: package com.sforce.soap.partner.sobject does not exist
[javac] import com.sforce.soap.partner.sobject.SObject;
[javac] ^
[javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:6: package com.sforce.soap.partner.sobject does not exist
[javac] import com.sforce.soap.partner.sobject.SObject;
[javac] ^
[javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:62: cannot find symbol
[javac] symbol : class SObject
[javac] location: class org.apache.jsp.accounts_jsp
[javac] SObject[] accounts = (SObject[])request.getAttribute("accounts");
[javac] ^
[javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:62: cannot find symbol
[javac] symbol : class SObject
[javac] location: class org.apache.jsp.accounts_jsp
[javac] SObject[] accounts = (SObject[])request.getAttribute("accounts");
[javac] ^
[javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:69: cannot find symbol
[javac] symbol : class SObject
[javac] location: class org.apache.jsp.accounts_jsp
[javac] for (SObject account : accounts) {
[javac] ^
[javac] Note: C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 errors
Jul 11, 2012 10:20:18 AM org.apache.jasper.compiler.AntCompiler generateClass
SEVERE: Javac exception
Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:226)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
at org.apache.jasper.JspC.processFile(JspC.java:1192)
at org.apache.jasper.JspC.execute(JspC.java:1341)
at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:18)
Jul 11, 2012 10:20:18 AM org.apache.jasper.compiler.AntCompiler generateClass
SEVERE: Environment: Compile: javaFileName=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java
classpath=/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-labs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-stubs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-local-runtime.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/google_sql.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\appengine-local-runtime-shared.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\el-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-launcher-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-el-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-tomcat-juli-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\servlet-api.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar;;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar
cp=/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-labs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-stubs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-local-runtime.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/google_sql.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\appengine-local-runtime-shared.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\el-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-launcher-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-el-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-tomcat-juli-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\servlet-api.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar;
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\impl\appengine-api-labs.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\impl\appengine-api-stubs.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\impl\appengine-api.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\impl\appengine-local-runtime.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\impl\google_sql.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\appengine-local-runtime-shared.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\el-api.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-1.7.1.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-launcher-1.7.1.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-6.0.29.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-el-6.0.29.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-tomcat-juli-6.0.29.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp-api.jar
cp=D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\servlet-api.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar
cp=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar
work dir=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes
extension dir=C:\Program Files\Java\jdk1.6.0_05\jre\lib\ext;C:\windows\Sun\Java\lib\ext
srcDir=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes
compiler=extJavac
compilerTargetVM=1.5
compilerSourceVM=1.5
include=org/apache/jsp/accounts_jsp.java
Exception in thread "main" org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: -1 in the generated java file
[javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:6: package com.sforce.soap.partner.sobject does not exist
[javac] import com.sforce.soap.partner.sobject.SObject;
[javac] ^
An error occurred at line: -1 in the generated java file
[javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:6: package com.sforce.soap.partner.sobject does not exist
[javac] import com.sforce.soap.partner.sobject.SObject;
[javac] ^
An error occurred at line: -1 in the generated java file
[javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:62: cannot find symbol
[javac] symbol : class SObject
[javac] location: class org.apache.jsp.accounts_jsp
[javac] SObject[] accounts = (SObject[])request.getAttribute("accounts");
[javac] ^
An error occurred at line: -1 in the generated java file
[javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:62: cannot find symbol
[javac] symbol : class SObject
[javac] location: class org.apache.jsp.accounts_jsp
[javac] SObject[] accounts = (SObject[])request.getAttribute("accounts");
[javac] ^
An error occurred at line: -1 in the generated java file
[javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:69: cannot find symbol
[javac] symbol : class SObject
[javac] location: class org.apache.jsp.accounts_jsp
[javac] for (SObject account : accounts) {
[javac] ^
An error occurred at line: -1 in the generated java file
[javac] Note: C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java uses unchecked or unsafe operations.
An error occurred at line: -1 in the generated java file
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 errors
An error occurred at line: 20 in the generated java file
Jul 11, 2012 10:20:18 AM org.apache.jasper.compiler.AntCompiler generateClass
SEVERE: Javac exception
Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:226)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
at org.apache.jasper.JspC.processFile(JspC.java:1192)
at org.apache.jasper.JspC.execute(JspC.java:1341)
at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:18)
An error occurred at line: 20 in the generated java file
Jul 11, 2012 10:20:18 AM org.apache.jasper.compiler.AntCompiler generateClass
An error occurred at line: -1 in the generated java file
SEVERE: Environment: Compile: javaFileName=C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java
An error occurred at line: -1 in the generated java file
classpath=/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-labs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api-stubs.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-api.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/appengine-local-runtime.jar;/D:/eclipse-SDK-3.7.2-win32/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.0/appengine-java-sdk-1.7.0/lib/impl/google_sql.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\appengine-local-runtime-shared.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\el-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-ant-launcher-1.7.1.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-jasper-el-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp\repackaged-appengine-tomcat-juli-6.0.29.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\jsp-api.jar;D:\eclipse-SDK-3.7.2-win32\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.0\appengine-java-sdk-1.7.0\lib\shared\servlet-api.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jpa_3.0_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\geronimo-jta_1.1_spec-1.1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\jsr107cache-1.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.1.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-jstl-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-el-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.jar;;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-api-labs.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-endpoints.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\appengine-jsr107cache-1.7.0.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-appengine-1.0.10.final.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-core-1.1.5.jar;C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C:\Users\Astrea\AppData\Local\T....... and so on
Debugging information may be found in C:\Users\Astrea\AppData\Local\Temp\appengine-deploy54830.log
$Any ideas why this is happening?
the file i'm using is:
accounts.jsp
<%# page import="com.sforce.soap.partner.sobject.SObject" %>
<%
SObject[] accounts = (SObject[])request.getAttribute("accounts");
%>
<%# include

You should make sure that the extra jars are in WEB-INF\lib directory (or make sure that your IDE copies them there).

try this :
may be it work
Add -vm C:\Program Files\Java\jdk1.6.0_43\bin\javaw.exe to my eclipse.ini.
Ensure that the JDK is in my project's build path and not the jre.
Add the C:\Program Files\Java\jdk1.6.0_43\bin\ to the PATH for Environment Variable.
change JAVA_HOME path to JDK from JRE and make sure JAVA_HOME\bin is included in PATH. Then, restart Eclipse.
and even if problem persist
build path for that package.

Related

Ubuntu 18.04 javafx.utils not there

I am trying to 'build' Floodlight. I've stumbled upon compilation issue that is fairly self-explanatory, i.e:
> compile:
> [javac] Compiling 593 source files to /mnt/sda1/floodlight/floodlight/target/bin
> [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
> [javac] /mnt/sda1/floodlight/floodlight/src/main/java/net/floodlightcontroller/loadbalancer/LoadBalancer.java:57:
> error: package javafx.util does not exist
> [javac] import javafx.util.Pair;
> [javac] ^
> [javac] /mnt/sda1/floodlight/floodlight/src/main/java/net/floodlightcontroller/statistics/IStatisticsService.java:10:
> error: package javafx.util does not exist
> [javac] import javafx.util.Pair;
> [javac] ^
> [javac] /mnt/sda1/floodlight/floodlight/src/main/java/net/floodlightcontroller/loadbalancer/LoadBalancer.java:138:
> error: cannot find symbol
> [javac] protected HashMap<Pair<Match,DatapathId>,String> flowToVipId;
> [javac] ^
> [javac] symbol: class Pair
> [javac] location: class LoadBalancer
> [javac] /mnt/sda1/floodlight/floodlight/src/main/java/net/floodlightcontroller/statistics/IStatisticsService.java:25:
> error: cannot find symbol
[and so on]
I've of course tried adding javafx via apt like this:
root#hp-linux: apt install openjfx
root#hp-linux:/mnt/sda1/floodlight/floodlight# dpkg-query -L openjfx
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/openjfx
/usr/share/doc/openjfx/TODO.Debian
/usr/share/doc/openjfx/changelog.Debian.gz
/usr/share/doc/openjfx/copyright
/usr/share/openjfx
/usr/share/openjfx/lib
/usr/share/openjfx/lib/javafx.properties
/usr/share/openjfx/lib/javafx.base.jar
/usr/share/openjfx/lib/javafx.controls.jar
/usr/share/openjfx/lib/javafx.fxml.jar
/usr/share/openjfx/lib/javafx.graphics.jar
/usr/share/openjfx/lib/javafx.media.jar
/usr/share/openjfx/lib/javafx.swing.jar
/usr/share/openjfx/lib/javafx.web.jar
It seems like indeed, javafx.utils is not there. How do I fix that ? I've tried pretty much everything I've been able to find in the Internet, but to no avail.
As openjfx is no longer supported upstream, Ubuntu 18.04 decided not to support openjfx 8 anymore and replaced it with openjfx 11. If you are an SDN-man you should know that Floodlight supports Java 8 and so the problem will be found here.
I shared a post right now that I wish could help you.
How to install Floodlight controller on Ubuntu 18.04 LTS alongside with Openjfx

Swing Issue on Java 10

I am currently trying to move our application from Java 8 to Java 10 and in few months will be moving to Java 11.
We have a legacy system which uses a bit of API's which are removed or will be removed I guess. We are using ant script (1.10.1) for our application compilation.
Below is the same of the part that build our application:
<target name="javac-setup" depends="flags, with.clover, jaxb-apply, flamingo.javac"/>
<target name="javac" depends="javac-setup">
<mkdir dir="${workmanager.dir.classes}"/>
<javac destdir="${workmanager.dir.classes}" deprecation="on" debug="${javac.debug}" encoding="iso-8859-1" includeantruntime="false">
<compilerarg line="-Xlint:static"/>
<compilerarg line="-Xlint:unchecked"/>
<compilerarg line="-Xlint:overrides"/>
<compilerarg line="-Xmaxerrs 9999" />
<compilerarg line="-Xmaxwarns 9999" />
<compilerarg value="-Werror"/>
<src path="${workmanager.dir.src}"/>
<src path="${webservices.dir.java.src}"/>
<patternset refid="java.sources"/>
<classpath refid="classes.classpath"/>
</javac>
</target>
During compilation I am getting few errors related to Java Swing (again bit older one, but have to live with it) after moving to Java 10. As I am still not completely aware of all the changes happened in Java 10, to me it looks like the issue is related to modularization concept. Not sure though still learning. I know your suggestion to know if these kinds of error are related to modularization. Also any suggestion or tips to fix these?
Below is the error:
[javac] Compiling 3253 source files to C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\classes
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\datamgmt\report\ui\AssignPosNumberToolbar.java:26: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsButtonUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\datamgmt\report\ui\AssignPosNumberToolbar.java:27: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsToolBarUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\utils\WMClosableTabbedPane.java:33: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsTabbedPaneUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\MultiColumnComboBox.java:58: error: package com.sun.java.swing.plaf.motif is not visible
[javac] import com.sun.java.swing.plaf.motif.MotifComboBoxUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.motif is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\datamgmt\ui\SimplificationComboBox.java:31: error: package com.sun.java.swing.plaf.motif is not visible
[javac] import com.sun.java.swing.plaf.motif.MotifComboBoxUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.motif is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\xplookandfeel\XPComboBoxUI.java:21: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsComboBoxUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\datamgmt\ui\favorites\FavoritesToolBar.java:28: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsButtonUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\datamgmt\ui\favorites\FavoritesToolBar.java:29: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsToolBarUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\ptc\PtcLaf.java:14: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\ptc\PtcMenuUI.java:31: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\ptc\PtcRadioButtonMenuItemUI.java:14: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsIconFactory;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\ptc\PtcSeparatorUI.java:20: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsSeparatorUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\xplookandfeel\XPButtonUI.java:26: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsButtonUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\xplookandfeel\XPLookAndFeel.java:24: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsIconFactory;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\xplookandfeel\XPLookAndFeel.java:25: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\xplookandfeel\XPMenuUI.java:25: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\xplookandfeel\XPRadioButtonMenuItemUI.java:14: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsIconFactory;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\xplookandfeel\XPSeparatorUI.java:17: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsSeparatorUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\xplookandfeel\XPToggleButtonUI.java:23: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsToggleButtonUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] C:\WorkSpace\JAVA10\oswm\rel20.10_Patches\WorkManager\src\com\osm\ui\laf\xplookandfeel\XPToolBarUI.java:17: error: package com.sun.java.swing.plaf.windows is not visible
[javac] import com.sun.java.swing.plaf.windows.WindowsToolBarUI;
[javac] ^
[javac] (package com.sun.java.swing.plaf.windows is declared in module java.desktop, which does not export it)
[javac] 20 errors
Yes, this is due to the module system. You are accessing internal APIs, which the JPMS won't let you do by default.
Quick fix
To quick-fix this, use the command line option --add-exports %module/%package=ALL-UNNAMED for each package mentioned by the messages, e.g.:
--add-exports java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED
(No, there is no wildcard) You have to add these to your build command for Java 9+ and at some point (likely Java 12+) also to your execution command.
Proper fix
As mentioned, this is just a quick-fix. With the module system in place, the JDK team might more aggressively refactor internals like the API you are using, so chances are that you will run into problems with changed or removed classes in the future.
The proper fix is to remove your dependencies on these internals. A first step is to check whether the features you're using there might in the meantime have gotten a standardized API.

Facing build failure for Apache Solr

I am facing following error while building Apache Solr 7.1.0 using OpenJDK 8
[javac] Compiling 1148 source files to /solr-7.1.0/solr/build/solr-core/classes/java
[javac]
[javac]
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.StackOverflowError
[javac] at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scanExpr(Flow.java:1635)
[javac] at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitApply(Flow.java:2258)
[javac] at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
[javac] at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
[javac] at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:404)
[javac] at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scan(Flow.java:1382)
[javac] at com.sun.tools.javac.tree.TreeScanner.visitSelect(TreeScanner.java:264)
[javac] at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitSelect(Flow.java:2337)
Increasing the stack size using -Xss option didn't resolve the issue.
I have tried to even increase the stack size by modifying solr default options.
But it didn't solve the issue.

Internal Compiler Error while building with ant in liferay 6.1 sdk

I am facing a strange problem when I try to compile a portlet plugin in 6.1.10.
The first version of the plugin didn't have any problems and was commited in the SVN. I made a branch of this plugin and some changes in the java files and since then I can't compile it from the prompt (in Liferay Studio 2.2.x it compiles correctly).
So, now I have in the same SDK the two versions of the same plugin, but the first version compiles without a problem, and the second has the following error:
[javac] 1. ERROR in /XXXX/liferay-plugins-sdk-6.1.10-ee-ga1/portlets/XXXX-portlet/docroot/WEB-INF/src/XXXX/ObjectFactory.java (at line 0)
[javac]
[javac] ^
[javac] Internal compiler error
[javac] java.lang.NullPointerException
[javac] at org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:44)
[javac] at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:130)
[javac] at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:197)
[javac] at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:193)
[javac] at org.eclipse.jdt.internal.compiler.ast.Annotation.resolveType(Annotation.java:231)
[javac] at org.eclipse.jdt.internal.compiler.ast.ASTNode.resolveAnnotations(ASTNode.java:594)
[javac] at org.eclipse.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor.resolveAnnotations(AnnotationDiscoveryVisitor.java:143)
[javac] at org.eclipse.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor.visit(AnnotationDiscoveryVisitor.java:131)
[javac] at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1198)
[javac] at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:687)
[javac] at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundEnvImpl.<init>(RoundEnvImpl.java:56)
[javac] at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:148)
[javac] at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:794)
[javac] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:423)
[javac] at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:3543)
[javac] at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1645)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javac] at java.lang.reflect.Method.invoke(Method.java:597)
[javac] at org.eclipse.jdt.core.JDTCompilerAdapter.execute(JDTCompilerAdapter.java:79)
I checked the classpath of the two builds and they were the same apart of the name of the plugin folder. As they build in the same SDK, they are using the same java, the same compiler, portal etc. The java version is 1.6.0_65, but the problem is also reproduceable in different machines.
Also, the class that fails in the compilation is identical in the two projects.
Thanks in advance.
It seems that the liferay 6.1.10 SDK is using a very old ecj.jar (version 3.4.1). I deleted the ecj.jar from the ant lib directory (that was copied there by the liferay sdk), and replaced the ecj.jar of the sdk lib directory with the ecj 3.5.1. With the next 'ant war' the new ecj.jar is copied in the ant lib dir and with another run of the war task, the error was gone.
See also the bug in eclipse bugzilla in the above comments.

How to make ant to print full path

I am using ant to compile android project. But when compile error happens, it always only prints the file name instead of path + file name.
Something like this:
compile:
[javac] /home/ccheng/program/predecate_android_sdk/tools/ant/main_rules.xml:384: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 2 source files to /home/ccheng/workspace_helio/android_test/bin/classes
[javac] MainActivity.java:25: not a statement
[javac] asdfasdf
[javac] ^
[javac] MainActivity.java:25: ';' expected
[javac] asdfasdf
[javac] ^
[javac] 2 errors
So because of it, however hard i try to configure my vim, the file name always can't be matched.I doubt there must be a method to make ant print the full path or configure vim to match the file name.
thanks.
I have solved this problem. It's not about the ant, it is caused by javac. My previous jdk is openjdk-1.6-jdk, it won't print path. As soon as i change to gcj-4.6, then path will be printed. It seems tha openjdk-1.7 also fixes this problem.

Categories