JSP Can't compile

Using OC4J 9.03
Launching OC4J as standalone server, noone JSP can be compiled because a NoClassDefFoundError for the class
sun/tools/javac/Main.
I copied in the j2ee\home directory the tools.jar file, that include this class, but the problem persists.
All the environmente variables (JAVA_HOME, J2EE_HOME, CLASSPATH and so on) are properly (I hope) setted.
Has someone any suggestion?
Thanks

Is the "JAVA_HOME" variable pointing to a JDK distribution, or a JRE?

Similar Messages

  • Can't compile.

    Hi,
    I was a VB developer and started to develop using java recently.
    I had to do some modification in a existing java project uses tomcat as the web server. I'm using Jbuilder 9 toas my editor. what I'm doing is open files using jbuilder and do the modification. I did couple of changes in my jsp files and those changes are working fine. Recently I had to do a modification in one of .java file. So I opened the file using Jbuilder and did the modification. then when I tried to compile the file It gave a lot of errors. when i run the site without the change i did to .java file it's working perfectly.
    most of the error like.
    <file name>.package <path> doesnot exist at line <line number>, column<column number>
    but those files exist in relavant folders reffered and i think when i'm compiling the .java file it can't refer those files.
    How can I compile my .java file and make the .class file.
    Thanks in advance.

    hi arijit_datta,
    Here I list down couple of errors I got when trying to compile.
    "LeaveApplication.java": package com.HRM.eLeave.dbhandle does not exist at line 3, column 35
    "LeaveApplication.java": package com.HRM.eLeave.util does not exist at line 11, column 1
    "LeaveApplication.java": cannot resolve symbol: class Environment in class com.HRM.eLeave.leaveApplication.LeaveApplication at line 31, column 72
    "LeaveApplication.java": cannot resolve symbol: class Environment in class com.HRM.eLeave.leaveApplication.LeaveApplication at line 397, column 19

  • Some jsps will not compile FC5+Tomcat

    Hello,
    I cannot compile SOME jsp pages for some reason.
    I have something like this:
    http://www.mydomain.net:8080/WEB/index.jsp - this comiles
    http://www.mydomain.net:8080/WEB/BLAH/BLAH/index.jsp - will not compile where BLAH is a bunch of different folders.
    I have it all working on Win XP. Now I am trying to make it work on FC5.
    I took the page that can compile and moved it to BLAH/BLAH folder and it does not compile now!
    OS: Fedora Core 5 (if it matters)
    What is going on? Any ideas?
    Thanks.

    sure, here it is
    Thanks for help.
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:342)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:248)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    Compile failed; see the compiler error output for details.
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:216)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  • Pre-compiled JSPs getting re-compiled by the server

    For our project we are using wlappc to pre-compile JSPs and generate EJB classes. We are using the split directory format, so this is what the task looks like -
    <target name="appCompile" depends="init" >
    <delete dir="${ear.dist}" />
    <mkdir dir="${ear.dist}" />
    <wlpackage srcdir="${ear.src}" destdir="${ear.build}"
    toDir="${ear.dist}" />
         <wlappc source="${ear.dist}" verbose="true" classpath="${classpath}" />
    </target>
    After this, we are using wldeploy to deploy the application to another server.
    This is how the task looks like -
         <target name="beadeploy" depends="init" >
         <wldeploy action="deploy"
              source="${src.dir}/dist/myapp.ear"
              name="myApplication" remote="true"
              user="${deploy.username}" password="${deploy.password}"
              verbose="true" adminurl="t3://${deploy.host}:${deploy.port}"
              upload="true"
              debug="true" targets="${deploy.target}"/>          
         </target>
    The problem that I am facing is that, even after re-compiling the JSPs, they get compiled again by the server when accessed for the first time !
    We using Weblogic 8.1.2.0. Can you please provide a soplution for this ?

    Hi,
    The following steps help you troubleshoot why you may be having problems with JSPs recompiling:
    1. When invoking jspc, your classpath must contain the same release, service-pack, and any temporary patches as the servers you wish to deploy on. Otherwise, the Server will read the JSPs as being compiled on a different version of the WebLogic, and will recompile them all.
    2. You should invoke jspc from the root directory of your open-directory exploded) WebApp or specify -webapp) and use the -d option to deploy the generated classes to the WEB-INF/classes directory. You can then archive these JSP classes into a JAR if you wish from the WEB-INF/classes directory.
    3. The JSPs should then be deployed either individually to the WEB-INF/classes/jsp_servlet directory or in a JAR file under the WEB-INF/lib directory.
    4. One other thing that could cause JSPs to be recompiled is if the timestamp of the class is different from that of the source.
    Also, if your ant classpath is different from whatever WLS-related classpath entries you use to run WLS, this may cause problems, too.
    -- Prasanna
    Prasanna Yalam

  • Simple JSP will not compile

    I created a new project - No template - All Technologies, and can not get a JSP shell to compile. It's generating Error: java.lang.NullPointerException. I then added the JSP Runtime, Servlet Runtime, J2EE and Oracle 9iAS and I'm still getting the message. What is the key to make this work?
    It was working earlier today on another project until I removed the model from the application workspace. I tried a new project, but am getting the same results. I can compile a JSP on an old project, but I don't know what the difference is.

    I added a simple output statement. The error is the same.
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="java.io.*" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <%
    out.println("Test");
    %>
    </body>
    </html>

  • Can't Compile JavaBeans

    hi everyone...can you please help me in comliping my package...there's this error that i don't understand...
    here is my add_user.jsp where it all begins...
    <jsp:useBean id="Users" class="ris.Users"/>
    <%
         name = (request.getParameter("name") == null) ? "" : request.getParameter("name");
         if(request.getParameter("create") != null) {
              if(Users.checkReg(name, workgroup_id)) {
    %>
                   <jsp:setProperty name="Users" property="name"/>
                   <jsp:setProperty name="Users" property="password"/>
                   <jsp:setProperty name="Users" property="workgroup_id"/>
                   <jsp:setProperty name="Users" property="dworklist"/>
                   <jsp:setProperty name="Users" property="dforms"/>
                   <jsp:setProperty name="Users" property="printer"/>
    <%
                   if(Users.createUser()) {
                        Users.getUser(name, workgroup_id);
                        session.setAttribute("user_id", Users.getUserid());
                        session.setAttribute("workgroup_id", Users.getWorkgroupID());               
    %>
              <%           
                   else {
                        request.setAttribute("create", "Error - unsuccessful");
              else {
                   request.setAttribute("create", "Error - created");
         if(request.getAttribute("create") != null) {
              if(request.getAttribute("create").equals("Error - unsuccessful"))
                   message = "Could not add user. Please try again";
              if(request.getAttribute("create").equals("Error - registered"))
                   message = "The name and user type you selected has been already in created.";
              request.removeAttribute("create");
    %>
    <html>
    <body>
    <%= message %>
    <form action ="add_user.jsp" method ="POST">
    Name: <input type = "text" name="name" size=5><br>
    Password: <input type = "password" name="password" size=5><br>
    Confirm Password: <input type = "password" name="cpassword" size=5><br>
    User Type:
    <select name="workgroup_id">
    <option value="x" selected="Selected">Select User Type</option>
    <option value="1">Physician</option>
    <option value="2">Scheduler</option>
    <option value="3">Clerk</option>
    <option value="4">Technologist</option>
    <option value="5">Radiologist</option>
    <option value="6">Transcriptionist</option>
    </select><br>
    Default Worklist: <input type = "text" name="dworklist" size=5><br>
    Default Forms: <input type = "text" name="dforms" size=5><br>
    Printer: <input type = "text" name="printer" size=5><br>
    <br>
    <br>
    <input name="create" type = "submit" value="Submit">
    <input type = "reset" value="Clear">
    </form>
    </body>
    </html>and here is my Users.java which i can't compile..
    package ris;
    import java.sql.*;
    import java.util.*;
    public class Users {
         private int user_id, workgroup_id;
         private String name, password, dworklist, dforms, printer;
         public int getUserid() {
              return user_id;
         public void setUserid(int user_id) {
              this.user_id = user_id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public int getPassword() {
              return user_id;
         public void setPassword(String password) {
              this.password = password;
         public int getWorkgroupID() {
              return workgroup_id;
         public void setWorkgroupID(int workgroup_id) {
              this.workgroup_id = workgroup_id;
         public String getDWorklist() {
              return dworklist;
         public void setDWorklist(String dworklist) {
              this.dworklist = dworklist;
         public String getDForms() {
              return dforms;
         public void setDForms(String dforms) {
              this.dforms = dforms;
         public String getPrinter() {
              return printer;
         public void setPrinter(String printer) {
              this.printer = printer;
         public boolean checkReg(String name, int workgroup_id) {
                   String query = "SELECT User_ID FROM users WHERE [Name]='" + name + "' AND [Workgroup_ID]='" + workgroup_id + "'";
              try {
                   String driver = "org.gjt.mm.mysql.Driver";
                   Class.forName(driver).newInstance();
                   String url="jdbc:mysql://localhost/ris?user=root&password=restricted";
                   Connection con=DriverManager.getConnection(url);
                   Statement stat = con.createStatement();
                   ResultSet rst = stat.executeQuery(query);
                   if(rst.next() == false) {
                        con.close();
                        return true;
                   else {
                        con.close();
                        return false;
              catch(Exception e) {
                   e.printStackTrace();
                   return false;
         public boolean createUser() {
              user_id = (int) (1000 + Math.random()* 1000);
              dworklist = "";
              workgroup_id = (int)
              name = "";
              password = "";
              dforms = "";
              printer = "";
              String query = "INSERT INTO users (User_ID, [Name], [Password], [Workgroup_ID], [Default_Worklist], [Default_Forms], [Printer_Assignment]) " +
                                  "VALUES (" + user_id + ", " +
                                  "'" + name + "', " +
                                  "'" + password + "', " +
                                  "'" + workgroup_id + "', " +
                                  "'" + dworklist + "', " +
                                  "'" + dforms + "', " +
                                  "'" + printer + "')";
              try {
                   String driver = "org.gjt.mm.mysql.Driver";
                   Class.forName(driver).newInstance();
                   String url="jdbc:mysql://localhost/ris?user=root&password=restricted";
                   Connection con=DriverManager.getConnection(url);
                   Statement stat = con.createStatement();
                   stat.execute(query);
                   con.close();
                   return true;
              catch(Exception e) {
                   e.printStackTrace();
                   return false;
         public boolean getUser(String name, int workgroup_id) {
              String query = "SELECT * FROM users WHERE [Name]='" + name + "' AND [Workgroup_ID]='" + workgroup_id + "'";
              try {
                   String driver = "org.gjt.mm.mysql.Driver";
                   Class.forName(driver).newInstance();
                   String url="jdbc:mysql://localhost/ris?user=root&password=restricted";
                   Connection con=DriverManager.getConnection(url);
                   Statement stat = con.createStatement();
                   ResultSet rst = stat.executeQuery(query);
                   while(rst.next()) {
                        user_id = rst.getInt("User_ID");
                        this.name = rst.getString("Name");
                        this.workgroup_id = rst.getInt("Workgroup_ID");
                        dworklist = rst.getString("Default_Worklist");
                        dforms = rst.getString("Default_Forms");
                        printer = rst.getString("Printer_Assignment");     
                   con.close();
                   return true;
              catch(Exception e) {
                   e.printStackTrace();
                   return false;
    }and here is my problem, when i try to compile my Users.java this error shows up...
    Users.java:96: inconvertible types
    found : java.lang.String
    required: int
    name = "";
    ^
    please help me with this...any help would be greatly appreciated...thanks in advance...

    Ok, I reinstalled jboss with the EJB 3.0 option and now it works

  • Jsp:include directives compilation errors

    hi,
    we have lot of <%@ include file="" %> files in out jsp page. when we trying to change this to <jsp:include page="" %>. we r getting lot of comilation errors
    The file size is increasing more than 64mb.
    Can u tell how to contain them within 64mb .
    thank you.

    The stack trace isn't very indicative of whatever problem you may be having.
    However, there is a major difference between <%@ include %> and <jsp:include />. The include directive <%@ include %> slams the content of the included resource into your JSP at compilation time, it is "static". No individual evaluation of the included resource is done, it becomes a part of the JSP that included it.
    <jsp:include /> is a dynamic include--it is evaluated at run-time. The content of the included resource is accessed and written to the output stream with the JSP is accessed. If the included content is a JSP, it is compiled and accessed as a separate servlet.
    So, it looks like your included JSPs do not qualify as valid, standalone JSPs. Typically, this is because of some dependency on variables or beans declared in the including JSP.
    Good luck.
    -brian

  • (I can't compile it .I don't know how to write constructor in Initial Class

    All class and main program is OK except the inital class.
    Author Class
    class Author {
    private String authorName;
    private Initials inits;
    private int numTitles = 0;
    // PRE True POST Prompts user for details
    // and RETURNS new Author constructed from details
    public Author(BufferedReader in) {
    System.out.print("\nSurname ==> ");
    authorName = Text.ReadString(in);
    inits = new Initials(in);
    numTitles = 0;
    // PRE TRUE
    // POST RETURNS String representation of Author
    public String toString() {
    String result;
    result = "NAME : " + authorName + " " + inits.toString() + "\n";
    result = result + "Number of titles is " + numTitles;
    return(result);
    // PRE TRUE
    // POST Increments number of titles
    public void incTitles() {
    numTitles++;
    Book Class
    public class Book {
    private String title;
    private Author author;
    // PRE TRUE // POST Prompts user for details
    // and RETURNS new Author constructed from details
    public Book(Author author, BufferedReader in) {
    System.out.print("\nTitle ==> ");
    title = Text.ReadString(in);
    this.author = author;
    author.incTitles();
    // PRE TRUE
    // POST RETURNS String representation of Book
    public String toString() {
    String result;
    result = "TITLE : " + title + "\n";
    result = result + "AUTHOR\n" + author.toString() + "\n";
    return(result);
    *****Initial Class (I can't compile it . I don't know how to write constructor
    class Initials
    {   private char[] inits;
         public Initials(BufferedReader in)
         System.out.print("\nInitails Testing ==> ");
         inits = Text.ReadString(in);
         public String toString()
              String result;
              result="Testing";
              return(result);
    Main program
    public class BookMain {
    static private BufferedReader in = new BufferedReader(new                                    InputStreamReader(System.in));
    public static void main(String[] args) {
    Author authorRec1, authorRec2;
    Book bookRec1, bookRec2;
    System.out.println("\n\n****** First author input");
    authorRec1 = new Author(in);
    System.out.println("\n\n****** First author output\n" + authorRec1.toString());
    System.out.println("\n\n****** Second author input");
    authorRec2 = new Author(in);
    System.out.println("\n\n****** Second author output\n" + authorRec2.toString());
         System.out.println("\n\n****** First book input");
    bookRec1 = new Book(authorRec2, in);
    System.out.println("\n\n****** First book output\n" + bookRec1.toString());
    System.out.println("\n\n****** Second book input");
    bookRec2 = new Book(authorRec2, in);
    System.out.println("\n\n****** Second book output\n" + bookRec2.toString());
    System.out.println("\n\n****** First book output\n" + bookRec1.toString());

    Change this
    class Initials {
    private char[] inits;
    to this
    class Initials {
    private String inits;
    import java.io.*;
    public class BookTest {
      static private BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      public static void main(String[] args) {
        Author authorRec1, authorRec2;
        Book bookRec1, bookRec2;
        System.out.println("\n\n****** First author input");
        authorRec1 = new Author(in);
        System.out.println("\n\n****** First author output\n" + authorRec1.toString());
        System.out.println("\n\n****** Second author input");
        authorRec2 = new Author(in);
        System.out.println("\n\n****** Second author output\n" + authorRec2.toString());
        System.out.println("\n\n****** First book input");
        bookRec1 = new Book(authorRec2, in);
        System.out.println("\n\n****** First book output\n" + bookRec1.toString());
        System.out.println("\n\n****** Second book input");
        bookRec2 = new Book(authorRec2, in);
        System.out.println("\n\n****** Second book output\n" + bookRec2.toString());
        System.out.println("\n\n****** First book output\n" + bookRec1.toString());
    class Author {
      private String authorName;
      private Initials inits;
      private int numTitles = 0;
      // PRE True POST Prompts user for details
      // and RETURNS new Author constructed from details
      public Author(BufferedReader in) {
        System.out.print("\nSurname ==> ");
        authorName = Text.ReadString(in);
        inits = new Initials(in);
        numTitles = 0;
      // PRE TRUE
      // POST RETURNS String representation of Author
      public String toString() {
        String result;
        result = "NAME : " + authorName + " " + inits.toString() + "\n";
        result = result + "Number of titles is " + numTitles;
        return(result);
      // PRE TRUE
      // POST Increments number of titles
      public void incTitles() {
        numTitles++;
    class Book {
      private String title;
      private Author author;
      // PRE TRUE // POST Prompts user for details
      // and RETURNS new Author constructed from details
      public Book(Author author, BufferedReader in) {
        System.out.print("\nTitle ==> ");
        title = Text.ReadString(in);
        this.author = author;
        author.incTitles();
      // PRE TRUE
      // POST RETURNS String representation of Book
      public String toString() {
        String result;
        result = "TITLE : " + title + "\n";
        result = result + "AUTHOR\n" + author.toString() + "\n";
        return(result);
    class Initials {
      private String inits;
      public Initials(BufferedReader in) {
        System.out.print("\nInitails Testing ==> ");
        inits = Text.ReadString(in);
      public String toString() {
        String result;
        result = inits;
        return(result);
    class Text {
      static String ReadString(BufferedReader in) {
        String text = "";
        try {
          text = in.readLine();
        catch (IOException e) {
          System.out.println(e.getMessage());
          System.exit(0);
        return text;
    }

  • (short)a=1 can't compiled??

    Deal all:
    I am new to java.
    If i type as below:
    short a=1;b=2; ->can compiled
    short a,b; a=1;b=2 -> can't compiled
    short a,b;a=(short)(1);->can't compiled
    can anyboby tell me Why?
    Thanks!!!

    hi,
    i was able to compile the below statements below with jdk 1.3.
    short a=1,b=2; //->can compiled
    short a,b; a=1;b=2;// -> can't compiled
    short a,b;a=(short)(1);//->can't compiled
    if these does not work with ur version, please do send us ur error.
    regards,
    shiva

  • Can i compile new procedures/packages on my snapshot standby?

    Hi
    can i compile new procedures/packages on my snapshot standby?
    I need to test the new release of the application, which include some changes to current packages
    thanks

    yes you can do it, just that it will be flashbed back to the restore point when it was standby first, do anything on it, but be aware that later you convert from snapshot standby to physical standby, more time it would take for redo to be applied and also it is mandatory to open the snapshot at least once in read-write mode before it can be converted into a physical standby database.
    Regards
    Karan

  • I have jsdk2, but I can't compile servlet program

    I have jsdk2 version. which create in my c:\ dirve a folder jdk1.3. I do all the program from that. But I found that some of the class files of Servlet (servletRespose etc ) is missing. What I do to recover that. Even I can't compile any servlet program from that. Pls reply to my problems.
    Regards.
    Ranjan

    The Servlet API is part of J2EE (Java 2 Enterprise Edition). It is not included in the Standard Edition.
    So you need to download and install the J2EE reference implementation or another servlet engine such as Apache Tomcat ( http://jakarta.apache.org/tomcat ). Don't forget to put the Tomcat JAR files in your CLASSPATH when compiling your servlet program.
    Jesper

  • I can't compile this, why?

    I do not possess any means of compiling any .java file that imports javax.* or anything J2SE-related, thus, I have to compile it remotely on a remote host (www.myjavaserver.com), however, for some reason this file will not compile but will not produce any errors, warnings, or any display of any kind - but no .class file is ever found.
    import java.io.*, java.util.*, javax.servlet.*, javax.servlet.http.*;
    * Borrowed from http://forum.java.sun.com/thread.jspa?threadID=703076
    * @access public
    * @author Phil Powell
    public class RequestParameterResetter extends HttpServletRequestWrapper {
        private HttpservletRequest origRequest;
        private Map<String, String> parameterMap;
        public RequestParameterResetter(HttpServletRequest request) {
            super(request);
            origRequest = request;
            parameterMap = new HashMap<String,String>();
        public String setParameter(String key, String value) {
            String oldValue = parameterMap.put(key,value);
            if (oldValue == null) oldValue = origRequest.getParameter(key);
            return oldValue;
        public String getParameter(String key) {
            String value = parameterMap.get(key);
            if (value == null) value = origRequest.getParameter(key);
            return value;
    }Could someone tell me what I'm missing in order for this to properly compile?
    Thanx
    Phil

    Sorry I can't do that, as much as I want to. My
    computer is very ancient and has too little memory to
    run any kind of server program, especially a
    Java-related one. I tried with Eclipse a while back
    (2 years ago and never figured it out, way too hard
    in spite of my PC's inability to interact with it)
    nearly destroyed my machine with it.You actually don't need to run any server. You just need to get the .JAR files (you should try to get the same server and version that you deploy on ... but that may not be possible). Then you put them in your Java Classpath, and you will be able to compile (from command line, or whatever). You could then un-install the server if you wanted to...
    >
    That means I can only compile J2SE formatted classes
    remotelyThat would be J2EE. J2SE is the standard edition, where you get the compiler, java.lang.String, java.util.Date, and all the rest of the core stuff. J2EE is the enterprise edition for getting the javax.servlet packages (among others).
    More comments on how you might change added as comments in the code...
    on www.myjavaserver.com - provided it is
    working.
    I made the changes necessary and still can't compile
    it!
    package ppowell;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * Borrowed from
    m
    http://forum.java.sun.com/thread.jspa?threadID=703076
    * @version JSDK 1.2
    The class is a Java 5.0 class, it won't compile to JSDK 1.2.
    Ask myjavaserver.com to see how you can get ahold of the error logs so you can see what messages are generated.
    * @author Phil Powell
    * @package PPOWELL
    public class RequestParameterResetter extends
    HttpServletRequestWrapper {
    private HttpServletRequest origRequest;
    private Map<String, String> parameterMap;//if you want to use non JSE 5.0, then this line should be:
    //        private Map parameterMap;
    >
    public
    blic RequestParameterResetter(HttpServletRequest
    request) {
    super(request);
    origRequest = request;
    parameterMap = new HashMap<String,String>();//if you want to use non JSE 5.0, then this line should be:
    //            parameterMap = new HashMap();
    public String setParameter(String key, String
    ring value) {
    String oldValue = parameterMap.put(key,value);//if you want to use non JSE 5.0, then this line should be:
    //        String oldValue = (String) parameterMap.put(key,value);
    if (oldValue == null) oldValue = origRequest.getParameter(key);
    return oldValue;
    public String getParameter(String key) {
    String value = parameterMap.get(key);//if you want to use non JSE 5.0, then this line should be:
    //            String value = (String)parameterMap.get(key);
    if (value == null) value =
    value = origRequest.getParameter(key);
    return value;

  • I can' t compile Stratus example from Adobe sample...

    Hey guys !
    First, please sorry for my bad english, I'm french and it's a pain to explain this kind of problem in foreign language...
    I 'm trying to compile the example code found in Stratus sample (the audio/video chat), but I think some package are missed because Flex found a lot of error. Flex tell me that I'm trying to use some class or properties that doesn't exist...
    Here the list of the missing elements :
    - NetStreamInfo
    - Microphone.codec
    - NetStream.DIRECT_CONNECTIONS
    - Microphone.encodeQuality
    - NetStream.farId
    - Microphone.framesPerPacket
    - NetStream.info
    - NetConnection.nearId
    - NetStream.peerStream
    - SoundCodec
    I 'm using Flex Builder 3.02 (downloaded from the link at the bottom of the stratus' presentation page).I have my Stratus Key, but the problem is not here because I'm unable to launch the compilation...
    Where can I find the class / package I need ?
    In other terms, how can I compile the stratus example with no error.
    Thanks a lot !

    you probably forgot to set the minimum Flash Player version to 10.0.0 in the Flex build settings.  open the Properties for your Flex project, go to the "Flex Compiler" property, and in the "HTML wrapper" section's "Require Flash Player version" enter 10.0.0 in the boxes.  that will enable the compiler to recognize Flash Player 10 APIs.
    -mike

  • I can't compile in WindowsXP? =(

    Hello everyone,
    I upgraded my PC to WindowsXP, but when I try to compile my java progs in the command prompt, I get the following error:
    ' javac' is not recognized as an internal or external command, operable program or batch file.
    Can anyone help me with this problem, cause I can't compile java programs anymore =(

    Because I'm new to Java, does anyone happen to know where I can get a bytecode compiler so I can make programs that run with .exe (Like every commercial program out there? Or is there no solution to that?<You got your terminology wrong. "javac" is a bytecode compiler. It converts java source into "bytecodes" that run on a "Virtual Machine". To create an "exe" you must have a "native" compiler. There are a few available, the good ones are commercial and cost a lot of money. It also turns out that Sun's server VM (default in 1.4 now) is faster then some of these pricey native compilers in many situations. This is because modern VM's use JIT's or "Just In Time" compilers to create native code on the fly.
    My advice to you is this. Use one of the many nice deployment methods available for java before you start to worry about native compilation. "executable jars", Java Web Start, bootstrap launching programs... all are good options.

  • I can't compile applets

    Hi. I am very new to JAVA. (I just downloaded the compiler last night.)
    I really need help. It seems anything that is suposed to be an applet, I can't compile. I can't even compile the example applet for the "Hello World!" program in the "First Cup of Java" section!!!
    I've followed the instructions as I'm told, and keep getting this:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    I can however compile applications. WHAT IS GOING ON!
    Please help me.
    ~Bewildered

    Hi - I just learning Java and think I can help (at least i'll try).
    Save all you work on your desktop:
    Start Notepad
    type the following:
    Programmer: Type Your Name
    Date: Type whatever date it is
    Program: Simply Type the item in between brackets, without brackets: (Test1)
    import java.applet.*;
    import java.awt.*;
    public class Test1Applet extends Applet
    public void paint(Graphics g)
    g.drawString("I hope I get an applet on my screen!",15, 30);
    ...And Save As: Test1Applet.java - MAKE SURE YOUR ON YOUR DESKTOP
    Then go to File, New (Still using the Notepad application).
    Type:
    <Applet Code = "Test1Applet.java" Width = 400 Height = 200>
    </Applet>
    Then Save As: Test1Applet.html - MAKE SURE YOUR ON YOUR DESKTOP
    Finally go to the console mode... otherwise known as the Command Prompt. You can go to Start Button on the statusbar click on "Run", type cmd and hit enter.
    Once there you need to type: path = OK...At this time you must locate the complete path/drive where you downloaded the Java packages. Once you locate the entire drive (exam: c:\jbuilder3\java\bin) you must type in: path = drive you put the jbuilder,etc, etc in and hit enter.
    You shouldn't see anything, but just another line waiting for you to enter something. That something you must type is: javac
    Javac tell the os to call on Java language. You know get ready to compile. You'll then see a whole bunch of stuff, don't worry it simply computer veribage.
    If no errors have occurred you then type:cd and drag and drop one of the files you saved to the desktop. Before you hit the enter key make sure to remove the file name and then hit enter.
    Then you must type: javac Test1Applet.java and hit enter
    Finally you must type: appletviewer Test1Applet.html and hit enter.
    You should get an applet on your computer. Let me know how it turns out or whether I confused you even more.

Maybe you are looking for

  • Ipod freezes during sync then error that it cant read file...

    A little pre-info... I have owned a black 30gb 5th gen (video) Ipod for a couple of years now. I plug it in fine, my computer recognizes it fine, Itunes works fine with it... everything works great. I just bought another Ipod off ebay that is exact a

  • Asset PO

    We are trying to post a PO for an asset acquisition.  However, MM consultant says that in addition to the Asset master, a material master is also needed for the asset for posting the PO from MM Side.  Is this correct ?

  • Back button not working also voice control keeps ringing out on its own

    Hi i have had a new back button put in and its still doing the same thing what else could it be

  • Information button not working on podcasts

    Why? iTunes 10.2.2 on OS 10.6.7. Clicking on the little "i" button used to open a window which gave an extended description of the podcast. Now, nothing.

  • Oracle Parameter _FIX_CONTROL: EWA vs SAP Note Recommendation?

    We have Oracle 11.2.0.2 on RedHat Linux cat /$ORACLE_HOME/sapbundle/version.txt SAP Bundle Patch 11.2.0.2.3 - 201108 For FIXCONTROL '6055658:OFF'  what recommendation should I take the SAP Note or EWA? 1) SAP NOTE In the SAP Note 1431798 "Oracle 11_2