Compiling classes with JDK1.5 instead of 1.4

When compiling this perfectly working piece of code under SJSC2EA2:
private double eval(double t, int... p) {
return ( p[0] * Math.pow(1-t, 3) +
3 * p[1] * Math.pow(1-t, 2) * t +
3 * p[2] * (1-t) * Math.pow(t, 2) +
p[3] * Math.pow(t, 3));
I get this error message (between the dashed lines) from the compiler:
init:
deps-jar:
Compiling 2 source files to C:\Documents and Settings\mohsen madi\Desktop\sjstudio8\bezierAndPostscript\build\classes
C:\Documents and Settings\Desktop\sjstudio8\bezierAndPostscript\src\BezPSNoComments.java:227: variable-arity methods are not supported in -source 1.4
(try -source 1.5 to enable variable-arity methods)
private double eval(double t, int... p) {
C:\Documents and Settings\Desktop\sjstudio8\bezierAndPostscript\src\BezierPostScript.java:316: variable-arity methods are not supported in -source 1.4
(try -source 1.5 to enable variable-arity methods)
private double eval(double t, int... p) {
2 errors
BUILD FAILED (total time: 0 seconds)
Of course, I right-clicked my project, selected proprties, and saw that:
- in "Libraries", the Java Platform field is set to JDK1.5 (Default)
- in "Build->Compiling", I added the "-source 1.5" in Additional Compiler Options, and
- in "Run", I added "-source 1.5" at the VM Options field
But non of that worked for me!
Apparently, one would get the same message any time one uses a Java 5 feature like the "variable-length argument list" above or the "enhanced for loop".
How can I make my project be compiled by JDK 1.5 to make benefit of the Java 5.0 features and not have it go to J2EE 1.4 apparently or wherever it goes?
Thanks,
Mohsen Madi

YOu might want to post this on the Creator 2 EA 2 forum instead.
Just sign on here like you did to download it and post it in the fourm: https://feedbackprograms.sun.com/login.html?ref=%2Fhome%2Ehtml%3F

Similar Messages

  • [svn] 3050: Removed compile warning with JDK1.5

    Revision: 3050
    Author: [email protected]
    Date: 2008-08-29 16:48:58 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Removed compile warning with JDK1.5
    Modified Paths:
    blazeds/trunk/modules/core/src/java/flex/messaging/io/BeanProxy.java

    Did you try this:
    http://forum.java.sun.com/thread.jsp?thread=434718&forum=60&message=1964421

  • Ridiculous bug in oracle jdeveloper compiler ojc with jdk1.4

    With simple class:
    public class Test
    public Test()
    public String toString()
    return null;
    public static void main(String[] args) throws Exception
    Test test = new Test();
    System.out.println("ooo" + test);
    After compile it with ojc (ojc Test.java) and run it with jdk 1.4.1_01 (java Test), it throws
    java.lang.NullPointerException
    at java.lang.String.concat(String.java:1541)
    But it works ok if compile it with standard java compiler(javac).

    Hi,
    Thanks for reporting this. It's a bug. I've logged it as 2809860, and you can track this on metalink.oracle.com.
    Brian
    JDev Team

  • Cannot compile class with a package

    Hello,
    I am trying to implement the package example from the SUN Tutorial. It can be found on the page: http://java.sun.com/docs/books/tutorial/java/interpack/QandE/packages-questions.html
    I think I am doing like described but it doesn�t work. The files are stored like following on my machine:
    D:\Test\Java\mygame\Shared\Utilities.java               (this file can be compiled)
    D:\Test\Java\mygame\Server\Server.java                    (can�t be compiled)
    D:\Test\Java\mygame\Client\Client.java                    (can�t be compiled)
    I have no CLASSPATH set (but I tried), Java is installed in C:\Java\j2sdk, I also tried D:\mygame\Shared\Utilities|Server|Client.java
    The error message is:
    cannot resolve symbol
    Are there any further prerequisites?
    Thank you

    This is a minimal explanation of packages.
    Assume that your programs are part of a package named myapp, which is specified by this first line in each source file: package myapp;
    Also assume that directory (C:\java\work\) is listed in the CLASSPATH list of directories.
    Also assume that all your source files reside in this directory structure: C:\java\work\myapp\
    Then a statement to compile your source file named aProgram.java is:
    C:\java\work\>javac myapp\aProgram.java
    And a statement to run the program is:
    java myapp.aProgram
    (This can be issued from any directory, as Java will search for the program, starting the search from the classpath directories.)
    Explanation:
    Compiling
    A class is in a package if there is a package statement at the top of the class.
    The source file needs to be in a subdirectory structure. The subdirectory structure must match the package statement. The top subdirectory must be in the classpath directory.
    So, you generate a directory structure C:\java\work\myapp\ which is the [classpath directory + the package subdirectory structure], and place aProgram.java in it.
    Then from the classpath directory (C:\java\work\) use the command: javac myapp\aProgram.java
    Running
    Compiling creates a file, aProgram.class in the myapp directory.
    (The following is where people tend to get lost.)
    The correct name now, as far as java is concerned, is the combination of package name and class name: myapp.aProgram (note I omit the .class) If you don't use this name, java will complain that it can't find the class.
    To run a class that's NOT part of a package, you use the command: java SomeFile (assuming that SomeFile.class is in a directory that's listed in the classpath)
    To run a class that IS part of a package, you use the command java myapp.aProgram (Note that this is analogous to the command for a class not in a package, you just use the fully qualified name)
    Here is a reference: http://java.sun.com/j2se/1.4.1/docs/tooldocs/findingclasses.html

  • Compiler class

    Is there a way to use compiler class with 5.1 (like it is
              possible with 6.1) ?
              Dimitri
              

    Do you have Java Development Kit or Java 2 Standard Development Kit in your compute?
    Regards,
    Jas

  • Adapter Class not formed error in bdk 1.1. with jdk1.4.2

    Hi,
    i have installed j2sdk 1.4.2 on my machine n bdk 1.1 now
    I have set classpath apropriatly.now when i m going to
    hook up two beans there appear this error
    WARNING: Could not Runtime.exec(String) "javac" in the standard way: java.io.IOException: CreateProcess: javac -classpath classes;..\lib\methodtracer.jar;..\inf
    obus.jar;C:\Downloads\bdk1_1\beans\jars\buttons.jar;C:\Downloads\bdk1_1\beans\jars\eventmonitor.jar;C:\Downloads\bdk1_1\beans\jars\jelly.jar;C:\Downloads\bdk1_1
    \beans\jars\juggler.jar;C:\Downloads\bdk1_1\beans\jars\misc.jar;C:\Downloads\bdk
    1_1\beans\jars\molecule.jar;C:\Downloads\bdk1_1\beans\jars\quote.jar;C:\Download
    s\bdk1_1\beans\jars\select.jar;C:\Downloads\bdk1_1\beans\jars\sort.jar;C:\Downlo
    ads\bdk1_1\beans\jars\test.jar;C:\Downloads\bdk1_1\beans\jars\transitional.jar -
    nowarn tmp\sunw\beanbox\___Hookup_18b651ebd6.java error=2
    Check that the version of "javac" that you are running
    is the one supplied with Sun's JDK1.x (which includes the
    compiler classes) and not some other version of "java"
    or JRE shipped with some other product.
    Could not create event adaptor.
    I don't know what to do.so please anyone have idea then please suggest me.
    jogi
    [email protected]

    Hey jogi
    I had a problem with bean box when hooking two beans together - it just hung, turned out that not only the bdk needed to be installed in a directory with no spaces in it (it didnt like spaces like "c:\Program Files\bdk1.1" for example ) but i also had to move my jars into a non- space file path.....hhhmmm not sure if this will fix your problem but if your stuck give it a go or have a read through the bug report http://developer.java.sun.com/developer/bugParade/bugs/4257660.html
    walt.

  • Compiling with jdk1.3

    I have not been able to compile test programs with jdk1.3. Mostly I get "Bad Command or File name".
    E.G., "C:\J21work>javac Ellsworth.java
    Bad command or file name "
    among quite a number of attempts to set AUTOEXEC.BAT right
    are
    "PATH C:\jdk1.3\bin; %PATH%
    @SET CLASSPATH=;C:\jdk1.3\lib\tools.jar; %CLASSPATH%"
    and
    SET PATH=%PATH%;%JAVAHOME%\BIN
    PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK\BIN;
    any advice?
    Gordon GOdbersen
    [email protected]

    Forget about autoexec.bat for a while..
    it is one way to do it..
    other way is:
    on DOS prompt type:
    1. edit abc.bat (abc is just a name, it can be anything except a DOS command)
    2.in this file - abc.bat write:
    set path=c:\jdk1.3\bin
    set classpath=c:\Name of the directory where your class files reside, if yourfile.class is in c:\temp, write c:\temp here...
    3. save this file
    4. type abc, don't type abc.bat on DOS prompt
    5. u will see the path & classpath set as per your abc file..
    you can edit this abc.bat anytime u want..
    One more thing, when u exit DOS prompt and again
    open it, u need to run ie type abc on DOS prompt again..
    Hope this hepls !!
    Mayur
    I have not been able to compile test programs with
    jdk1.3. Mostly I get "Bad Command or File name".
    E.G., "C:\J21work>javac Ellsworth.java
    Bad command or file name "
    among quite a number of attempts to set AUTOEXEC.BAT
    right
    are
    "PATH C:\jdk1.3\bin; %PATH%
    @SET CLASSPATH=;C:\jdk1.3\lib\tools.jar; %CLASSPATH%"
    and
    SET PATH=%PATH%;%JAVAHOME%\BIN
    PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK\BIN;
    any advice?
    Gordon GOdbersen
    [email protected]

  • Problems with java.lang.Class in JDK1.3

    Hi,
    I have 3 problems with the reflection in java.lang.Class:
    1) In the specification of method java.lang.Class.getDeclaredFields() is wrote:
    "Returns .... This includes public, protected, default (package) access, and private fields ..."
    This means, that all private fields should be return too. But some private methods are not given back. ????
    2) In java.lang.Class.getDeclaredMethods()
    some public methods are not return. ????
    3) In java.lang.Class.getDeclaredMethods()
    If Class is an interface. The same problem like 2) ????
    Are they errors of java.lang.Class in JDK1.3 ????
    Thanks & sincerely.

    Not sure it makes a difference, but you left off the last part of the quote:
    This includes public, protected, default (package) access, and private classes and interfaces declared by the class, but excludes inherited classes and interfaces.
    Are these missing methods from inherited classes, or are they declared in the class itself?

  • How to compile a java file to class with class

    There is a java file.
    And i want to compile it with class, not javac command.
    so i can catch the compile errors.
    how to do it?
    special thanks.

    http://java.sun.com/developer/JDCTechTips/2003/tt0722.html#2

  • How do you compile Flex-dependent classes with ASC?

    Hi,
    I've been trying unsuccessfully for most of the evening to compile a .as file that relies on mx.collections.ListCollectionView using asc. I figured I could just import the Flex framework SWCs from the command line with asc, but asc doesn't seem to respect SWCs - it only seems to respect .abc files.
    So, I've spent most of my time trying to compile the Flex framework into a single .abc file that I can import whenever I want to compile a class that relies on Flex. I figured I could make a base .as file with include statements for all of the Flex .as files (copying the approach I saw for files like builtin.as) and compile that, but all I seem to get are compiler errors - mostly "[Compiler] Error #1181: Forward reference to base class (base class name)."
    I have a feeling I'm doing this completely the wrong way. I'd very much appreciate any assistance that anybody can offer me.
    Thanks,
    - max

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>I use MXMLC to compile my .as file projects.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Alex Harui<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Flex SDK Developer<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><a href="http://www.adobe.com/"><span style='color:blue'>Adobe<br />Systems Inc.</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Blog: <a href="http://blogs.adobe.com/aharui"><span<br />style='color:blue'>http://blogs.adobe.com/aharui</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Maxim Porges<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Monday, February 09, 2009 9:22 PM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> How do you compile Flex-dependent classes with ASC?<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new discussion was started by<br />Maxim Porges in <br><br /><br><br /><b>Developers</b> --<br><br />  How do you compile Flex-dependent classes with ASC?<br><br /><br><br />Hi, <br><br /><br><br />I've been trying unsuccessfully for most of the evening to compile a .as file<br />that relies on mx.collections.ListCollectionView using asc. I figured I could<br />just import the Flex framework SWCs from the command line with asc, but asc<br />doesn't seem to respect SWCs - it only seems to respect .abc files. <br><br /><br><br />So, I've spent most of my time trying to compile the Flex framework into a<br />single .abc file that I can import whenever I want to compile a class that<br />relies on Flex. I figured I could make a base .as file with include statements<br />for all of the Flex .as files (copying the approach I saw for files like<br />builtin.as) and compile that, but all I seem to get are compiler errors -<br />mostly &quot;[Compiler] Error #1181: Forward reference to base class (base<br />class name).&quot; <br><br /><br><br />I have a feeling I'm doing this completely the wrong way. I'd very much<br />appreciate any assistance that anybody can offer me. <br><br /><br><br />Thanks, <br><br /><br><br />- max <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b7d5d2">How do you compile<br />Flex-dependent classes with ASC?</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b7d5d2!folder=.3c060fa3">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>

  • Compiler issue with programmer defined class

    I'm trying an example out of a Java book. I'm using jdk vs 5 to compile. In the example there are 2 classes Coin and CountFlips. CountFlips imports a class called Coin. I can use the -classpath statement and compile Coin ok, but when I compile CountFlips, it doesn't like the import statement ie import Coin; it gives me an error saying '.' expected. Since Coin.class is just in that directory and not part of a package, how should I get this to work ? I really would like to understand this.
    Thank you in advance.

    Hi,
    do you deploy the Spring classes with the application ? I suggest to try the OracleAs forum as well to ensure this has to be in a specific path to be loaded. A list of forums is available from here
    http://forums.oracle.com/forums/index.jspa?categoryID=84
    Frank

  • Performance issue with Preferences class in JDK1.4

    I am very excited about the new Preferences class in JDK1.4, however, my co-workers are not too thrilled about it, as the Windows implementation of it writes everything into Registry, and it is slow when we are talking about hundreds or thousands of users, and storing each user's preferences in the Windows registry is a slow and dangerous thing.
    Is the argument valid? If it does, any solution to that, except not using Windows platform?
    Thanks,

    Well I just got to say I uninstall 1.4 and and got1.3.1_02.I had 1.3.1_01 witch worked for me pertty good but i am trying 1.3.1_02 now.I did not care for 1.4

  • Compiled with jdk1.3.1_01 and run under VM 2.0

    I have compilied all my source code with jdk1.3.1_01 and ias6.0 sp3 uses jdk1.2.2 or 2.0VM....is this difference going to affect my application?

    Hi,
    It depends upon how your application is coded. If you use some of
    the functionalities which JDK 1.2 uses and incase JDK 1.3 doesn't likes
    that, you are likely to get errors. Infact, iAS encourages you to use
    the JVM which is bundled along with iAS SP3 and using JDK apart from
    that troubles. Please refer to my previous posting on iAS SP3 & JDK 1.3,
    I've tested them, which threw lots of errors. Hope this helps.
    Regards
    Raj
    Mansoor Quraishi wrote:
    I have compilied all my source code with jdk1.3.1_01 and ias6.0 sp3
    uses jdk1.2.2 or 2.0VM....is this difference going to affect my
    application?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • OFFTOPIC: compile only changed classes with ant

    how does one set up ant to only compile classes which have changed since last build?

    Also look at jdepend. Ant has a task that utilizes it.

  • Tomcat 4.1 Bean error (Unable to compile class for JSP)

    Help,
    I am using Tomcat 4.1 with with JDK1.3.1_01. I have a JSP page in which I try to use a Bean, but I get the following error from Tomcat.
    The JSP page is very simple. I am using package names in the import statement. Code below.
    I've put the class files under
    <TOMCAT>\webapps\projectname\WEB-INF\classes under the appropriate packages. What else is missing? I can not figure out what I am doing wrong.
    ***************** START JSP CODE *********************
    <html>
    <head>
    <title>User Information</title>
    </head>
    <%@ page session="true" %>
    <%@ page import="com.xxx.yyy.data.*" %>
    <body>
    <P> </P>
    <P> </P>
    <P> </P>
    <!--
    <jsp:useBean id="user" class="com.xxx.yyy.data.User" scope="session"/>
    -->
    <%
         User user = (User) session.getAttribute("user");
    %>
    UserID = <%= user.getUserID() %><BR>
    User Name = <%= user.getUserName() %><BR>
    Password = <%= user.getPassword() %><BR>
    Password Hint = <%= user.getPasswordHint() %><BR>
    </body>
    </html>
    ***************** END JSP CODE *********************
    ***************** START TOMCAT ERROR MESSAGE *********************
    org.apache.jasper.JasperException: Unable to compile class for JSP
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:477)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:182)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         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:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2397)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 20 in the jsp file: /userInfo.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    D:\Apache_Group\Tomcat_4.1\work\Standalone\localhost\PALBO\userInfo_jsp.java:7: package com.xxx.yyy.data does not exist
    import com.xxx.yyy.data.*;
    ^
    D:\Apache_Group\Tomcat_4.1\work\Standalone\localhost\PALBO\userInfo_jsp.java:61: package com.xxx.yyy.data does not exist
    com.xxx.yyy.data.User user = null;
    ^
    An error occurred at line: 20 in the jsp file: /userInfo.jsp
    Generated servlet error:
    D:\Apache_Group\Tomcat_4.1\work\Standalone\localhost\PALBO\userInfo_jsp.java:63: package com.xxx.yyy.data does not exist
    user = (com.xxx.yyy.data.User) pageContext.getAttribute("user", PageContext.SESSION_SCOPE);
    ^
    An error occurred at line: 20 in the jsp file: /userInfo.jsp
    Generated servlet error:
    D:\Apache_Group\Tomcat_4.1\work\Standalone\localhost\PALBO\userInfo_jsp.java:66: package com.xxx.yyy.data does not exist
    user = (com.xxx.yyy.data.User) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.xxx.yyy.data.User");
    ^
    An error occurred at line: 25 in the jsp file: /userInfo.jsp
    Generated servlet error:
    D:\Apache_Group\Tomcat_4.1\work\Standalone\localhost\PALBO\userInfo_jsp.java:77: cannot resolve symbol
    symbol : class User
    location: class org.apache.jsp.userInfo_jsp
         User user = (User) session.getAttribute("user");
    ^
    An error occurred at line: 25 in the jsp file: /userInfo.jsp
    Generated servlet error:
    D:\Apache_Group\Tomcat_4.1\work\Standalone\localhost\PALBO\userInfo_jsp.java:77: cannot resolve symbol
    symbol : class User
    location: class org.apache.jsp.userInfo_jsp
         User user = (User) session.getAttribute("user");
    ^
    6 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:326)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:182)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         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:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2397)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    ***************** END TOMCAT ERROR MESSAGE *********************

    Hi
    I am running my Tomcat apps (on a Windows dev machine) in an alternate location (ie. not default webapps). The same crap comes to me every time. Unable to install etc. I have tried every trick in the book regarding classpath settings etc.
    When I use 'javap' to check the classpath from any location on my machine, its works and javap returns the signature of my class.
    When I use it though Tomcat (with the import set to include the filename), it get the error. I have heard rumors that using JDK 1.3 in stead of 1.4 helps, but I just want it to work with 1.4 :)
    So if any of you can help me on this, please.
    PS. On my linux server it works just fine, as does every other thing on that machine ;)
    Chris (chris.schuit <at> euronet.nl)

Maybe you are looking for

  • Asa 5505 to pix

    I've been pulling my hair out on this one.  I had 3 tunnels using a pix firewall at each location going to the main office (I didn't set it up).  One of the pix toasted, so I'm trying to replace it with a cisco asa 5505.  I created the tunnel, it see

  • Is it possible to replace an existing published folio with a new one?

    Hello everyone, We created a folio with the wrong intention (landscape and portrait). I have now recreated the folio with the proper intention (landscape only) and have give the folio the same: name, dimensions, publication date and product id as the

  • How to saves electricity on the computer using Windows 8.1

    Hello guys! I have a problem with save on electricity. The advance in the cost of living was not followed by higher wages, included electric. I never have enough money to pay my bills every month. I'm always in the red. I'm using Windows 8.1. I use i

  • 2504 Wireless Controller with multiple IP Networks

    I am wanting to deploy a 2504 with 8 AP's that can support three IP networks simultaneously, 10.130.0.0, 192.168.0.0 and 192.168.1.10 (Guest Network).  I understand this is supported, but haven't really seen any examples of how to accomplish this.  A

  • How do I permanently delete photos on my macbook 2009?

    I moved then  to trash and then used "control, option, delete" but no matter how many times I do that they keep showing up again