Compiling Java Class in Workshop

May I ask a dumm question: how to compile a java class in Workshop? Application
Build or Project Build does not seem to do the work.
Thanks.

"Gerald Nunn" <[email protected]> wrote:
"Jeff" <[email protected]> wrote in message
news:406455b2$[email protected]..
May I ask a dumm question: how to compile a java class in Workshop?Application
Build or Project Build does not seem to do the work.Works fine for me, what type of project is the java file in?
Gerald
Thanks for the reply.
It is a web project. My Java files are under the following folder tree:
eSheetWeb\WEB-INF\classes
I have run Build Project against eSheetWeb few times. No errors but java files
just not getting compiled to class. Also is there a way to just compile without
run the entire Build?

Similar Messages

  • Suffering an complie error when trying to compile java class in EBS11i

    Hi,
    When I trying to compile java classes with which imported the HttpServletResponse class, will get the follow error message:
    package javax.servlet does not exist
    cannot resolve symbol
    symbol : class HttpServletResponse
    It seems the javax.servlet package is not included in the classpath. But I checked the $CLASSPATH, it seems no problem.
    echo $CLASSPATH
    /u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/lib/tools.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/lib/dt.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/jre/lib/charsets.jar:/u02/applvis/viscomn/util/java/1.4/j2sdk1.4.2_04/jre/lib/rt.jar:/u02/applvis/viscomn/java/appsborg2.zip:/u02/applvis/visora/8.0.6/forms60/java:/u02/applvis/viscomn/java
    Does anyone know the reason?
    environment: ebs 11i
    Thanks&Regards,
    Xiaofeng

    resolved this issue.
    1. Edit $APPL_TOP/admin/adovars.env file -
    Add the following jar files to the AF_CLASSPATH line -
    Full path of /...../iAS/Apache/Jsdk/lib/jsdk.jar
    Full path of /...../iAS/Apache/Jserv/libexec/ApacheJServ.jar
    2. Bounce the concurrent manager in order to have the changes take effect.

  • Ant or what tool to compile Java Classes

    For the past year I have been using Windows command window to compile Java Classes for my Servlets, Java Beans and Helper classes. I use Cold Fusion studio as my IDE for creating the Java classes. All of my Web Applications use MVC for Forms feeding small databases and I only have around 7 to 10 class files per Web application.
    Should I start to use Ant and/or what is recommended so I can keep up with current technology instead of using Windows Command Window to compile my Java classes?

    Try the following link.
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
    The download in the above link has NWDS and portal as well. Unzip the file and install NWDS studio.

  • Dynamically Create and Compile Java Classes

    Hi,
    I have a requirement to dynamically create and compile Java classes and would like some advice on the best method to do so.
    Basically the project I am working on involves creating "Factors". Factors are items that have both attributes and weights so for example Factor A could have attribute B with weight 0.76, and attribute C with weight 1.33. There are a number of methods common to all factors such as calculateTotal, identify etc etc.
    At the moment the application has 5 factors, but there is a requirement to dynamically add and remove factors on the fly.
    I current solution I have been considering is using XML to describe the new class, build up the class and compile it; something along the lines of what is descibed at
    http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-xslt_p.html
    however i would like to consider all options.
    Any help with this is greatly appreciated.

    You want to dynamically create and compile Java classes.
    I would try the following:
    (1) Write the Source code of the new class into a text file with the name MyNewClass.java
    (2) compile this new .java-file with Runtime r = getRuntime();
    try {
        r.exec ("javac MyNewClass.java");
    } catch (IOException e) {
        System.out.println("ooops " + e.getMessage());
    } (3) somehow try to load that new class, maybe using ClassLoader cl = ClassLoader.getSystemClassLoader();
    cl.loadClass("MyNewClass");

  • Running a Java Class in Workshop

    I'm trying to run a Java class with a public static void main method in Workshop. As instructed I opened the properties for the Java project, under the debbuger tab, checked Build before debugging. Then under "Create new process settings", in the Main Class box put the class with the main method with proper package structure. Clicked Ok. When I click the start button, the project builds, the process starts, the last message in the Output box is "Process Started" but then nothing happens. No System.out.println statements show. If I set breakpoints it never gets there. No values ever get set or changed in the Locals box. What am I missing?

    Thanks your response. I'm on sp3.
    The application is "Factory".
    The Java Project in "Factory".
    In the Java project there is a folder "pac", in that folder there is a class with a main method called "ProviderClient"
    In the "Factory" Java project properties/debugger window, Build before debugging is checked, also Create new process. Main class: pac.ProviderClient
    Home directory: C:/bea/user_projects/MyApps/Factory/Factory/
    (It was put there autopmatically when I clicked Browse as you said).
    When I run I get:
    Trying to create process and attach to 3640...
    Starting process in C:\bea\user_projects\MyApps\Factory\Factory
    C:\bea\jdk142_04\bin\javaw.exe -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=3640,suspend=y,server=y -classpath "C:\bea\user_projects\MyApps\Factory\APP-INF\lib\Factory.jar;C:\bea\user_projects\MyApps\Factory\EJBs.jar;C:\bea\jdk142_04\jre\lib\rt.jar;C:\bea\jdk142_04\jre\lib\jsse.jar;C:\bea\jdk142_04\jre\lib\jce.jar;C:\bea\jdk142_04\lib\tools.jar;C:\bea\weblogic81\server\lib\knex.jar;C:\bea\weblogic81\common\lib\log4j.jar;C:\bea\weblogic81\server\lib\debugging.jar;C:\bea\weblogic81\javelin\lib\javelin.jar;C:\bea\weblogic81\server\lib\wlw-lang.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\common\eval\pointbase\lib\pbserver44.jar;C:\bea\weblogic81\common\eval\pointbase\lib\pbclient44.jar;C:\bea\weblogic81\server\lib\webservices.jar;C:\bea\weblogic81\server\lib\webserviceclient.jar;C:\bea\weblogic81\server\lib\webserviceclient+ssl.jar;C:\bea\weblogic81\server\lib\wli.jar;C:\bea\weblogic81\server\lib\xbean.jar;C:\bea\weblogic81\server\lib\wlxbean.jar;C:\bea\weblogic81\server\lib\xqrl.jar;C:\bea\weblogic81\server\lib\netui\netui-compiler.jar" pac.ProviderClient
    Process started
    After a long time I get "Could not attach to debuggee process.
    Debugging Finished"
    What am I doing wrong?

  • Error while compiling java class (ora-29535 source requires recompilation)

    Hello. I`m new with oracle and i`m having a problem with java classes. Few days ago i loaded java classes (loadjava) from jar file(biojava3-structure-3.0.2.jar) and compiled ( everything compiled with status valid). Now i`m writing my own class and i can`t import classes from biojava3. I`m getting error:
    Projekt:7: cannot access org.biojava.bio.structure.Atom
    bad class file: null
    class file has wrong version 50.0, should be 49.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import org.biojava.bio.structure.Atom;
    I have tryed to change jdk version in netbeans from 1.7 to 1.6. I created java class in sql plus That still not resolved my problem.
    Please help me.

    consider posting in Java forum instead of Database forum
    https://forums.oracle.com/forums/category.jspa?categoryID=285

  • Compiling java classes from JDeveloper

    Hi guys... perhaps this thred need to be created in JDeveloper fourm, it so please let me know.
    I generated the classes from a web service which complie without errors and exedcute correctly. When trying to compile the main stub in Oracle database, I get an error "CONNOT RESOLVE SYMBOL" reviewing the java class, I see that extends the wrapper generated by Jdev. So I try to complie the extendable class, after trying to generate and compile it in the database, I get the error: "class$ is reserved for internal use" The code has the next line:
    static java.lang.Class class$(java.lang.String param1)
    Is this error launched from the oracle database? My guess is that maybe Im missing some library or something and thats why I can create the such Java Name procedures. But I will like if anyone could guide me through this exception.
    Thanks
    JP

    Do you have .jar (or the .class) files created after the compile from JDeveloper?
    If you do, you can load all of them using the command line utility loadjava:
    $ loadjava
    loadjava: Usage: loadjava [-definer] [-encoding encoding] [-force] [-genmissing] [-genmissingjar jar] [-grant grants] [-help] [-nousage] [-noverify] [-oci8] [-order] [-resolve] [-resolver resolver] [-schema schema] [-synonym] [-thin] [-tableschema schema] [-user user/password@database] [-verbose] classes..jars..resources..properties...
    $

  • Using a Compiled Java Class --- Error

    Hi All,
    I am new to jsp tech. I am using 'Sun Java system application web server'.
    I am getting following error when running ch06_02.jsp :
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] /nfs/bxslnx/home/bxs/install/SUNWappserver/domains/domain1/generated/jsp/j2ee-modules/__default-web-module-server/org/apache/jsp/jsp/Examples/ch06/ch06_005f02_jsp.java:6: '.' expected
    [javac] import ch06_01;
    [javac] ^
    [javac] 1 error
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:88)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:337)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:429)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:489)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:468)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:516)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
    My two files are :
    ch06_01.java
    public class ch06_01
    public ch06_01()
    public String msg()
    return "Hello from JSP!";
    ch06_02.jsp
    <%@page import="ch06_01" %>
    <HTML>
    <HEAD>
    <TITLE>Using a JavaBean</TITLE>
    </HEAD>
    <BODY>
    <H1>Using a JavaBean</H1>
    <% ch06_01 messager = new ch06_01(); %>
    The message is: <%= messager.msg() %>
    </BODY>
    </HTML>
    Please help me ....... I don't know whats going wrong . I m using Suse OS.
    Thanks
    Basant

    Hi
    You have to place the xml parsing library inside the lib directory under the WTK.
    Mihai

  • Compiling java classes into dll

    Hi,
    Just trying to find out is there anyway I can compile the java classes into dll?
    If I am to use JNI and C++, will the dll compiled be able to work well in a platform that does not have JVM?
    Thank you.

    Hi,
    Just trying to find out is there anyway I can
    an compile the java classes into dll?
    No, but you can start the jvm and run your main class from a dll using jni. And, if you do that, you'll of course need a JVM on the client that'll be running your code.

  • Compile Java class

    Hi everyone,
    I am new to WSAD env. Can anybody tell me "How I can compile a Java class using WSAD?".After compilation, where does it(the dir structure and location) keep the .class file?
    Thanks in advance

    In a project I have in WSAD Integration Edition 5.1, a .java file is compiled to a .class file in
    /WebContent/WEB-INF/classes/
    I'm not sure if that was your question if it relates to JavaServer Pages

  • Unable to compile java classes in NWDS- "JSPDynPage cannot be resolved "

    Hi All,
    I am trying to write small JSPDynaPage when i am getting following complilation error in my Java classess.
    1) "PageProcessorComponent cannot be resolved or is not a valid superclass"
    2) "JSPDynPage cannot be resolved or is not a valid superclass"
    I did check for the existance of
    com.sap.portal.htmlbbridge.jar & prtapi.jar which is present in my C:\NetWeaverDevStudio\eclipse\plugins\com.sap.ep.applicationDevelopment and
    ECLIPSE_HOME=C:/NetWeaverDevStudio/eclipse but for some reason i am unable to compile my classes. Please help me to resolve this issue.
    Thanks,
    Manju

    Try the following link.
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
    The download in the above link has NWDS and portal as well. Unzip the file and install NWDS studio.

  • Compiling java files in workshop

    Hello,
    I have imported (actually copied) a java file into WEB-INF\src ....\login\LoginBacking.java
    Next, I want to compile it in order to create the class. How do I do this in Workshop
    Reminder: I am a newbie in this ...
    Thanks,
    Marcel

    Hello Marcel,
    Within your application, choose File -> new -> Project -> Java project and
    create a new java project.
    Copy your source files to this folder.
    Right click project name in the application view window and choose build
    project.
    The files will be compiled into a jar and placed under libraries, in the
    application window. This corresponds to the App-Inf/lib folder under your
    application.
    do let me know if you have nay other questions.
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Marcel Hartgers" <[email protected]> wrote in message
    news:[email protected]..
    >
    Sorry Raj,
    I am not sure what you mean with this remark. Can you tell me where in theproject
    I must put these files. Do I do it whitin workshop or use windows explorerto
    do this ??
    Marcel
    "Raj Alagumalai" <[email protected]> wrote:
    Marcel,
    You can copy the source files to the project folder and Workshop will
    automatically compile them for you. If these classes need to be packed
    with
    multiple applications, or used by multiple applications, you can create
    a
    new Java project, and place the files within that project. On building
    a
    Java project, the source files will be compiled into a jar file and the
    jar
    file will be placed in the APP-Inf/lib folder.
    Hope this helps.
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Marcel Hartgers" <[email protected]> wrote in message
    news:3f5749d6$[email protected]..
    Hello,
    I have imported (actually copied) a java file into WEB-INF\src.....\login\LoginBacking.java
    Next, I want to compile it in order to create the class. How do I dothis
    in Workshop
    Reminder: I am a newbie in this ...
    Thanks,
    Marcel

  • Is it possible to get the Source from the Compiled Java Class File?

    Hello All,
    I wrote a java file which uses Java Swing to crea a GUI.I have also compiled the jave file.
    The problem now is that i've made many changes and compiled it many times.Now suddenly due to some problem,the contents of tha Java file have been deleted and it shows 0 bytes.
    Is there any way to recover my Java source file from the Class file?I would be thankful to anyone who can help me out on this.
    Thanks in Advance,
    Regards,
    Vijayakannan

    Yes and no, you can reverse engineer it to an extent, it wont look exactly like your original source though, it'll be full of commented out bytecode bits etc. As its your own code though you've got the best chance of deciphering it. Go to somewhere like www.tucows.com to download the software for doing it.
    ARB

  • Problem to compile .java class

    hi,
    i'm using/creating a package of classes....and as per my knowledge there is no need to write explicit import if u r importing/using an instance of class1 in other class2 in the same package.....
    I'm doing the same.....
    but the problem arrises here that....while compiling class2 the error occures..........
    D:\tomcat\webapps\Books\WEB-INF\classes\BookForm.java:6: cannot resolve symbol
    symbol : class Book
    location: class BookForm
         private Book book =new Book();
    why so????? as i have included the package in CLASSPATH also..........
    PLZ reply....
    .....Amita

    You don't need to import classes that are in the same package but they do need to be in the classpath. My guess is that you are compiling BookForm.java from the D:\tomcat\webapps\Books\WEB-INF\classes directory. Either add "D:\tomcat\webapps\Books\WEB-INF\classes" explicitly to your classpath or add a dot (".") to your classpath.

  • Error when compiling java class

    I am trying to compile the DVDService class which instiates the DVD class which is in the same package, but I get cannot resolver sumbol error because it could not recognise DVD class. I have included the current dir also in the class path. Can someone tell me where I am going wrong. DVD.class is the same subfolder aws DVDService.java
    THanks
    Meena
    package com;
    import java.util.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2006</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class DVDService
      public DVDService() {
    public DVD getDVD()
        List obj;
        obj = new ArrayList();
        obj.add("Denzel");
        obj.add("kamal");
        obj.add("rajini");
        DVD dvd = new DVD();
        dvd.setId("1");
        dvd.setTitle("Siege");
        dvd.setLength("120");
        dvd.setActors(obj);
        return dvd;
      public String getString(String s)
      return s;
      public Vector getVector(String[] a)
        Vector v = new Vector();
        String s1;
        for(int i = 0; i<a.length; i++)
          s1=a;
    v.add(s1);
    return v;
    public float getfloat(int i)
    return i;
    public static void main(String[] args) {
    DVDService dvdservice = new DVDService();
    DVD dvd1 = dvdservice.getDVD();
    String id = dvd1.getId();
    System.out.println("The value of id is " +id);
    String title = dvd1.getTitle();
    System.out.println("The value of title is " +title);
    String length = dvd1.getLength();
    System.out.println("The value of length is " +length);
    List list = dvd1.getActors();
    Iterator iter = list.iterator();
    while (iter.hasNext()) {
    System.out.println("The value of next element is " + (String) iter.next());
    String u = dvdservice.getString("chinna");
    System.out.println("Value of String u is " +u);
    Vector v1 = dvdservice.getVector(new String[] {"meena","chinna","karthick"});
    iter = v1.iterator();
    while(iter.hasNext())
    System.out.println("The valeu of vector elemet is " +(String)iter.next());
    float f = dvdservice.getfloat(2);
    System.out.println("The float output is " +f);

    If your directory structure looked like this, for example:
    c
    |_java
        |_applications
              |_com
                  |_pgm1
                  |_pgm2... Then back up to the 'applications' directory and compile as:
    javac com\*.java
    Run as:
    java com.pgm1
    ~Bill

Maybe you are looking for

  • Suddenly - spinning beachbal in all new apps I open

    I was doing a thing in an a PPC application — so in other words it's using Rosetta — and suddenly it started to beachball and then the Adium, Finder, Word and Safari followed, the fans started to run, the hung apps took alot of processor power.I had

  • Shockwave crash on Chrome. This just recently started to happen. Please help

    Shock wave keep crashing. Everytime I try to watch a video on certain sites. This is a new problem and it just started happeneing.

  • Merge

    New iWork for iCloud (and now Mavericks) lacks the mail merge functionality of iWork 2009. The ability to drag and drop contacts into templates in iWork was the essence of productivity.  It's a glaring omission on the part of Apple. Bring back Mail M

  • Problem with converted mod file

    Hello, I have taken some clips with a friends camera, which saves them to the oh so annoying .MOD format. I have converted it to avi, h264, mp4, and whats not, but when I already succeed to import the file to premier, when I play and view it during e

  • Hwo to create Rodo Log goups and his member ???

    HI, Hwo to create Rodo Log goups and his member ??? I have five redo log groups with two members for each .. I want add another 3 groups with 2 member each group ? What is steps to create this groups and members !! Can we do it onle-line while all en