Simple Java Question 2

hey everyone!
im stuck, on the math part.
i need to add a formula to my applet, x = y*z, for example. For fixed values of y and z. So lets say y = 5 and z= 3. How do i get "15" to be displayed when an applet is started.
I have looked through java.math but did come across anything but complicated stuff.
your help is very appreciated.

int y = 5, z = 3;
System.out.println(y*z); //prints out '15'This will be printed out to standard output (the shell), for an application.
I'm not sure how you want to print this using your applet.
But the main point is that simple maths can be done using operators on primitive data types (int, byte, short, double, long, ) Check out this important resource.
I recommend you read the whole tutorial, or at least the following sections:
Learning the Java Language
Writing Applets
Writing Swing Applets
regards,
lutha

Similar Messages

  • Simple java question, help please

    please help
    -i am just starting out in java and im havin an early problem. Im trying to run a small java script from a commant prompt but im getting the following error after i enter this command at my prompt
    c:\javatest>javac HelloARP.java
    javac is not as an internal or external command, operable program or batch file.
    when i enter
    c:\java -version
    i get the following message: registry key software\javasoft\java runtime enviornment\current version has value of 1.1 but 1.4 is requiured
    error: could not find java.dll
    error: could not find java 2 runtime enviornment
    -im sure this is a simple error on my part. all im trying to do is run my first lil program that i saved in notepad, its only 5 lines long. here is the lil test program im trying to execute
    class HelloARP {
    public static void main (String[] arguments) {
    System.out.println("What's good ARP?");
    - all responses and help are welcomed. Thank you ahead of time for anyone that can help me get started.

    Hi
    First of all uninstall your current JDK installation, if you can get to the registry delete the registry entries for the old version of java which was there on your machine.
    Now do a fresh install of your j2sdk1.4.1, make sure that you will install the JRE with the J2SDK1.4.1.
    Once you are done, set your classpath in autoexec.bat if you are using Windows 95/98
    or set your environment variables if you are using Win NT/2000/XP.
    If using solaris or other unix flavors see the included installation instructions provided.
    Let me if you face the same problem.
    Thanks
    Swaraj

  • Simple java questions!

    Hi!
    Can someone tell me the answers of these questions, you can just bold the correct answer.Any help will be appreciated.
    Thanks in advance.
    Regards,
    sandy.
    1) Which of the following software components is not included in the standard Java SDK 2?
    (a)appletviewer(b)JMF(c)Jar tool(d)Swing(e)none of the above
    2) Which of the following is an abstract class in the Java API?
    (a)int (b)Integer (c)WindowListener (d)WindowAdapter (e)none of the above
    3) Which of the following types can be stored in a TreeMap?
    (a)int (b)boolean (c)char (d)String (e)none of the above
    4) How many main methods are allowed in a java program which comprises four user-defined classes?
    (a)one (b)two (c)three (d)four (e)none of the above.
    **********************************************************************

    about that main methods: i find it strange that only 1 main method is allowed, i would say: alot :)
    Just to give an example of the possibilities:
    public class Main {
      public static void main (String[] args) {}
      public static void main (int i) {}
      public void main() {}
      public void main (int i, String blah) {}
    }All is allowed, only the
    public static void main (String[] args) {}will be used as the startup method for the program.
    So in other words, that question not complete.
    Greets,
    Barre

  • Simple Java Question

    Hi Experts,
    I am getting following run time error message while running a Web Dynpro program:
       java.lang.ClassCastException: com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException: List must contain AbstractList (ProxyList) of Type 'com.sasol.pr.create.Bapimereqitemimp$Bapimereqitemimp_List', not of 'class com.sasol.pr.create.Bapimereqitem$Bapimereqitem_List'!
    Detailed error message is:
    Web Dynpro Client Type HTML Client
    User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1)
    Version null
    DOM version null
    Client Type msie6
    Client Type Profile ie6
    ActiveX enabled
    Cookies enabled
    Frames enabled
    Java Applets enabled
    JavaScript enabled
    Tables enabled
    VB Script enabled
    Server
    Web Dynpro Runtime Vendor: SAP, build ID: 7.0011.20070125102926.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:18:32[UTC], changelist=434634, host=pwdfm101), build date: Thu Apr 12 16:35:25 IST 2007
    J2EE Engine No information available
    Java VM Java HotSpot(TM) 64-Bit Server VM, version:1.4.2 1.4.2.12-061213-10:06-IA64W IA64W, vendor: Hewlett-Packard Company
    Operating system HP-UX, version: B.11.23, architecture: IA64W
    Session & Other
    Session Locale en_US
    Time of Failure Tue Apr 17 14:05:49 IST 2007 (Java Time: 1176798949444)
    Web Dynpro Code Generation Infos
    local/Pr_Create_16042007_I
    SapDictionaryGenerationCore 6.4009.00.0000.20041026131628.0000 (release=630_REL, buildtime=2004-11-02:22:13:11[UTC], changelist=295793, host=PWDFM027.wdf.sap.corp)
    SapDictionaryGenerationTemplates (unknown)
    SapGenerationFrameworkCore 6.4009.00.0000.20041026132141.0000 (release=630_REL, buildtime=2004-11-02:22:05:28[UTC], changelist=295805, host=PWDFM027.wdf.sap.corp)
    SapIdeWebDynproCheckLayer 6.4009.00.0000.20041026133106.0000 (release=630_REL, buildtime=2004-11-02:22:21:59[UTC], changelist=295820, host=PWDFM027.wdf.sap.corp)
    SapMetamodelCommon 6.4009.00.0000.20040909194107.0000 (release=630_REL, buildtime=2004-11-02:22:06:42[UTC], changelist=280398, host=PWDFM027.wdf.sap.corp)
    SapMetamodelCore 6.4009.00.0000.20040909194107.0000 (release=630_REL, buildtime=2004-11-02:22:06:29[UTC], changelist=280398, host=PWDFM027.wdf.sap.corp)
    SapMetamodelDictionary 6.4009.00.0000.20040805191532.0000 (release=630_REL, buildtime=2004-11-02:22:10:20[UTC], changelist=270520, host=PWDFM027.wdf.sap.corp)
    SapMetamodelWebDynpro 6.4009.00.0000.20041026132448.0000 (release=630_REL, buildtime=2004-11-02:22:17:25[UTC], changelist=295810, host=PWDFM027.wdf.sap.corp)
    SapWebDynproGenerationCTemplates 6.4009.00.0000.20041102105304.0000 (release=630_REL, buildtime=2004-11-02:22:38:28[UTC], changelist=297524, host=PWDFM027)
    SapWebDynproGenerationCore 6.4009.00.0000.20041026133106.0000 (release=630_REL, buildtime=2004-11-02:22:22:31[UTC], changelist=295820, host=PWDFM027.wdf.sap.corp)
    SapWebDynproGenerationTemplates 6.4009.00.0000.20041102105304.0000 (release=630_REL, buildtime=2004-11-02:22:38:28[UTC], changelist=297524, host=PWDFM027)
    sap.com/tcwddispwda
    No information available null
    sap.com/tcwdcorecomp
    No information available null
    Detailed Error Information
    Detailed Exception Chain
    java.lang.ClassCastException: com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException: List must contain AbstractList (ProxyList) of Type 'com.sasol.pr.create.Bapimereqitemimp$Bapimereqitemimp_List', not of 'class com.sasol.pr.create.Bapimereqitem$Bapimereqitem_List'!
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setRelatedModelObjects(DynamicRFCModelClass.java:807)
         at com.sasol.pr.create.Bapi_Pr_Create_Input.setPritem(Bapi_Pr_Create_Input.java:403)
         at com.sasol.pr.creation.PrCreationCust.executeBapi_Pr_Create(PrCreationCust.java:215)
         at com.sasol.pr.creation.wdp.InternalPrCreationCust.executeBapi_Pr_Create(InternalPrCreationCust.java:240)
         at com.sasol.pr.creation.ApplView.onActionSearch(ApplView.java:152)
         at com.sasol.pr.creation.wdp.InternalApplView.wdInvokeEventHandler(InternalApplView.java:258)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Can you please have a look on it and suggest me the solution.
    Regards,
    RK

    Hi Ravinda,
    You add to one of your WD RFC Adaptive model relations not instance of com.sasol.pr.create.Bapimereqitemimp$Bapimereqitemimp_List BUT com.sasol.pr.create.Bapimereqitem$Bapimereqitem_List
    Check the place where you instanciate your model, establish relations and bind model to model class.
    Best regards, Maksim Rashchynski.

  • A simple Java question...

    How to wrap the text on the Button in Java?
    For example, the text on the button is too long, I would like to switch it into two lines, but I don't know how to do it. Can anyone tell me how to do it?
    Thank you very much!!!

    Someone told me about this....
    after Java 1.1.7 and Swing 1.0.3, Swing do enable HTML rendering, so you can create a multiline button with the HTML code. eg.
    JButton myButton = new JButton ("<html><center>Chevrolet<br>Light Truck</center></html>");
    here have more 3 methods for create multiline button.
    1. combination of JLabels and the JButton
    JButton myButton = new JButton();
    myButton.setLayout(new BorderLayout());
    JLabel myLabel1 = new JLabel("Line1");
    JLabel myLabel2 = new JLabel("Line2");
    myButton.add(BorderLayout.NORTH,myLabel1);
    myButton.add(BorderLayout.SOUTH,myLabel2);
    2. create a new ButtonUI that formats your text properly
    3. extend JButton and overriding paint method. tokenize string based on \n and recalculations spacing (no good)
    Does it really work?

  • Simple Java Question - How to test if a given string is numeric or not

    Hi Experts,
    I have written one Java program. It fetches user ID from UME. The code is as below:
    Iterator itr = role.getUserMembers(true);
    while (itr.hasNext()) {
    String uniqId = (String) itr.next();
    IUser thisUser = myUserFactory.getUser(uniqId);
    wdComponentAPI.getMessageManager().reportSuccess("here "+thisUser.getUid() );
    Used ID is thisUser.getUid() . I have to find out all user IDs which are numeric.
    Do we have any standard Java program (API) to find out whether thisUser.getUid()  is numeric or not.
    Regards,
    Gary

    Hi
    Just try to parse this string to integer or long number and catch the NumberFormatException.
    Somthing like:
    try
       Integer.parseInt(userIdString);
    catch(NumberFormatException e)
      //do sume thing when user id is not number
    good luck

  • Simple Java Question vs. Visual Basic 6

    What are the core advantages in using Jbuilder9?
    What are the disadvantages of using Jbuilder9?
    And what advantages does Jbuilder have over VB6?
    And What is UI? And IDE????

    I think you first need to ask yourself wether Java or
    Microsoft is the way to go. Java is portable and secure
    (among other things).
    If you are looking for graphical tools to build web
    applications, you may want to consider Java Studio
    Creator, which will be available in Early Access in a
    few weeks time:
    http://wwws.sun.com/software/products/jscreator/index.html
    hth,
    Alexis

  • Simple Java Question (Hopefully)

    I'm not sure if anyone out here is familiar with ClearCase, I'm sure there are some, but I am trying to create some basic classes that perform various cleartool shell out commands, one of which returns the some information about ClearCase code repositories.
    When I execute a command line "cleartool lsvob" via cmd here's what I get:
    \mt_group \\happy\vobdata\vobstore\mt_group.vbs public
    * \company_cmtools \\happy\vobdata\vobstore\company_cmtools.vbs public
    \loc_test \\happy\vobdata\vobstore\loc_test.vbs public
    \iais \\happy\vobdata\vobstore\iais.vbs public
    \loc_test1 \\happy\vobdata\vobstore\loc_test1.vbs public
    * \ccase_tool \\happy\vobdata\vobstore\ccase_tool.vbs public
    \ddts \\happy\vobdata\vobstore\ddts.vbs public
    \cmtools_a2 \\happy\vobdata\vobstore\cmtools_a2.vbs public
    \pams \\happy\vobdata\vobstore\pams.vbs public
    However, when I try to do this via a class file it just sits there and doesn't do anything. When I change the command string to "cleartool lsvob -s" it prints:
    \mt_group
    \company_cmtools
    \loc_test
    \iais
    \loc_test1
    \ccase_tool
    \ddts
    \cmtools_a2
    \pams
    Does Java have a problem with white spaces? Here is the code I have:
    import java.lang.*;
    import java.io.*;
    import com.oroinc.text.perl.*;
    public class GetVobMount {
         String cleartool;
         String os = System.getProperty("os.name");
         String cmd = " lsvob";
         public String getVobs () {
              Perl5Util perl = new Perl5Util();
              if (perl.match("/Win/i", os)) {
                   cleartool = "cmd /c cleartool.exe";
              } else {
                   cleartool = "/usr/atria/bin/cleartool";
              StringBuffer data = new StringBuffer();
              System.out.println(cleartool + cmd);
              try {
                   Runtime r = Runtime.getRuntime();
                   Process p = r.exec(cleartool + cmd);
                   p.waitFor();
                   DataInputStream in = new DataInputStream(p.getInputStream());
                   String input;
                   while ((input = in.readLine()) != null) {
                                         data.append(input);
                        data.append("\n");
              } catch (Exception e) { System.out.println(e); }
              return data.toString();
         public static void main (String [] args) {
              GetVobMount vobs = new GetVobMount();
              System.out.println(vobs.getVobs());
    }Of course this won't work in an enviroment that isn't using ClearCase but perhaps there is a reason why java won't return a string of:
    \something \\server\path\dir\something.vbs public
    Any help or suggestions will be greatly appreciated.
    -Wes

    Howdy... I myself have done a lot of clearcase work with a Java app that runs on both UNIX and NT, so hail to you.
    So the problem here is that the spawned process blocks? And there is no way to get it to resume?? Isn't this a bug?? The original code seems perfectly acceptable.
    I've encountered the same problem. My app. was running some system calls and there were some unusual error messages due to system/server problems. The java app should've handled it fine (I handle STDERR), but instead my java app FROZE, no doubt because the spawned process went into this blocked state as Chuck described. In my case, when the system/server error was fixed and the error messages went away, my app stopped locking up.

  • Simple Java Question - How to Overwrite Set

    After working so much in Java, wondering how do i overwrite java.util.Set
    My pojo is Set of associated object. For example
    class Parent
    private Set child = new HashSet(0);
    public Set getChild() {
    return this.child;
    I wanna overwrite set of child objects in pojo with the set passed from UI tier
    Any pointers/suggestions will be highly appreciated
    Regards
    Bansi

    public void setChild(Set child) { this.child = child; }or if you need more control over the Set instance:
    public void setChild(Set child)
        this.child.clear();
        this.child.addAll(child);
    }

  • Three simple java questions

    Issue 1:
    if(totaliNumber < 1001) //Hello there, OR statements don't appear to work!
    totaliNumber = 1001;
    if(totaliNumber > 9999)
    totaliNumber = 1001;
    iNumber = totaliNumber;
    ++totaliNumber;This is only giving me the number 1001 each time it is called. if theres any other way to give me the next number other than keeping a count, let me know...
    Issue 2:
    public boolean exists(int nNumber)
    //method
    //some lines down
    int temp = 0;
    for(int i = 0; i < MAX_ENTRIES; i++)
    temp = arrayOfMembers.getMemberNumber();
    if(arrayOfMembers[i].exists(temp)); //cannot find symbol : method: exists(int) <--------------------------------------
    return arrayOfMembers[i];
    return null; //not found!Issue 3: How do I test a method that returns an array of integers? I want to print it out to see the results of the functiion.  A simple print to the cmd box is fine i.e., System.out.print("");
    full source code can be found here:
    [http://docs.google.com/Doc?docid=0AXeIbNxo5as1ZGZkZnF3cmZfMzgxZ3E0cnRoZm0&hl=en|http://docs.google.com [/Doc?docid=0AXeIbNxo5as1ZGZkZnF3cmZfMzgxZ3E0cnRoZm0&hl=en]  http://docs.google.com/Doc?docid=0AXeIbNxo5as1ZGZkZnF3cmZfMzgycDV3dmgyeDY&hl=en|/Doc?docid=0AXeIbNxo5as1ZGZkZnF3cmZfMzgxZ3E0cnRoZm0&hl=en]  http://docs.google.com/Doc?docid=0AXeIbNxo5as1ZGZkZnF3cmZfMzgycDV3dmgyeDY&hl=en]
    [http://docs.google.com/Doc?docid=0AXeIbNxo5as1ZGZkZnF3cmZfMzgzM2M3NjRyZG4&hl=en|http://docs.google.com/Doc?docid=0AXeIbNxo5as1ZGZkZnF3cmZfMzgzM2M3NjRyZG4&hl=en]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    if(totaliNumber < 1001) //Hello there, OR statements don't appear to work!
    totaliNumber = 1001;
    if(totaliNumber > 9999)
    totaliNumber = 1001;
    iNumber = totaliNumber;
    ++totaliNumber;This is part of a constructor and is supposed to generate a new number each time the constructor is used/called.
    public boolean exists(int nNumber)
    //method
    //some lines down
    int temp = 0;
    for(int i = 0; i < MAX_ENTRIES; i++)
    temp = arrayOfMembers.getMemberNumber();
    if(arrayOfMembers[i].exists(temp)); //cannot find symbol : method: exists(int) <--------------------------------------
    return arrayOfMembers[i];
    return null; //not found!exists is a member function of arrayOfMembersarrayOfMembers = new Member[defaultnumberofmembers];                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Help for simple java question

    May i know how to set the image .jpg or gif into the label ?
    how to get the time in this format::Monday 12th Jan 2004
    thanks

    Hi,
    If i want click the button then the image of the JLabel will be change.. how to write in syntax?
    i know the c1 = new JLabel(new ImageIcon("sysImage/Send.gif"));
    but i want another image after click command button.
    is it c1.setImageIcon("abc.gif"); ? i try,but error..
    how to apply the date fill into syntax? i not really know read the API
    thanks

  • Simple Java question about releasing beans from memory

    Hi,
    I use many beans in my app. Is there a way to release them from memory, or destroy the object. I feel that its possibly eating my memory up over time. Most of my beans are in page scope. Some are in session scope. So the page scope ones should kill them at the end of execution of the page and the session ones should delete the object from memory when at the last page of the app where session is no longer needed.
    Someone mentioed System.exit(1); but I have not found any clear documentation that this will free up the memory that it has used.
    Thanks for your time. It is appreciated.

    There is no way to explicitly force the memory to be released. The JVM garbage collection will take care of it when more memory is required. The programmer's responsibility is to ensure that there are no remaining references to the object. System.exit() ends the JVM so you do not want to use that. You can call System.gc() to request that garbage collection runs, but the JVM does not guarantee that it will.

  • Efficiency Question: Simple Java DC vs Used WD Component

    Hello guys,
    The scenario is - I want to call a function that returns a FileInputStream object so I can process it on my WD view. I can think of two approaches - one is to simply write a simple Java DC that does so and just use it as a used DC so I can call the functionality from there. Or create another WD DC that exposes the value (as binary) via component interface.
    I'm leaning on the simple Java DC approach - its easier to create. But I'm just curious on what would be the Pro-side (if there's any) if I use the WD Component interface approach? Is there a plus for the efficiency? (Though I doubt) Or is it just a 'best/recommended practice' approach?
    Thanks!
    Regards,
    Jan

    Hi Jan
    >one is to simply write a simple Java DC that does so and just use it as a used DC so I can call the functionality from there
    Implemented Java  API for the purpose mentioned in your question is the right way, I think. The Java API can be even located in the same WebDynpro DC as your WebDynpro components. There is not strongly necessity to put it into separate Java DC.
    >Or create another WD DC that exposes the value (as binary) via component interface
    You should not do this because in general WD components' purpose is UI, not API. Implementing WD component without any UI, but with some component interface has very-very restricted use cases. Such WD component shall only be a choice in the cases when the API is WebDynpro based and if you have to strongly use WebDynpro Runtime API in order to implement your own API.
    If your API does not require WebDynpro Runtime API invocations or anything else related to WebDynpro then your choice is simple Java API.
    >But I'm just curious on what would be the Pro-side (if there's any) if I use the WD Component interface approach? Is there a plus for the efficiency?
    No. Performance will be better in simple Java API then in WebDynpro component interface. The reason is the API will not pass thought heavy WebDynpro engine.
    BR, Siarhei

  • Can we call a simple java application from ESB

    Please let me know how this can be done by using a ESB. The application jar exists on the host server. How we can pass parameters etc and receive results from this application.
    Any help will be greatly appreciated.
    Prakash

    Not sure if I completely understand your question, but you can certainly try following ways:
    - call your java application via WSIF. ESB with JAVA wsif is available in 10.1.3.3.1 only (it is not supported in 10.1.3.3 very well).
    - you will have to include this jar file in server.xml or bpel/system/classes so that it is available to the SOA jvm.
    - You mentioned it is simple java application, but if your java API has complex (object) input and output, you will need some work
    HTH,
    Chintan

  • Re: Using simple java class in an .war file.

    Hi All,
    I have a simple question,
    Can I access an simple java class from a jsp file that I have written by putting it in the "classes" folder?? What entry should go in the web.xml file?
    Here is my directory structure:
    sample.war
    |
    ----test.jsp <file>
    |
    ----WEB-INF <folder>
    | |
    | ----classes<folder>
    | | |
    | | ----simpleJavaClass.class<file>
    | |
    | ----lib<folder>
    | |
    | ----web.xml
    I want to access the simpleJavaClass.class from the jsp test.jsp.
    Please suggest.
    Thanks and regards
    Ayusman

    It is possible to access the class in u r classes folder from u r jsp file.
    For example
    <%@ page import="com.test.service.PricingSolution,
    com.test.core.PhoneNumber
    %>
    <% PricingSolution solution = (PricingSolution)session.getAttribute("solution"); %>
    This is a simple scriplet example. You do the same using jstl tags also.
    --Shinoy

Maybe you are looking for

  • Print Formatting Problem On Specific Printers

    When printing an ABAP list in LOCL mode, on certain printers the grayscale backgrounds of fields print as slashes ////// and others print as crosshatched. For example, on a Canon 2200 printer, this code prints as crosshatched background behind the te

  • Photoshop is running very slow in a very high power computer

    Hello to all the community. Recently I buyed a new PC and I have all the CC adobe softwares. Here are the specs of my PC: - W7 64 bits - Seasonic M12II EVO-750W 80Plus Bronze - Samsung 850 PRO Series 256 GB 2.5" SATA 3 - ASROCK X99 Extreme6 - Intel C

  • How should I set the iMac display in normal mode

    how should I set the iMac display in normal mode

  • What to do in the end

    Ok, so now that i've finished the project i've been working on forever (a 3 min videoclip w/tons of effects), i wonder what my best move is. I'm looking to do 2 things with it 1)Project it publically on a big screen, so i need the best quality possib

  • How to force the bookmark tree to autoexpand upon open

    If I add bookmarks to a PDF via Acrobat, the PDF opens with all bookmarks expanded (on the bookmark panel). Now, I am using LCES AssemberServices to build a PDF with bookmarks. Everything works fine but that PDF opens will the bookmark tree collapsed