Java & VxWorks ... Please Help Me ?

Hello All
I am looking for VxWorks compatible Web Server on which I can run Servlets also.. I come to know about two such web servers: Wind Web Server and Go Ahead Web Server but both supports CGI only.
Or tell me something JVM supports Vxworks.. I visited sun site.. I got answer but all it supports Solaris only..
I am not using solaris machine I am using Windows machine.. hence I am looking for windows compatible code.
Please help me ??
/sunil

Servlet APi is nod distributed together with Personal Java and J2SE. Unless you have Java 2 Enterprise Edition you should download servlet api package from http://java.sun.com/products/servlet/index.html. Also if you wish - you can take a look at Apache's Tomcat which is pure Java web server with servlet & jsp support.
URL is http://jakarta.apache.org/tomcat/

Similar Messages

  • Displaying Picture in a Java APPLICATION please help!!

    I have been trying to write a method that Displays a .jpg file when called. However I have not gotten far, every book I have tell you how to display pictures in an applet but not an application. I did find some code that is supposed to be for an application, but It does not compile right. Any help would be apprecidated!
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class PictureIt{
    public void makeImage() {
    //***Image Output Stream
    String imgFile
    = "d:\\temp\\TestImage.jpeg";
    out = new FileOutputStream(imgFile);
    BufferedImage image = null;
    image = (BufferedImage)createImage
    (panelJpeg.size.width, panelJpeg.size.height);
    Graphics g = image.getGraphics();
    panelJpeg.paintAll(g);
    }

    Displaying Picture in a Java APPLICATION please help!!
    Hope this helps.There is going to be two classes compile seperatly first class is what does the drawing
    here it is
    import javax.swing.*;
    import java.awt.*;
    public class draww extends JPanel {
    Image ball;
    int width1 = 100;
    int height1 = 100;
    public draww() {
    super();
    Toolkit kit = Toolkit.getDefaultToolkit();
    ball = kit.getImage("pic1.gif");
    public void paintComponent(Graphics comp) {
    Graphics2D comp2D = (Graphics2D) comp;
    comp2D.drawImage(ball, 20, 20, width1, height1, this);
    sound class is the container JFrame here it is
    import javax.swing.*;
    import java.awt.*;
    public class drawing extends JFrame {
    public drawing() {
    super("draw");
    setSize(400,400);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container pane = getContentPane();
    draww d = new draww();
    pane.add(d);
    setContentPane(pane);
    setVisible(true);
    public static void main(String[] args) {
    drawing drawing1 = new drawing();
    PS Hope this helps and see you around

  • URGENT!!! Java Gurus Please Help with adf issue!

    PLEASE SEE MY LATEST POST BELOW TIMO'S RESPONSE. THE REQUIREMENT HAS CHANGED. THAT IS THE ISSUE I AM LOOKING A SOLUTION FOR.
    Hello All,
    We have a requirement where our adf/jsf app needs to pick an EXCEL file from the server where the application is deployed. The sequence is :
    User comes to the page
    Clicks on "Open EXCEL" button
    EXCEL file located in the c:/ of the server opens up.
    How can this be done? I do not see any coding needed because the EXCEL file is being opened as is (and after user views it he closes the file) and the data is not being transferred to the jspx page.
    *We are totally flexible in how this is implemented - ie, using button, link , html etc etc. What ever works!!!!*
    Thanks,
    Edited by: user12054715 on Aug 17, 2010 8:54 PM
    Edited by: user12054715 on Aug 18, 2010 4:11 PM
    Edited by: user12054715 on Aug 18, 2010 4:13 PM

    Hello Timo,
    I am using 10.1.3g so your response is not going to help me.
    However, I have another question that I have already posted on the Forum. Please help me...
    Requirement:
    *1. Java application should be able to write "Hello World" in the excel file, when the user opens it.*
    I CAN DO THIS WITH THE FOLLOWING CODE:
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("newSheet");
    HSSFRow row = sheet.createRow(1);
    row.createCell(1).setCellValue("HelloWorld!!!!!!!!!");
    *2. A "Write To Excel" button on jsf page opens a dialog asking user to Save or Open the excel file. (user can save the file anywhere on his machine)*
    I CAN DO THIS WITH THE FOLLOWING CODE:
    In jsf:
    <af:commandButton text="Download" action="#{myBackingBean.writeToExcel}" useWindow="true"/>
    In backing bean:
    public static void writeToExcel() throws IOException
    String filename = "workbook.xls";
    // //Setup the output
    String contentType = "application/vnd.ms-excel";
    FacesContext fc = FacesContext.getCurrentInstance();
    HttpServletResponse response = (HttpServletResponse)fc.getExternalContext().getResponse();
    response.setHeader("Content-disposition", "attachment; filename=" + filename);
    response.setContentType(contentType);
    PrintWriter out = response.getWriter();
    BOTTLENECK: When the user opens the excel how do I show "HelloWorld!!!!!!!!!" ?

  • How to program this in java? Please help

    How to program this in java?
    please explain steps, it has to come out like this:
    example
    input: 3b1w3b
    output:
    BBBWBBB

    import java.io.*;
    public class Test {
    static java.io.PrintStream o = java.lang.System.out;
    public static void main(String[] args)throws Exception {      
         BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
         System.out.print("Enter plot for printing: ");
         String s = BR.readLine();
         char[] cs = s.toLowerCase().toCharArray();
         for(int i=0, j=0; i < cs.length-0x1; i+=0x2, j=0)
              while(j++ < (int)(cs[i]-0x30))
                   o.print((char)(cs[i+0x1]-0x20));
    I tried changeing it to this so I can enter my own string, but I want to change it some more so that it can enter multiple input separated by space, so that it can form a sort of picture line by line. I tried using tolkenizer but I get errors. I dont know how to use tolkenizer properly can anyone please TEACH. you dont have to tell how or give me the code if you dont want to. yes I know Im a noob and I dont know java as good as everyone here, If everyone thinks I don't deserve help then DON'T help, I'm just trying to learn programming

  • Java Import -- please help!!!

    I look into http://otn.oracle.com/sample_code/products/forms/content.html for the demo of Java Importer.
    Does anyone knows where / how can I get the source code?
    According to that demo, the Importer creates functions called new() for each of the constructors in the class.
    For me, after I imported one of the class "successfully",
    I can't see this function new().
    How can I get it? Does anyone has the sample code for the package body?
    Please help!!! Anybody?
    thanks

    Hi Shay,
    Where is this src subdirectory?
    I see other demo (i.e the Oracle 9i forms demos) with source in it, but not Java Importer demo. It only has Viewlet next to it.
    Am I looking into the wrong thing?
    thanks

  • Java VM Please help, Cannot remove and cannot Reinstall.

    hello, I hope somebody can help me out here, I'm at my wits end. First of all I have xp pro file system NTFS, I have AOL DSL Broad band. I have attempted to get my Java Download DAYS ago and something went terribly wrong.
    After the download I noticed that my java VM was not working so I attempted to remove it.
    The program uninstalled but not totally. In My add remove software it says this: JAVA 2 RUNTIME ENVIROMENT, SE v1.4.1_01 size 88kb.
    It has the regular change/remove but when pushed it uninstalls Then asks this: DO YOU WANT TO COMPLETELY REMOVE THE SELECTED APPLICATION AND ALL OF IT'S COMPONENTS? AND INSTEAD OF ASKING YES OR NOW IT HAS ON THE BUTTONS "OK" AND "CANCEL tHEN IF YOU SELECT OK IT ACTS AS IF IT IS UNINSTALLING BUT THEN IT STAYS RIGHT WHERE IS WAS.
    With this being this way the download program will still do the download, But then states that there is already one in there, Then prompts to Would you like to uninstal this? ad then uninstals it but the same results happen, no working copy is installed.
    If I try this: START RUN COMMAND Then type in jview te computer says "view is not recognised as an internal or external command,operable program or batch file."
    If i go to the java cup in control panel, open it it reads " The system cannot find the registry key specified.: Hkey_local_machiene\software\javasoft\javaplugin\1.4.1_01"
    From what I have described, cansomebody please help me to get a working a copy of java VM in my system? Please. My whole Buisness centers around placeing items for sale on Ebay and I cannot do this with out the VM. I really need help fast.
    I can be emailed or imed, imeverlast is also my aol name. Please hurry if you know that answer to this problem. Thanks a Million! ;)
    MD

    If you want, I can fix you with remote assistance. Just ask. [email protected] (remove the leading )

  • Java beginner, please help!! (oracle jdbc setting)

    Hi, I am a java beginner. I can't access remote oracle db from my computer. please help me. I can't figure out the problem.
    1.The error------------------------------------------------------------
    Exception in thread "main" java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:532)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at testdb.main(testdb.java:9)
    2.JDBC DRIVER is in----------------------------------------------------
    c:\j2sdk1.4.1_02\jdbc\classes12.zip
    3.CLASSPATH is --------------------------------------------------------
    .;c:\j2sdk1.4.1_02\bin;c:\j2sdk1.4.1_02\jdbc;
    4.My program is--------------------------------------------------------
    import java.sql.*;
    class testdb
    public static void main (String args[])
    throws SQLException,ClassNotFoundException
    Connection conn=
    DriverManager.getConnection("jdbc:oracle:thin:@111.31.111.11:1526:ORA81","scott","tiger");
    Statement stmt = conn.createStatement();
    ResultSet rset=stmt.executeQuery("SELECT EMPNO FROM EMP");
    while (rset.next()) {
    System.out.println (rset.getString(1));
    5. Why can't i connect to db?

    Hi...i have the same problem and can't seem to solve it
    this is my source code
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class TextToDatabaseTable {
    public static void main (String[] args) {
    try {
    // connect to db
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@cs-bid:1521:SVRDESK", "lynn", "abc");
    catch( Exception e) {
    e.printStackTrace();
    and this is my error
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at TextToDatabaseTable.main(TextToDatabaseTable.java:12)
    and i try the methods above
    C:\download\Lynn>java -classpath c:\download\lynn;classes12.zip TextToDatabaseTable
    C:\download\Lynn>java TextToDatabaseTable
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at TextToDatabaseTable.main(TextToDatabaseTable.java:12)
    i'm using oracle 8i with tomcat on win 2k server.
    i dunno what's wrong with it...do i need to set any classpath?
    i have TOMCAT_HOME and JAVA_HOME Variables in My Environment Variables.
    Do i need to set anything for these variables?
    Do i need to download any patches? I'm kinda confused.
    Thanks!

  • Java native -- please help

    class HelloWorld {
    private native void print();
    public static void main(String[] args) {
    new HelloWorld().print();
    static {
    System.loadLibrary("HelloWorld");
    //this is .h file
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <C:\java\jdk1.5.0_06\include\jni.h>
    /* Header for class HelloWorld */
    #ifndef IncludedHelloWorld
    #define IncludedHelloWorld
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class: HelloWorld
    * Method: print
    * Signature: ()V
    JNIEXPORT void JNICALL Java_HelloWorld_print
    (JNIEnv *, jobject);
    #ifdef __cplusplus
    #endif
    #endif
    //this is .h file end
    // C File starts
    #include "C:\java\jdk1.5.0_06\include\jni.h"
    #include <stdio.h>
    #include "HelloWorld.h"
    JNIEXPORT void JNICALL
    Java_HelloWorld_print(JNIEnv *env, jobject obj)
    printf("Hello World!\n");
    return;
    //C file ends
    I have used following commands to create dll
    cl -I"C:\Program Files\Microsoft Visual Studio 8\VC\include" -I"C:\java\include\win32"
    -I"C:\java\jdk1.5.0_06\include\win32" -I"C:\Program Files\Microsoft SDKs\Windows\v6.0\Include" HelloWorld.c
    -FeHelloWorld.dll -LDd -MD -link -libpath:"C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\LIB"
    -libpath:"C:\Program Files\Microsoft Visual Studio 8\VC\lib"
    At runtime I get error the " an atempt has made to load a C library in correcty" and then error
    "A dynamic link library (DLL) initialization routine failed"
    please help me ASAP.
    thanks in advance.

    class HelloWorld {
    private native void print();
    public static void main(String[] args) {
    new HelloWorld().print();
    static {
    System.loadLibrary("HelloWorld");
    //this is .h file
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <C:\java\jdk1.5.0_06\include\jni.h>
    /* Header for class HelloWorld */
    #ifndef IncludedHelloWorld
    #define IncludedHelloWorld
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class: HelloWorld
    * Method: print
    * Signature: ()V
    JNIEXPORT void JNICALL Java_HelloWorld_print
    (JNIEnv *, jobject);
    #ifdef __cplusplus
    #endif
    #endif
    //this is .h file end
    // C File starts
    #include "C:\java\jdk1.5.0_06\include\jni.h"
    #include <stdio.h>
    #include "HelloWorld.h"
    JNIEXPORT void JNICALL
    Java_HelloWorld_print(JNIEnv *env, jobject obj)
    printf("Hello World!\n");
    return;
    //C file ends
    I have used following commands to create dll
    cl -I"C:\Program Files\Microsoft Visual Studio 8\VC\include" -I"C:\java\include\win32"
    -I"C:\java\jdk1.5.0_06\include\win32" -I"C:\Program Files\Microsoft SDKs\Windows\v6.0\Include" HelloWorld.c
    -FeHelloWorld.dll -LDd -MD -link -libpath:"C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\LIB"
    -libpath:"C:\Program Files\Microsoft Visual Studio 8\VC\lib"
    At runtime I get error the " an atempt has made to load a C library in correcty" and then error
    "A dynamic link library (DLL) initialization routine failed"
    please help me ASAP.
    thanks in advance.

  • Java Installation: Please Help Me

    Please Help! For school we need to install JAVA. I installed JDK 5.0 and id did not work. I got exception in thread "main" java.lang.noclassdeffounderror: hello. I was using Texpad to write, compile, and run it. In short I deleted all JAVA 5.0 using My Computer program removal. I installed JAVA 1.4..2_10 and I am still getting that same error.
    My System Variable CLASSPATH still shows C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip. My System Variable PATH has nothing as far as JAVA in it. MY PATHEXT has JS and JSE amoung other things in it. My System Variable QTJAVA still has Files\Java\jre1.5.0_03\lib\ext\QTJava.zip in it.
    Please tell me step-by-step how I can fix this. I never updated these variables before. What do I need to type and where? What do I need to get rid of or change?
    PLEASE HELP!
    Thanks,
    Jim

    Topic was solved by adding .; to the class path.
    Jim

  • Llist.java? llistnumbernode.java? PLEASE HELP

    I'm programming linked-list. I know how to program, not that well though, but I don't understand how the linked-list works.
    Here's what I got so far:
    import java.util.*;
    ** Author: Yuan-Fang Wang
    ** The skeleton of a singly-linked-list class using interface
    ** DO NOT delete anything or change any parameters or return types
    public class llist {
       int   length; // number of nodes in the list, for am empty list length = 0
       node  head;     // must poinnt to the head (the first element) of the list
       // interface definition of a node
       public interface node {
          public Object getValue();          // get stored KEY value
          public node   getNext();          // get next node
          public void   setNext(node l);     // set next node
          public int    compares(node l);     // compare values
          public String toString();          // for printing
       // constructor for a null list
       public llist() {
            head = null;
            length = 0;
       // constructor using the first node
       public llist(node l) {
                 head = l;
                 length++;
       // truncate the linked list to null
       public void empty() {
         //head.setNext(null);
       // don't change anything here
       public Enumeration getEnum() {
          return new Enumeration () {
          node current = head;
          public boolean hasMoreElements() {
             return (current!=null);
          public Object nextElement() {
             if (current==null) throw new NoSuchElementException("Linkedlist");
             Object value = current;
             current = current.getNext();
             return value;
       // return the number of nodes in the linked-list
       public int getLength() {
            return length;
       // search for a node in the linked-list
       // return its position in the linked list (the first node is 0)
       // return -1 if the node is not found in the linked list
       public int search(node elem) {
          while(head != null){
       // insert a node into the linked list
       // return its position in the linked list (the first node is 0)
       // return -1 if the node already in the linked list (no duplicated insert)
       public int insert(node elem) {
         if(head==null){
              head = elem;
              length++;
              return 0;
         else if(elem<head){
              elem.setNext(head);
              head = elem;
              length++;
              return 0;
         else{
              ptr = head;
              while(ptr != null){
                   if(ptr == elem)     return -1;     //duplicate
                   else if(ptr.getNext() != null
          return -1; // you must change this line to return the true insert result
       // delete a node from the linked list
       // return deleted node if is in the linked list and null otherwise
       public node delete(node elem) {
          return null; // you must change this line to return true delete result
       // return the n-th node of the linked list
       // return null if n is < 0 or larger than or equal to the current length
       public node findNth(int n) {
          return null; // you must change this line to return true findnth result
       // print the list, DO NOT modify this method in anyway
       public void printList() {
          node ptr = head;
          while (ptr!=null) {
          System.out.print(ptr + " ");
          ptr = ptr.getNext();
          System.out.println();
       // utility routine that will be used later, DO NOT modify this method
       node findLast() {
          if (head==null) return null;
          node ptr = head;
          while (ptr.getNext()!=null) {
          ptr = ptr.getNext();
          return ptr;
    }And for llistnumbernode.java
    ** Author: Yuan-Fang Wang
    ** The skeleton of a singly-linked-list node using interface
    ** DO NOT delete anything or change any parameters or return types
    public class llistnumbernode implements llist.node {
       Number element;     // stored element
       llist.node   next;          // next node
       public llistnumbernode (Number elem) {
       // return the KEY value for comparison
       public Object getValue() {
          return null; // you must change this to return true result of getValue()
       // get the next node in the list
       public llist.node getNext() {
          return null; // you must change this to return true result of getNext()
       // set the next node in the list
       public void setNext(llist.node l) {
       // return  1 if this (self) >  node l
       // return  0 if this (self) == node l
       // return -1 if this (self) <  node l
       public int compares(llist.node l) {
          return -1; // you must change this to return true result of compares()
       // DO NOT change this method
       public String toString() {
          return element.toString();
    }Please HELPPPPP

    Will someone please help!!!

  • Any Java experts,please help this Newbie.

    Hey,any one of you knows how do you call a program from a button?
    For example,I created a chat program and peer to peer share Program,and I want to join them together.
    By clicking on a button on the peer to peer share program,the chat program would open in a new window.
    Please Help Me!
    Thanks alot.

    Hi here is the complete example for you how you can call the other java classes in your main java class. Hope it will give you the idea. If still you have problems do write to me at [email protected]
    * SixFrame.java
    * Created on July 15, 2003, 10:26 AM
    * @author sandeep
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class SixFrame extends JFrame implements ActionListener{
    JButton btn[] = new JButton[6]; // this no will vary as per you requirements
    /** Creates a new instance of SixFrame */
    public SixFrame() {
    JPanel pan = new JPanel();
    for(int i=0;i<btn.length;i++){
    btn[i] = new JButton((i+1)+"");
    btn.addActionListener(this);
    pan.add(btn[i]);
    getContentPane().add(pan,BorderLayout.CENTER);
    setSize(300,300);
    setVisible(true);
    /** Invoked when an action occurs.
    public void actionPerformed(ActionEvent e) {
    String comm = e.getActionCommand();
    if(comm.equals("1")){
    new FrameOne("One");
    }else if(comm.equals("2")){
    new FrameTwo("Two");
    }else if(comm.equals("3")){
    new FrameThree("Three");
    }else if(comm.equals("4")){
    new FrameFour("Four");
    }else if(comm.equals("5")){
    new FrameFive("Five");
    }else if(comm.equals("6")){
    new FrameSix("Six");
    public static void main(String args[]){
    new SixFrame();
    class FrameOne extends JFrame{
    FrameOne(String str){
    super(str);
    setSize(200,200);
    setVisible(true);
    class FrameTwo extends JFrame{
    FrameTwo(String str){
    super(str);
    setSize(200,200);
    setVisible(true);
    class FrameThree extends JFrame{
    FrameThree(String str){
    super(str);
    setSize(200,200);
    setVisible(true);
    class FrameFour extends JFrame{
    FrameFour(String str){
    super(str);
    setSize(200,200);
    setVisible(true);
    class FrameFive extends JFrame{
    FrameFive(String str){
    super(str);
    setSize(200,200);
    setVisible(true);
    class FrameSix extends JFrame{
    FrameSix(String str){
    super(str);
    setSize(200,200);
    setVisible(true);

  • Problem with creating JAVA Source. please help

    Dear all
    how are you.
    In fact I have made a simple java class that return a string which represents the screen size . for example 800/600 or 1024/768 or others
    but I face error ORA-29541 class string.string could not be resolved
    This what i made
    first i created my JAVA Source
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "ScreenProperty" AS
    import java.lang.Object;
    import java.awt.*;
    public class ScreenProperty
    int w;
    int h;
    public static String getScreenSize()
    w = Toolkit.getDefaultToolkit().getScreenSize().width;
    h = Toolkit.getDefaultToolkit().getScreenSize().height;
    return w+"/"+h;
    SQL>Operation 160 succeeded.
    this means the the java source created successfuly
    and I'm sure that my java code is correct
    then i created a fuction to call this java source as fellow
    SQL> create or replace function f_get_screen_size
    return varchar2
    as language java
    name 'ScreenProperty.getScreenSize() return java.lang.String';
    Function created.
    the I Issued this sql statement to return the result that should be varchar2 that represent the sceen size(1024/768)
    SQL> select f_get_screen_size from dual;
    ORA-29541 class string.string could not be resolved.
    I do not know what is the reason for this error
    and when i searched the documentation for this error i found
    ORA-29541 class string.string could not be resolved
    Cause: An attempt was made to execute a method in a Java class that had not been previously and cannot now be compiled or resolved successfully.
    Action: Adjust the call or make the class resolvable
    I need to know what is the problem.
    And is there another way to load this class other than making JAVA SOURCE
    please help

    before drawing hands of clock you could fill a circle/oval with certain color, then you'd have that kind of circle that has been filled as backgound.
    you may change those dots to be small lines for 12, 3, 6 and 6 o'clock and then have small dots represent 1, 2, 4, 5, 7, 8, 10 and 11 o'clock
    anyhow, you should study that code and see how you can modify it whitout breaking it but having it look different.
    better yet would be trying to understand how it works, what any line there means and then recreate your own... this way you would learn more....
    and if there are some methods or anything you don't understand, then look them up from API documentation
    good luck.

  • Datacapturing using Java Bean (Please help)

    I am stressed with this projeject. The stage I am at right now is that I want to capture some parameters from a posted form in my bean and send it to the database.
    Can anyone please help with advice.

    Here is the methos used to insert it did not work
    public String insertSkills_Developer() {
    try {
    // load the driver
    // create the connection
    // create the statement
         Stmt = C.createStatement();
    // create the sql to execute and execute
    String[] skill_dev_array = this. getDev_id();
    String[] skill_sets_array = this.getSkills_sets();
    int counter = 0;
    for(int i=0;i<skill_sets_array.length;i++)
    String insert_skill = "INSERT INTO ADEBAYO.DEV_SKILLS (dev_id, skill_id, skilled, interested, deliver_session, description) VALUES (" + this.getDev_id() +'","' + skill_sets_array'","' + this.getSkilled_id() + "','" + this.getSkills_ptp() + "','" + this.getSkill_ta() + "','" + this.getDescription() + "')";
    int stmtInt_2 = Stmt.executeUpdate(insert_skill);
    System.out.println("SQL COMMAND " + insert_skill);
    counter++;
         System.out.println("Inserted row " + counter);
    return "Inserted rows " + counter;
    } catch (SQLException E) {
         System.out.println(E);
         return "SQLException: " + E.getMessage();
    } catch (Exception e) {
         e.printStackTrace();
    return e.getMessage();
    } finally {
    // ALWAYS, ALWAYS close the connections to the db
    try {
    Stmt.close();
    C.close();
    } catch (Exception E) {
    E.printStackTrace();

  • Java Card Please Help!

    Please I am doing my final year project on secure mobile application using Java Card Technology.
    I need to write and an application that can send SMS on a SIM card to another SIM card with the same application. The application will have a server side which manage the storage of messages and at the same time communicate information to the client on the SIM remotely. I am suppose to use wi-fi (TCP/IP) for transmission.
    Can anybody please give me ideas and possible working codes and simulators.
    I mean step by step procedure of how to start.
    THANK YOU.

    Hi,
    I found the following resources helpful when starting out in JavaCard.
    JavaCard documentation:
    Java Card Technology for Smart Cards: Architecture and Programmer's Guide (Book)
    http://java.sun.com/docs/books/javacard/index.html
    JavaCard specifications:
    http://java.sun.com/products/javacard/specs.html
    Global Platform specifications:
    http://www.globalplatform.org/specificationview.asp?id=card
    Communication between SmartCards and terminals is based on ISO 7816 part 3 and 4 so if you�re completely new to the SmartCard environment it may be helpful getting an overview regarding these specifications. Unfortunately these specifications are not free, they�re available from.
    http://www.iso.org/iso/en/ISOOnline.frontpage
    Software:
    The basis for all development is the JavaCard and Java Development kits.
    Java Development Kit
    http://java.sun.com/j2se/1.4.2/download.html
    JavaCard Development Kit
    http://java.sun.com/products/javacard/dev_kit.html
    Full installation instructions can be found in JCDevKit_User_Guide.pdf which is contained in the JavaCard Development Kit distribution.
    Several companies provide IDE�s that will aid you in developing and deploying applets to JavaCard.
    For example:
    Aspects Developer
    http://www.aspectssoftware.com/devtools/index.html
    There are others out there as well. You may need to also buy physical sample cards; however, the IDE�s usually have simulators built in.
    Hardware:
    To interact with physical cards you�ll require a PCSC compatible card reader.
    Omnikey
    http://www.omnikey.com/
    GemPlus
    http://support.gemplus.com/gemdownload/readers/index.aspx
    Hope this helps.
    Cheers,
    Alasdair

  • Java Websphere please help!!

    Hi All,
    My name is Neil Goff and I work for GCS as a Java Websphere Consultant. I have a number of contract roles across the UK, and a m looking for very strong Java developers, with WPS, WID, XML. If you can help please send me an e-mail: [email protected] many thanks.
    Kind Regards
    Neil

    Did you read the Code of Conduct when you signed up on this site? Did it say you could post advertisements?
    And why the duke stars attached to this topic? Is that going to be the pay for whomever you hire?

  • Java Problems, Please Help!

    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package charityassignment;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.text.*;
    * @author jon
    public class Database {
        int TotalEmpl = 35;
        EmployeeInfo[] Employee = new EmployeeInfo[TotalEmpl];
        // creates an array with size of total number of expected employee
        public static void main(String[] args) {
            EmployeeInfo NewApp;
            int EmplOption;
            String Display;
            String[] Option = {"Add", "Remove", "Update", "View", "Quit"};
            int Count= 0;
            do{JOptionPane.showConfirmDialog(null, "Enter An Employee");
            NewApp = new EmployeeInfo();
            Count = 1;   
            }while(Count==0);
            do{EmplOption = JOptionPane.showOptionDialog(
                        null
                        ,"What Would You Like To Do?"
                        ,"Make A Selection"
                        ,JOptionPane.YES_NO_OPTION
                        ,JOptionPane.PLAIN_MESSAGE
                        ,null
                        ,Option
            if(EmplOption == 0){
               NewApp = new EmployeeInfo();
            else if(EmplOption == 3){
                for(int i = 0; i < Employee.length; i++){
                    System.out.println(NewApp.getName());
            }while(EmplOption != 4);
         public Database(){
                for(int i = 0; i < Employee.length; i++){
                    Employee[i] = new EmployeeInfo();
    class EmployeeInfo{
        // declares variables privatly for this class
        ResearcherInfo[] RWages = new ResearcherInfo[5];
        FundraiserInfo[] FWages = new FundraiserInfo[20];
        AdminInfo[] AWages = new AdminInfo[10];
        private double EmplNo;
        private String EmplNoSt;
        private String Name;
        private String Address;  
        private String PhoneNo;         
        private int WageOption;
        private String[] Options = {"Fundraiser", "Administrator", "Researcher"};
        private double MonthsWage;
        private double YearsWage;
        private String EmployeeType;
        public EmployeeInfo(){  
            EmplNoSt = JOptionPane.showInputDialog("Please Enter The Number Of The Employee");
            EmplNo = Double.parseDouble(EmplNoSt);
            Name = JOptionPane.showInputDialog("Please Enter The Name Of The Employee");
            Address = JOptionPane.showInputDialog(
                    "Please Enter The Address");
            PhoneNo = JOptionPane.showInputDialog(
                    "Please Enter The Phone Number");
            WageOption = JOptionPane.showOptionDialog(
                        null
                        ,"What Is The Employee?"
                        ,"Make A Selection"
                        ,JOptionPane.YES_NO_OPTION
                        ,JOptionPane.PLAIN_MESSAGE
                        ,null
                        ,Options
            if(WageOption == 2){
                ResearcherInfo ResApp = new ResearcherInfo();
                MonthsWage = (ResApp.getConsultancy() + ((ResApp.getPerformance() + ResApp.getRSalary()) / 12) );
                YearsWage = (ResApp.getConsultancy() + ResApp.getPerformance() + ResApp.getRSalary());
                EmployeeType = "Researcher";
            else if(WageOption == 1){
                AdminInfo AdmApp = new AdminInfo();
                MonthsWage = (AdmApp.getOverTime() + (AdmApp.getASalary() / 12));
                YearsWage = (AdmApp.getASalary() + AdmApp.getOverTime());
                EmployeeType = "Administrator";
            else if(WageOption == 0){
                FundraiserInfo FunApp = new FundraiserInfo();
                MonthsWage = FunApp.getFSalary() / 12;
                YearsWage = FunApp.getFSalary();
                EmployeeType = "Fundraiser";
        /* System.out.println(WageOption);
         * This allowed me to see the value of each number */
        } // all the working is done here to be called later
        public double getEmplNo()
                return EmplNo;
        public String getName()
                return Name;
        public String getAddress()
                return Address;
        public String getPhoneNo()
                return PhoneNo;
        public double getYearsWage()
                return YearsWage;
        public double getMonthsWage()
                return MonthsWage;
        public String getEmployeeType()
                return EmployeeType;
    class ResearcherInfo{
        private double RSalary;
        private double Consultancy;
        private String SPerformance;
        private double Performance;
        private String SConsultancy;
        public ResearcherInfo(){
            RSalary = 20000;
            SConsultancy = JOptionPane.showInputDialog("Please Enter The Number of Consultancy Hours For This Employee");
            Consultancy = (Double.parseDouble(SConsultancy)) * 20;
            SPerformance = JOptionPane.showInputDialog("Please Enter The Performance Pay Rate For This Employee");
            Performance = Double.parseDouble(SPerformance);
        public double getRSalary()
                return RSalary;
        public double getConsultancy()
                return Consultancy;
        public double getPerformance()
                return Performance;
    class AdminInfo{
        private double ASalary;
        private double OverTime;
        private String SOverTime;
        public AdminInfo(){
            ASalary = 17000;
            SOverTime = JOptionPane.showInputDialog("Please Enter The Number of Over-Time Hours For This Employee");
            OverTime = (Double.parseDouble(SOverTime)) * 20;
        public double getASalary(){
            return ASalary;
        public double getOverTime(){
            return OverTime;
    class FundraiserInfo{
        private double FSalary;
        public FundraiserInfo(){
            FSalary = 15000;
        public double getFSalary(){
            return FSalary;
    }The Code is no-where nearfinnished yet, but i get an error:
    non-static variable Employee cannot be referenced from a static context
                for(int i = 0; i < Employee.length; i++){I understand wat this means, and i could make EmployeeInfo[] Employee = new EmployeeInfo[TotalEmpl]; static, but when i do this other things fgo wrong, no matter what i try, somthing in
    for(int i = 0; i < Employee.length; i++){
                    System.out.println(NewApp.getName());
                }screws up, is anyone able to help? i am at my wits end
    Edited by: Madsmeg on Jan 5, 2008 5:40 AM

    paul.miner wrote:
    In main(), you should do something like:
    Database db = new Database();And then when you access instance fields, you must specify the instance you're operating on:
    for(int i = 0; i < db.Employee.length; i++)
    I had tried this, but when i did this i had an error in
    else if(EmplOption == 3){
                for(int i = 0; i < Employee.length; i++){
                    System.out.println(NewApp._Employee_.getName());
    It says it cannot find the variable Employee[i]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Error in Asset A/c Determination

    Hi all, I already created asset in Accont determination (111) which is assigned to Asset Class. Now I need to assign GL a/c(222) to DP Acq. in Tcode- OA90. But I am getting an error as below: "Account 300 not yet defined as reconciliation account in

  • HT204053 How do I delete an apple Id account that I can't remember the password to get into

    I cannot get into my apple id account/ iCloud because I can't remember my password or the security questions so I created a new account but can't get the old one deleted and I am trying to down load apps on my phone but can't because I need to delete

  • How to get TDS Vendors list with name

    Hellow Friends,      I want to get only TDS vendors list with Respective names.I have used Table LFBW.There i am getting only TDS Vendor codes list not comming with names. Is there any Table or T.Code or Report to get TDS Vendors list with names? Ple

  • Can I get information regarding the client browser using JSP

    can I get information regarding the client browser using JSP. like.. name, screen resolutions, font type, screen width and height of the browser etc., if possible then please give me the samples.. thanks,

  • IPhoto 9.01 update - a cautionary tale

    Info only - no answer required. I upgraded from iPhoto 8 to iPhoto 9 with the iLife 11 pack and it was fine. The library of about 7000 pictures upgraded very quickly too. A couple of days ago I allowed Software Update to update iPhoto to 9.01 and it