Import Package problems and error in the Java file created in runtime

got the following error message when i try to load the JSP file given below (FlightSearch.jsp). Given also below the JAVA files (flightsearch$jsp.java) created by the compiler.
Thanks for your help
Susan
Error message
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:320: 'catch' without 'try'.
} catch (Throwable t) {
^
C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:328: 'try' without 'catch' or 'finally'.
^
C:\jakarta-tomcat\work\client\localhost\client\client\flightsearch$jsp.java:328: '}' expected.
^
3 errors, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
FlightSearch.jsp
<%@page import="java.util.*" errorPage="ErrorHandler.jsp"%>
<%@page import="com.client.entity.Flight"%>
<%@page import="com.client.wsclient.FlightServiceClient"%>
<H3>Available Flight List</H3>
<br>We have found the following Available flight(s) : </br>
<table border="0" cellpadding="0" cellspacing="0" width="100">
<tr>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Flight Company</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Flight Number</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Depart From<font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrive</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Departure Date</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Departure Time</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrival Date</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Arrival Time</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Adult Fare</font></b></td>
<td width="10%" bgcolor="#808080"><b><font color="#FFFFFF">Child Fare</font></b></td>
</tr>
<%
//Get the search information
String des = request.getParameter("DFrom");
String arr = request.getParameter("DTo");
String fy = request.getParameter(FYear.value);
String fm = request.getParameter(FMonth.value);
String fd = request.getParameter(FDay.value);
String f1 = fy + "-" + fm;
String FDat = f1 + "-" + fd;
String ty = request.getParameter(TYear.value);
String tm = request.getParameter(TMonth.value);
String td = request.getParameter(TDay.value);
String t1 = ty + "-" + tm;
String TDat = t1 + "-" + td;
String type;
if( request.getParameter(type[0].checked))
type = "Return";
else
{ type = "OneWay";
String clas;
if(request.getParameter(clas[0].checked))
{clas = "ECO";
else
{clas = "BUSS";}
String adult = request.getParameter(Adult.value);
String child = request.getParameter(Child.value);
//Get the server Flight Search Service URL
// ServerFlightSearchBO SFSBO = new ServerFlightSearchBO();
// ServerFlightSearch FlightSearch = SFSBO.getFlightSearchURL();
// FlightSearchServiceClient FSearchServiceClient = new FlightSearchServiceClient
String ServerFlightServiceURL = "http://localhost:7080/AServer/services/FlightService";
//Find available Flight
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(des, arr, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
%>
<tr>
<td width= "10%"><%=flt.getFlightComp()%></td>
<td width= "10%"><%=flt.getFlightNum()%></td>
<td width= "10%"><%=flt.getDestination()%></td>
<td width= "10%"><%=flt.getArrive()%></td>
<td width= "10%"><%=flt.getFrDate()%></td>
<td width= "10%"><%=flt.getFlightDptTm()%></td>
<td width= "10%"><%=flt.getToDate()%></td>
<td width= "10%"><%=flt.getFlightArrTm()%></td>
<%
int adt, chld;
int far_A, tot_A, far_C, tot_C;
adt = Integer.parseInt(adult);
far_A = flt.getAdultFr();
tot_A = adt * far_A;
chld = Integer.parseInt(child);
far_C = flt.getChildFr();
tot_C = chld * far_C;
%>
<td width= "10%"><%=tot_A%></td>
<td width= "10%"><%=tot_C%></td>
</tr>
<%
if(type = "Return")
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(arr, des, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
%>
<tr>
<td width= "10%"><%=flt.getFlightComp()%></td>
<td width= "10%"><%=flt.getFlightNum()%></td>
<td width= "10%"><%=flt.getFlightDpt()%></td>
<td width= "10%"><%=flt.getFlightArr()%></td>
<td width= "10%"><%=flt.getFlightDptDt()%></td>
<td width= "10%"><%=flt.getFlightDptTm()%></td>
<td width= "10%"><%=flt.getFlightArrDt()%></td>
<td width= "10%"><%=flt.getFlightArrTm()%></td>
<%
int adlt, chd;
int fare_A, totA, fare_C, totC;
adlt = Integer.parseInt(adult);
fare_A = flt.getAdultFr();
totA = adlt * fare_A;
chd = Integer.parseInt(child);
fare_C = flt.getChildFr();
totC = chd * fare_C;
%>
<td width= "10%"><%=totA%></td>
<td width= "10%"><%=totC%></td>
</tr>
<%
%>
</table>
flightsearch$jsp.java
package org.apache.jsp;
import java.util.*;
import com.client.entity.Flight;
import com.client.wsclient.FlightServiceClient;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class flightsearch$jsp extends HttpJspBase {
static {
public flightsearch$jsp( ) {
private static boolean jspxinited = false;
public final void jspxinit() throws org.apache.jasper.runtime.JspException {
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
jspxinit();
jspxinited = true;
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;ISO-8859-1");
pageContext = _jspxFactory.getPageContext(this, request, response,
"ErrorHandler.jsp", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/client/flightsearch.jsp";from=(0,59);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(1,43);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(2,58);to=(19,0)]
out.write("\r\n\r\n<H3>Available Flight List</H3>\r\n<br>We have found the following Available flight(s) : </br>\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100\">\r\n <tr>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Flight Company</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Flight Number</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Depart From<font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrive</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Departure Date</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Departure Time</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrival Date</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Arrival Time</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Adult Fare</font></b></td>\r\n <td width=\"10%\" bgcolor=\"#808080\"><b><font color=\"#FFFFFF\">Child Fare</font></b></td>\r\n </tr>\r\n");
// end
// begin [file="/client/flightsearch.jsp";from=(19,2);to=(66,0)]
//Get the search information
String des = request.getParameter("DFrom");
String arr = request.getParameter("DTo");
String fy = request.getParameter(FYear.value);
String fm = request.getParameter(FMonth.value);
String fd = request.getParameter(FDay.value);
String f1 = fy + "-" + fm;
String FDat = f1 + "-" + fd;
String ty = request.getParameter(TYear.value);
String tm = request.getParameter(TMonth.value);
String td = request.getParameter(TDay.value);
String t1 = ty + "-" + tm;
String TDat = t1 + "-" + td;
String type;
if( request.getParameter(type[0].checked))
type = "Return";
else
{ type = "OneWay";
String clas;
if(request.getParameter(clas[0].checked))
{clas = "ECO";
else
{clas = "BUSS";}
String adult = request.getParameter(Adult.value);
String child = request.getParameter(Child.value);
//Get the server Flight Search Service URL
// ServerFlightSearchBO SFSBO = new ServerFlightSearchBO();
// ServerFlightSearch FlightSearch = SFSBO.getFlightSearchURL();
// FlightSearchServiceClient FSearchServiceClient = new FlightSearchServiceClient
String ServerFlightServiceURL = "http://localhost:7080/AServer/services/FlightService";
//Find available Flight
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(des, arr, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(66,2);to=(68,18)]
out.write("\r\n<tr>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(68,21);to=(68,40)]
out.print(flt.getFlightComp());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(68,42);to=(69,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(69,21);to=(69,39)]
out.print(flt.getFlightNum());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(69,41);to=(70,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(70,21);to=(70,41)]
out.print(flt.getDestination());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(70,43);to=(71,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(71,21);to=(71,36)]
out.print(flt.getArrive());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(71,38);to=(72,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(72,21);to=(72,36)]
out.print(flt.getFrDate());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(72,38);to=(73,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(73,21);to=(73,41)]
out.print(flt.getFlightDptTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(73,43);to=(74,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(74,21);to=(74,36)]
out.print(flt.getToDate());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(74,38);to=(75,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(75,21);to=(75,41)]
out.print(flt.getFlightArrTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(75,43);to=(76,1)]
out.write("</td>\r\n ");
// end
// begin [file="/client/flightsearch.jsp";from=(76,3);to=(87,1)]
int adt, chld;
int far_A, tot_A, far_C, tot_C;
adt = Integer.parseInt(adult);
far_A = flt.getAdultFr();
tot_A = adt * far_A;
chld = Integer.parseInt(child);
far_C = flt.getChildFr();
tot_C = chld * far_C;
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(87,3);to=(88,18)]
out.write("\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(88,21);to=(88,26)]
out.print(tot_A);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(88,28);to=(89,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(89,21);to=(89,26)]
out.print(tot_C);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(89,28);to=(91,0)]
out.write("</td>\r\n</tr>\r\n");
// end
// begin [file="/client/flightsearch.jsp";from=(91,2);to=(100,0)]
if(type = "Return")
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(arr, des, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){
Flight flt = (Flight)it.next();
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(100,2);to=(102,18)]
out.write("\r\n<tr>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(102,21);to=(102,40)]
out.print(flt.getFlightComp());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(102,42);to=(103,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(103,21);to=(103,39)]
out.print(flt.getFlightNum());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(103,41);to=(104,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(104,21);to=(104,39)]
out.print(flt.getFlightDpt());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(104,41);to=(105,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(105,21);to=(105,39)]
out.print(flt.getFlightArr());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(105,41);to=(106,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(106,21);to=(106,41)]
out.print(flt.getFlightDptDt());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(106,43);to=(107,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(107,21);to=(107,41)]
out.print(flt.getFlightDptTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(107,43);to=(108,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(108,21);to=(108,41)]
out.print(flt.getFlightArrDt());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(108,43);to=(109,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(109,21);to=(109,41)]
out.print(flt.getFlightArrTm());
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(109,43);to=(110,1)]
out.write("</td>\r\n ");
// end
// begin [file="/client/flightsearch.jsp";from=(110,3);to=(120,1)]
int adlt, chd;
int fare_A, totA, fare_C, totC;
adlt = Integer.parseInt(adult);
fare_A = flt.getAdultFr();
totA = adlt * fare_A;
chd = Integer.parseInt(child);
fare_C = flt.getChildFr();
totC = chd * fare_C;
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(120,3);to=(121,18)]
out.write("\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(121,21);to=(121,25)]
out.print(totA);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(121,27);to=(122,18)]
out.write("</td>\r\n <td width= \"10%\">");
// end
// begin [file="/client/flightsearch.jsp";from=(122,21);to=(122,25)]
out.print(totC);
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(122,27);to=(124,0)]
out.write("</td>\r\n</tr>\r\n");
// end
// begin [file="/client/flightsearch.jsp";from=(124,2);to=(126,0)]
// end
// HTML // begin [file="/client/flightsearch.jsp";from=(126,2);to=(127,8)]
out.write("\r\n</table>");
// end
} catch (Throwable t) {
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);

You are missing a closing parens. You have :
if(type = "Return")
FlightServiceClient client = new FlightServiceClient(ServerFlightServiceURL);
ArrayList list = client.getFlight(arr, des, FDat, TDat, type, clas, adult, child);
Iterator it = list.iterator();
while (it.hasNext()){Which opens two parens but you only have one closing parens
</tr>
<%
%>
</table>

Similar Messages

  • Scheduling job problem and modification in the bat file

    Dears ALL
    i am using the following script in windows 2003 server for oracle database 10 g i have one problem of scheduling the task i scheduled it successfully on windows scheduled task program but its not running at scheduled time and even when i run this bat file manually this give the security warning The publisher could not be varified,Are u sure u want to run this software? when i click on yes then it runs the bat file may be thats the problem in aslo scheduled how to remove this warning
    2ndly i want to do some changes in my script like this that it removes the same file older than 3 days means it jst have the last three dumps and will remove the olders the script is as
    @echo off
    CLS
    REM ********************************
    SET V_USER=riyadh
    SET V_PASSWORD=riyadh
    SET V_DB=vis
    SET V_DMP_PATH=D:\dump\
    REM ********************************
    ECHO.
    SET EXP_PATH=D:\oracle\visdb\9.2.0\bin\
    SET MONTH=%DATE:~4,2%
    SET YEAR=%DATE:~10,4%
    SET DATED=%DATE:~-7,2%
    ECHO ECHO CONNECT AS : %V_USER%/%V_PASSWORD%@%V_DB%
    ECHO Backup on : %DATED%/%MONTH%/%YEAR% (DD/MM/YYYY)
    ECHO SAVE AS : %V_DMP_PATH%%V_USER%_%DATED%%MONTH%%YEAR%.dmp
    ECHO TITLE BACKUP ...%V_USER%_%DATED%%MONTH%%YEAR%
    echo.
    %EXP_PATH%EXP.exe %V_USER%/%V_PASSWORD%@%V_DB% file=%V_DMP_PATH%%V_USER%_%DATED%%MONTH%%YEAR%.dmp log=%V_DMP_PATH%%V_USER%_%DATED%%MONTH%%YEAR%.log
    THANKS A LOT

    Solution:
    Run gpedit.msc
    Go to User Configuration >> Administrative Templates >> Windows Components >> Attachment Manager
    i have followd all the steps as it is but when i open the Inclusion list for moderate risk file types its not configured and the msg below this is Supported on: At least Microsoft Windows XP Professional with SP2
    and i have windows 2003 server so how to add it or enable it etc
    THANKS a lot for ur reply

  • The file path and directory about the .exe file created in LabView, who knows?

    I have a project, in the project, VIs and documents(.doc,.txt,.tdms,etc.) in different directories, and when the project run in the labView, it can find the directories and files, but when I created .exe file, I found the directories had changed and I didn't know the directory structure in the file, anyone know it?
    Thanks for any reply!
    YangAfreet

    Have a look at the link in my earlier post:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=267439#M267439
    LabVIEW Champion . Do more with less code and in less time .

  • How to access the *.java file corresponding to a TypeElement T?

    Here is a problem:
    How to access the *.java file corresponding to a TypeElement T from a AnnotationProcessor environment?
    Let us say the hook method
    public boolean process(Set<? extends TypeElement> annos, RoundEnvironment roundEnv)
    is invoked with a TypeElement T such that T.getQualifiedname() = "a.b.c.X"
    And the problem is how to locate the file that has the *.java source code for a.b.c.X?
    That is the file that has the source code for a.b.c.X say "some/path/a/b/c/X.java"?
    For simplicity, let us assume that TypeElement T corresponds to a top-level Java class.

    Pinaki wrote:
    That is not something you as the annotation processor author should be asking about. That is something you the person configuring the javac environment should set up via the -d option or its equivalent.
    I strongly recommend using a separate output directory hierarchy.That is the way the current implementation is. The annotation processor takes a -Aout= <some directory path> to write generated output relative to a user-specified location (which defaults to the class output location).That is contrary to the design of the annotation processing facility. The intended use is for that information to be configured via options like "javac -d".
    Additionally, IMO it is a serious configuration error to put generated files and input files, presumably tracked under version control, in the same directory. Interesting you said that. We are just running some "field trial" with these things and some users want them to be in the same directory of the original *.java files (especially when their source files are spread across many roots) .
    Who knows what the user wants?The user does and the user is free to (mis)configure their environment however they like ;-) However, that is the user's option and the user has control of this via the javac command line. The annotation processor is not the proper place to configure this setting; see slide 7 of http://blogs.sun.com/darcy/resource/J1_2006-BOF-0606.pdf for some thoughts on different roles in annotation processing.
    presumably tracked under version control, in the same directory.version control is another 'usability issues' that we are trying to get our heads around with this stuff. "To check-in or not?" - that seems to be the question. When presented these facilities without any cue, "the users" were divided -- some wanted them to be checked-in, some did not. The context where these generated files being used -- there exists some rationale to check them in a version control system.The right answer depends on the circumstances, but IMO generally generated files should not be checked in under version control, especially if they are derived from other source files. Checking in generated files of this nature just creates the opportunity for them to get out of date with the originating files.

  • Since downloading Yosmite on my MAC I have not been able to download photos to LR 5. Error message: "the following files were not imported because they could not be read (335).I have been working with several forums and have dtried going into preference

    LR 5 - using it on a MAC-
    Error message: "the following files were not imported because they could not be read (335).
    I have been working with several forums and have tried all recommendations and none have worked.
    I have tried reloading new LR 5 - and it worked for a short time and then stopped.
    Very frustrated that I cannot talk with someone at Adobe.
    The folks that have made recommendations are great but once their suggestions dont work they drop the link,
    Is there someone or someplace I can take my computer to fix this issue.
    It seems to be a problem between LR and Yosemite.

    The permissions have been changed on the destination folder where the photos are to be copied into.
    You must make sure that the permissions are set to Read and Write.
    Or perhaps the destination folder has been changed accidentally to something else, and you need to change it back to whatever it used to be.

  • HT1848 I cannot authorize my computer, I'm having this error message The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed." please hel

    cannot authorize my computer, I'm having this error message The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed." please help me

    Doublechecking. In the course of your troubleshooting to date, have you worked through the instructions from the following document?
    iTunes: Missing folder or incorrect permissions may prevent authorization

  • Cannot open CS6 Bridge.  Always the same ERROR: Bridge has a problem and cannot read the cache

    Cannot open CS6 Bridge.  Always the same ERROR: Bridge has a problem and cannot read the cache

    Try this.  This is for CS6 but substitue CC and Bridge 6.
    ~library/caches/Adobe/Bridge CS6 and inhere should be 2 files:
    Adobe Bridge Plug-in Cache
    and the folder called Cache. Inhere should be 4 folders called '254', '1024', 'data' and 'full'
    All those folders carry the content of the respective quality of the thumbs and preview as well as 100 % cache and Bridge database.
    Any way, Since you have not used Bridge you have no relevant amount of cache and I would suggest you quit both PS and Bridge and manual delete both the items (plug in and folder called cache at the end of the Bridge CS6 path mentioned above.
    (both files will refresh itself after a restart of Bridge).
    To be on the save side also visit in same user library the folder Preferences and look for the file called "com.adobe.bridge5.plist" (yes it is Bridge 5 that comes with CS6, all Adobe apps have their own version number and they are presented in the same Suite version. CS6 has PS version 13 and Bridge version 5 )
    also drag this file to the trash.
    Then hold down option key (alt) while starting Bridge and this should give you the option to reset the preferences as mentioned earlier in this thread.
    Choose reset prefs and try again.

  • In 2014, Since I upgraded my OS to Win 7, everytime I update Acrobat X Standard I get and error.  The problem seems to be with permissions for folders is there a permanent fix??

    In 2014, Since I upgraded my OS to Win 7, every time I update Acrobat X Standard I get and error.  The problem seems to be with permissions for folders is there a permanent fix??

    Is there any indication of the specific folder you are having problems with. Are you logged in as the administrator (or the same as when you installed) and have anti-virus disabled during the update? You might also try the updates from http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows.

  • TS5376 Downloading the upgrade to 11.1.4 has caused timewasting problems and errors - R6034 - and no solution. What's gone wrong?

    Downloading the upgrade for iTunes to 11.1.4 has caused timewasting problems and error message such as R6034. I have followed Apple's advice to reinstall iTunes, but still have the problem or error messages and no iTunes. What's going on? Upgrades until now have all worked smoothly.

    Doublechecking. Have you also worked through the following user tip?
    Troubleshooting issues with iTunes for Windows updates

  • Error when compiling the Java file

    Hi I have created a jsp program that uses the java files. i have jboss installed. when i compile the java file it gives compilation error saying that javax.servlet.jsp.tagext.TagSupport not found.
    Although when i installed the Tomcat seperately i did not get any compilation error. can anyone tell me how to get out of this problem when Tomcat is not installed seperately.
    Thanks,
    Rakesh

    Hi
    I think these errors are due to incorrect classpath settings.While compiling HelloHome ..Helloremote must be in classpath.Also if u have packaged them u must be in the package root during compilation ie if uor remote & home interface is in a package called "ejbserver"
    then while compiling u must be in the folder above ejbserver & compile command is
    javac .\ejbserver\*.java
    If uor home & remote interface is in different folder check wheather u have imported the remote interface inside home interface file.

  • I get an error message "the following files were not imported because they could not be read (266)..

    I get an error message "the following files were not imprted because they could not be read (266) on Lightroom 4 on my desktop.
    No problems importing the files onto my laptop.  Using a SANDISK card reader and card.  What's going on on the desktop?

    Leanne, check the write pernissions on the folder/drive you are attempting to import into on your desktop. The message usually means "cannot be written" - a not so clear message.

  • Fatal error of the Java complement

    Page that contains an applet written with Java technology --> message: Fatal error of the Java complement: It has not been possible to load the surroundings of execution of Java.
    Test your Installation of Java Software --> message: Several virtual machines Java executing itself in the same process have caused an error.
    As I can solve this problem?

    OS: Windows XP- Service Pack 2
    JRE 1.5.0 and JRE 1.6.0_01
    Where to find in my PC the applet code?
    Page that contains an applet written with Java technology --> message: Fatal error of the Java complement: It has not been possible to load the surroundings of execution of Java.
    Test your Installation of Java Software --> message: Several virtual machines Java executing itself in the same process have caused an error.

  • Problem creating package structure and where is my .class file??????

    Working on Tomcat I have my folder structure like this...
    webapps
    ->app_root
    ->WEB-INF
    ->classes
    ->src
    -> .java files
    ->META_INF
    In the command prompt i compile using this
    c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\*.java
    and in my java files I have the package structure mentioned as
    package com.acme;
    after compiling i expected this to happen for me.
    webapps
    ->app_root
    ->WEB-INF
    ->classes (in WEB-INF)
    ->com (in classes)
    ->acme (in com)
    -> .class files (in acme)
    ->src (in WEB-INF)
    -> .java files(In src)
    ->META_INF
    The funiest part for me started he when i compiled the file
    c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\one.java
    It compiled successfully without giving me any error but no package structure was created and THERE IS NO one.class file anywhere in my system.....Then how did it compile my file and where is the .class file.
    I think am worng somewhere but unable to locate it.
    Can somebody pull me out of thiss stuf??? Need to do it fast.
    Thanx.

    c:\Program Files\Apache Tomcat 4.0\webapps\Murthy\WEB-INF\classes>javac -d src\*.java
    The command you posted does not have a source file specification. You are telling the compiler to put the .class files in src\*.java but you are not specifying any .java files. It looks like your command should be javac -d . src\*.java

  • An mp3 file on my computer will not import to itunes by either the drag-and-drop or the Add File to Library method.  Can't figure out what I'm doing wrong.  My OS is Windows 7.

    I purchased an mp3 from a private website on my laptop.  The itunes library i sync ipod to is on my desktop, so i copied the mp3 onto a flash drive and then into my desktop in the Downloads folder and Desktop folder as well as the itunes music folder, 3 places.  I opened itunes on the desktop and read the instructions for importing music that's already in my computer.  Neither the drag-and-drop or the Add File to Library method works.  I've tried both ways over and over.  Cannot figure out what the problem is.  I do note that the name of the mp3 file doesn't show the .mp3 extension, it appears as simply it's title, Eating Healthy, without any extension at all.  Could the filename be the problem, or do you have any other idea what I'm doing wrong?  My OS is Windows 7, using IE9.  Thanks.
    ADDENDUM AFTER READING ANOTHER DISCUSSION HERE:  I have now tried right clicking the song in Windows Explorer and choosing Open With, clicking itunes.  The mp3 plays in itunes but does not add to the library.

    I don't have a Recently Added playlist.  However, I discovered that the file I had named Eating Healthy was given the name You Can Enjoy Eating Healthy when it copied to iTunes.  I'm guessing iTunes pulled the full name of the piece from the internet.  Upshot--the mp3 did transfer to iTunes on all 3 tries, but I was looking in my alphabetized list under E, not Y, so I didn't see it there.  Thanks for your help. 

  • Can´t access my files on Creative Cloud. "Page temporarily unavailable. We will return soon." "We are working quickly to resolve the problem and apologize for the delay. Check back later or visit our website for status updates. In addition, you can get he

    Hello,
    For a few days I have been trying to access my files on Creative Cloud web without success. I´ve got this message only:
    "Page temporarily unavailable. We will return soon."
    "We are working quickly to resolve the problem and apologize for the delay.
    Check back later or visit our website for status updates.
    In addition, you can get help in the forums of the Creative Cloud.
    Thank you for understanding!"
    (I used Google Translate)
    Somebody help?

    You do not need ?&promoid=KRUVP at the end of the url but it should not matter.
    One thing to check is if your hosts file is modified. Open the Command Prompt and type: notepad %systemroot%\system32\drivers\etc\hosts
    This will open a read-only copy of your host file in Notepad. Are there any entries in this file regarding adobe.com?
    The other thing you can do is open the Developer Tools in the Chrome browser. On Windows press Ctrl + Shift to open them. Switch to the Network tab. Reload the page by pressing Ctrl + r. Check for any 4xx or 5xx errors which should be colored red.
    Post screenshots of your results or send me a private forum message with the information.

Maybe you are looking for

  • How do I add a radio station to a favourites list in iTunes on my macbook?

    I can do it on apple tv but I want to do it in my iTunes on my macbook. Anyone?

  • What is "Other" in the iTunes list of Usage?

    When I connect my 32GB iPhone 4S to iTunes, it shows a list of apps and usage amounts; audio, photos, apps.  It also says Other, and this is by far the largest amount, 11.3GB.  When I check usage on my phone, no single app is that large, nor is the s

  • Use of CATT/ECATT by UK SAP sites

    My organisation National Air Traffic Services are investigating the use of CATT/ECATT for testing during the implementation of ERP, future SAP modules, upgrades and hot packs. This may be with or without SAP Tutor or other software such as Test Direc

  • JSPs reference to JPEGs .. this should be an easy one!

    Hi, We are moving our 6.20 java apps to NW04S J2EE apps. So, we have created EJB, Web and EAR projects for this. In NWDS, we have used Import File to bring in all of our JSPs. NWDS stores them under the webContent folder in the Web project. Each JSP

  • Reader 11.0.3 unusable after APPDATA redirection to server

    Hello everyone, Clients: Windows 7 Enterprise SP1 x64 Server: Windows 2008 Enterprise R2 SP1 x64 Adobe Reader XI (11.0.3) All users are configured to use roaming profiles and folder redirection. Folder redirection, Dfs link to a file server in our da