Java program in XP - Please Help

Hi, I am not sure if I am in the right fourm. I am not a developer, but a network engineer trying to help out my wife. My wife uses a java program to monitor the company she works for web site, which is not linked to a web browser. When she received the java program, it came with Java 1.2.2. Our PC had Windows 98 installed. I purchased a new machine, with Windows XP on it, and installed the java program and JRE on to it. The program does not work. The programmer who wrote the program was fired a few months ago, so I started looking through the internet, and the Sun fourms for a solution. First, the XP machine does not have Microsoft VM on it. Second, I upgraded the java to 1.4.1_02, following the instructions, still with no success. There was a suggestion to dual boot with Windows 98, but I really do not want to do that. What happens is - when you log in to the program, it just freezes. It does not go into the server. Any help is greatly appreciated.

Possible reasons for the program hanging up
1) The version of the VM on the machine is not correct.
2) Even if the version is correct and correctly installed, can you please check whether the PATH and CLASSPATH variables are set correctly on the machine where you are running the program.
3) I use WINXP as well with the latest version of VM downloaded from Sun and NOT Microsoft.
Hopefully this might solve the issue.

Similar Messages

  • Photoshop Elements 8. "Could not use Clone Stamp Tool because of a program error."  Please help.

    Photoshop Elements 8.  "Could not use Clone Stamp Tool because of a program error."  Please help.

    Try this:
    Open your picture file
    Access the clone stamp tool
    Hold down the ALT key on the keyboard and left click on the area from which you wish to clone, then release the ALT key, and click to place the pixels at the destination
    TIPS:
    It is a good idea to open a blank layer at the top in the layers palette, and do the cloning on this layer. Be sure that "sample all layers" at the top is checked. You can change the layer opacity if necessary
    Use the bracket keys next to the letter p on the keyboard to increase & decrease the size of the cursor
    Let us know  how you make out with the error message now.

  • Hello Since yesterday evening. My itunse program does not work my mobile. Note  I update the program to ios7 Please help me Thank you

    hi
    Hello
    Since yesterday evening. My itunse program does not work my mobile.
    Note
    I update the program to ios7
    Please help me
    Thank you

    I found this strange glitch that wouldn't let me open my iTunes Store. I tried all the reset options and still iTunes would close a second after it opened. I fixed this. Instead of using the iTunes Store icon on your home page to open it. Go into music and click on store. It will say "Cannot Connect To Store". Just tap ok. Then tap on "featured" on the bottom of the screen. That will take you to the store front page. After that is loaded. Back out and the icon for iTunes Store on the home page should work just fine. Hope that helps.

  • I recently downloaded Adobe Premiere Element after testing the trial version...now I am having difficulty registering the program...please help...

    I recently downloaded Adobe Premiere Element after testing the trial version...now I am having difficulty registering the program...please help...

    Premiere Elements is not part of the Cloud, I will move this to that forum
    Premiere Elements Forum http://forums.adobe.com/community/premiere_elements
    Select a topic, then click I STILL NEED HELP to start Premiere Elements Online chat
    -http://helpx.adobe.com/contact.html?step=PRE

  • Hi, I don't have sound on my MacBook Air and the Mail program never respond, please help me out!

    Hi, I don't have sound on my MacBook Air and the Mail program never respond, please help me out!

    Hi Mr. Shahid,
    Thanks for visiting Apple Support Communities.
    Start with the troubleshooting tips in this article if you don't hear sound from your MacBook Air:
    OS X Mavericks: If you can’t hear sound from your speakers
    http://support.apple.com/kb/PH13841
    Best,
    Jeremy

  • How do i invoke Windows APIs in JAVA??? Please help.

    Is there a way to invoke Windows APIs in Java??? Please help......Thankx

    Short answer, you don't. However, you should look at Java Native Interface (JNI) very closely. It will allow you to wrap the Win32 API calls so that Java can call your wrapper methods. Another side to it, although not necessarily related to your question is a JavaBeans to COM bridge that you may want to look into as well, though it's probably not going to be a solution for what you're wanting to do right now.

  • Error while loading program...Please help.. :)

    Hello All,
    Have written a HTMLB program (DBConnect.java) which takes data from database and retrieves it in TableView.
    But it does not work.
    Get this error:
    Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/htmlb/page/PageProcessorComponent
    Loader Info -
    ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@1e72d6]
    Parent loader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@9cf322]
    References:
       not registered!
    No resources !
    The error occurred while trying to load "com.sap.sample.database.DBConnect".
         at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:389)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:219)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
         ... 30 more
    I have also included the PageProcessorComponent class file in my project properties.
    Please help....Whatz wrong.
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
    Change the PrivateSharingReference to SharingReference in the xml
    <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
    ==========
    Change your xml to
    <?xml version="1.0" encoding="utf-8"?>
    <application>
    <application-config>
    <property name="SharingReference" value="com.sap.portal.htmlb"/>
    </application-config>
    <components>
    <component name="DBConnect">
    <component-config>
    <property name="ClassName" value="com.sap.sample.database.DBConnect"/>
    </component-config>
    <component-profile>
    <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld" />
    </component-profile>
    </component>
    </components>
    <services/>
    </application>

  • Java programming applet issue newbie help

    hello
    i am a student taking an intro to OOP course using java. i have textMate and blue J as java editing environments. i have successfully managed a few lessons but now i am having trouble with applets. my applet source code will run in blue j but not in textmate and i think the reason has to do with the applet extension. first when i run the program successfully in blue jay it utilizes the sun.applet.main environment to display the applets output. but in textmate the identical code generates an error which i finally have a some information about why?
    the error in textmate reads
    :exception in thread "main" java.lang.NoSuchMethodError: main
    i am not sure whether this has to do with the import java.awt.*: or just the public void paint(Graphics g) method (code Below)
    the eventual intended output of the applet is to a web browser via an html document which calls the java applet but when i run this html document both firefox and safari display blank pages.
    i am on macpro with the latest java version - just downloaded last week
    is there some unique import statement to utilize import java.awt.*;
    import java.applet.*; in mac os or ???
    BTW the smile.gif is in the project folder with the java document
    thanks for any help
    Chapter 2: Welcome to My Day
    Programmer: rafe McDonald
    Date: November 5, 2009
    Filename: WelcomeApplet
    Purpose: This project displays a smile graphic, welcome message, the user's
    name, and the system date in an applet.
    import java.util.Date;
    import java.awt.*;
    import java.applet.*;
    public class WelcomeApplet extends Applet
    public void paint(Graphics g)
    Date currentDate = new Date(); //Date constructor
    g.drawString("Welcome to my day!",200,70);
    g.drawString("Daily planner for Rafe McDonald",200,100);
    g.drawString(currentDate.toString(),200,130);
    Image smile; //declare an Image object
    smile = getImage(getDocumentBase(), "smile.gif");
    g.drawImage(smile,10,10,this);
    setBackground(Color.cyan);
    }

    http://discussions.apple.com/thread.jspa?threadID=2226853&tstart=0
    i realized the other section of this forum is geared toward java inquiries so if anyone has some ideas please post there
    thanks

  • Runtime Exception.... NOOB JAVA PROGRAMMMER HERE. PLEASE HELP!

    Hey Oracle ppl,
    I'm a real n00b Java programmer, just learning Java through SL-275-SE6. So, here's a small program that I created, but I get this runtime exception while running it in NetBeans v7.1:
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
    Here's the source code:
    import java.io.*;
    import java.sql.*;
    public class Expenses {
    void DataBaseInteract() {
    try {
    Connection con;
    Statement st;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:Expenses");
    st = con.createStatement();
    st.execute("create table Expenses(DateofTransaction String, Amount float, Remarks String)");
    DataInputStream in1 = new DataInputStream(System.in);
    System.out.println("Enter today's date, in the format DD/MM/YYYY.");
    String DateofTransaction = (in1.readLine());
    System.out.println("Enter today's transaction amount, ");
    float Amount = Float.parseFloat(in1.readLine());
    System.out.println("Enter remarks, if any:");
    String Remarks = (in1.readLine());
    st.executeUpdate("insert into Expenses values("+DateofTransaction+", "+Amount+", "+Remarks+")");
    con.close();
    catch(Exception e) {
    System.out.println(e);
    public static void main(String[] args) throws Exception {
    Expenses obj = new Expenses();
    obj.DataBaseInteract();
    Please help! I really want this program up and running!!!

    better you can get help from http://forums.netbeans.org/
    eventhough.
    here some inputs,
    http://www.justskins.com/forums/too-few-parameters-expected-80937.html

  • Inventory Program Part 6 - Please Help

    My last assignment is due in about two hours and I am completely lost. I have been trying to figure out how to add functionality to my JButtons all week.
    I have added the following buttons but they do not work: save, delete, modify, save, search, add.
    I also need to add a company logo. I hope someone can please help me understand.
    Here is my current code:
    public class DVD {
         protected int itemNum;     // item number
         protected String name;     // item name
         protected int unit;          // number of units of the item
         protected double price;     // price of each unit
         public DVD() {}          // Default constructor
         public DVD(int itemNum, String name, int unit, double price) {
              // Constructor with input
              this.itemNum = itemNum;
              this.name = name;
              this.unit = unit;
              this.price = price;
         // Getter and Setter methods
         public void setItemNum(int itemNum) {
              this.itemNum = itemNum;
         public int getItemNum() {
              return itemNum;
         public void setName(String name) {
              this.name = name;
         public String getName() {
              return name;
         public void setUnit(int unit) {
              this.unit = unit;
         public int getUnit() {
              return unit;
         public void setPrice(double price) {
              this.price = price;
         public double getPrice() {
              return price;
         // Get the value of the inventory
         public double calculateInventory() {
              return unit * price;
         // Get the value of all inventory
         public static double calculateEntireInventory(DVD [] prod) {
              double sum = 0;
              for (int i = 0; i < prod.length; i++)
                   sum += prod.getUnit() * prod[i].getPrice();
              return sum;
         // Sort inventory by name
         public static Movie [] sortInventory(Movie [] prod) {
         boolean doMore = true;
    while (doMore) {
    doMore = false; // last pass over array
    for (int i=0; i<prod.length-1; i++) {
    if (prod[i].getName().compareTo(prod[i+1].getName()) > 0) {
    Movie temp = prod[i]; prod[i] = prod[i+1]; prod[i+1] = temp;
    doMore = true;
         return prod;
    public class Movie extends DVD{
         //instant variable
         protected String dvdTitle;
    public Movie(int itemNum, String name, int unit, double price, String dvdTitle) {
         super(itemNum, name, unit, price);
         this.dvdTitle = dvdTitle;
    public String getdvdTitle() {
              return dvdTitle;
         // Get the value of the inventory
         public double calculateInventory(DVD[] dvd) {
              double sum = 0;
              for (int i = 0; i < dvd.length; i++)
                   sum += 0.05* dvd[i].getUnit() * dvd[i].getPrice();
              return sum;
    public double calculateRestockFee(){
         return price*0.05;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.text.DecimalFormat;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    public class Inventory extends JApplet {
         private JLabel itemNumLabel = new JLabel("Item Number: ");
         private JTextField itemNum = new JTextField();
         private JLabel itemNameLabel = new JLabel("Category: ");
         private JTextField itemName = new JTextField();
         private JLabel unitLabel = new JLabel("Number of Units: ");
         private JTextField unit = new JTextField();
         private JLabel priceLabel = new JLabel("Unit Price: ");
         private JTextField price = new JTextField();
         private JLabel dvdTitleLabel = new JLabel("DVD Title: ");
         private JTextField dvdTitle = new JTextField();
         private JLabel rfLabel = new JLabel("Restocking Fee");
         private JTextField rfValue = new JTextField();
         private JLabel inventoryLabel = new JLabel("Inventory value: ");
         private JTextField inventoryValue = new JTextField();
         private JLabel totalValue = new JLabel();
         private JButton previous = new JButton("Previous");
         private JButton next = new JButton("Next");
         private JButton last = new JButton("Last");
         private JButton first = new JButton("First");
         private JButton add = new JButton("Add");
         private JButton delete = new JButton("Delete");
         private JButton modify = new JButton("Modify");
         private JButton save = new JButton("Save");
         private JButton search = new JButton("Search");
         private JLabel totalInventory = new JLabel();
         private Movie[] DVDArray = null;
         private int current = 0;
         private int total = 0;
         class ButtonListener implements ActionListener {
              public void actionPerformed(ActionEvent e) {
                   JButton button = (JButton) e.getSource();
                   if (button == previous) current = (current + total - 1) % total;
                   if (button == next) current = (current + 1) % total;
                   if (button == last) current = (current = 5) % total;
                   if (button == first) current = (current =0) % total;
                   if (button == modify) itemName.setVisible(true);
         private void display() {
              Movie movie = DVDArray[current];
              DecimalFormat df=new DecimalFormat("$#.00");
              itemNum.setText(movie.getItemNum()+""); itemNum.setEditable(false);
              itemName.setText(movie.getName()); itemName.setEditable(false);
              unit.setText(movie.getUnit()+""); unit.setEditable(false);
              price.setText(df.format(movie.getPrice())); price.setEditable(false);
              dvdTitle.setText(movie.getdvdTitle()); dvdTitle.setEditable(false);
              rfValue.setText(df.format(movie.calculateRestockFee())); rfValue.setEditable(false);
              inventoryValue.setText(df.format(movie.calculateInventory())); inventoryValue.setEditable(false);
              totalValue.setText("The total inventory value is " + df.format(DVD.calculateEntireInventory(DVDArray)));
         final JLabel label; // logo
    //JLabel constructor for logo
    Icon logo = new ImageIcon("C:/logo.jpg"); // load logo
    label = new JLabel(logo); // create logo label
    label.setToolTipText("Company Logo"); // create tooltip
         public void init() {
              DVDArray = new Movie [6];
              // Add DVD items into the list
              DVDArray[0] = new Movie (15, "Action", 65,12.00,"Frequency");
              DVDArray[1]= new Movie(33, "Comedy", 12, 21.00, "Norbit");
              DVDArray[2] = new Movie(13, "Disney",33,14.00,"Flubber");
              DVDArray[3] = new Movie(22, "Drama", 48, 18.00,"Citizens Kane");
              DVDArray[4] = new Movie(47, "Horror", 42, 19.00,"Pycho");
              DVDArray[5] = new Movie(26, "Sci-Fi", 27, 26.00,"The Abyss");
    total = 6;
    current = 0;
    ButtonListener buttonListener = new ButtonListener();
    previous.addActionListener(buttonListener);
    next.addActionListener(buttonListener);
    last.addActionListener(buttonListener);
    first.addActionListener(buttonListener);
    add.addActionListener(buttonListener);
    delete.addActionListener(buttonListener);
    modify.addActionListener(buttonListener);
    save.addActionListener(buttonListener);
    search.addActionListener(buttonListener);
    JPanel up = new JPanel();
    up.setLayout(new GridLayout(7,2));
    up.add(itemNumLabel); up.add(itemNum);
    up.add(itemNameLabel); up.add(itemName);
    up.add(dvdTitleLabel); up.add(dvdTitle);
    up.add(unitLabel); up.add(unit);
    up.add(priceLabel); up.add(price);
    up.add(rfLabel); up.add(rfValue);
    up.add(inventoryLabel); up.add(inventoryValue);
    display();
    JPanel middle = new JPanel();
    middle.setLayout(new FlowLayout());
    middle.add(previous); middle.add(next);middle.add(last);middle.add(first);
    middle.add(add);middle.add(delete);middle.add(modify);middle.add(search);
    middle.add(save);
    JPanel down = new JPanel();
    down.setLayout(new BorderLayout());
    down.add(BorderLayout.CENTER, totalValue);
    JPanel all = new JPanel();
    all.setLayout(new BoxLayout(all, BoxLayout.Y_AXIS));
    all.add(up);
    all.add(down);
    all.add(middle);
    Container cp = getContentPane();
    cp.add(BorderLayout.NORTH, all);
    public static void main(String args []) {
    JApplet applet = new Inventory();
    JFrame frame = new JFrame("DVD Inventory");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setResizable(false);
    Container cp=frame.getContentPane();
    cp.add(applet);
    frame.setSize(600,330);
    applet.init();
    frame.setVisible(true);
    // Icon logo = new ImageIcon(getResource( "logo.gif" ) );
    } //end main
    } // end class Inventory                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Your code has some good spots and some bad spots or problems, and I'll try to hit on some of the more obvious problems (the ones that I can see immediately) so that you can try to fix it.
    1) Your DVD class overall looks pretty good until we get to the end. The method public static double calculateEntireInventory(DVD[] prod) shouldn't be part of the DVD class since it has nothing to do with an individual DVD (which is what this class is all about) and everything to do with a collection of DVDs. You should move this to another class, a non-GUI Inventory class.
    2) The method public static Movie[] sortInventory(Movie[] prod) also shouldn't be in your DVD class for the same reason as noted above, and also because it deals with Movie objects which are objects that descend from DVD. The parent really shouldn't have to depend on the child class to function, and leaving this in would likely break your code at some time or another. Again, put this in a non-GUI Inventory class. You probably should use a DVD parameter, not a Movie parameter. Another option is to have your DVD and Movie classes implement the Comparable interface, since if you do this, sorting any collection of these is a breeze by using Arrays.sort(...) or Collections.sort(...).
    3) Again (starting to sound like a broken record) the method public double calculateInventory(DVD[] dvd) shouldn't be part of the Movie class for the very same reasons noted above.
    4) You need to create a non-GUI Inventory class, shoot, you can call it NonGuiInventory if you'd like (though I'd call it Inventory and call the GUI class GuiInventory) that has all the important functionality that the GUI will display. This class holds a collection of DVDs (or Movies), has an int index that points to the current Movie of interest, has a next() method that advances this index and returns the next Movie in the collection (or the first if you're at the last), has a previous() method that does the opposite, has a first() method that sets the index to zero and returns the first Movie in the collection, a last() method that advances the index to the size of the collection - 1 and returns this Movie, and has a sort method that sorts the collection. You can even have add(Movie) and a remove(Movie) methods here. By separating this functionality from the GUI, you are able to simplify your task by dividing and conquering.
    5) Finally you can display all this with your InventoryGUI class that uses the above class as its model, displaying the current Movie that is pointed to by the Inventory's index, that when the next() method is called gets the Movie returned by it and displays it.
    Note that if you go this route, you'll need to do some major re-writes of the GUI class, but it will improve your program greatly.
    HTH and good luck

  • Java mail api error- Please Help

    Hi, i have set up an smtp server on my local machine. i have given the smtp host address as 127.0.0.1
    I am getting the following error though. please help me out with the problem
    C:\trainee>java Emailer
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
    at javax.mail.Transport.send0(Transport.java:169)
    at javax.mail.Transport.send(Transport.java:98)
    at Emailer.sendEmail(Emailer.java:151)
    at Emailer.main(Emailer.java:194)
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
    ... 5 more
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    ... 6 more
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    ... 6 more

    It's a configuration error in your smtp server.
    See the JavaMail FAQ for more information.

  • CALL A JAVA PROGRAM FROM ABAP -- NEED HELP

    Hi all,
    Can somebody tell me how to call a java xml code from an ABAP program? First let me know if at all, is it possible to call a java program from SAP that is from an ABAP executable progam?
    Please suggest me in this. All your inputs in this is valuable to me and highly appreciated.
    Thanks in advance,
    Vaishnavi Varadarajan

    Hi,
    Previous explanation i gave is not correct.
    ABAP web services expose the function modules outside R/3, so that other technologies like Java can consume that webservice and read the data in R/3 using the function module.
    For your requirement, create a Java web service to read the XML. Consume this webservice in ABAP. This way you can read the XML from ABAP.
    Regards
    Srikanth KV.

  • Java.lang.UnsatisfiedLinkError - Urgent please help

    Hi,
    I want to thank you for looking into this problem first.
    I have a very headache problem for the past week. I have an applet that uses JNI to call an existing dll to get the system resources. It works fine on windows 2000 server with IE 5.0. The dll get loaded fine and the function call is working fine.
    However, now I tried to move the applet to an application for me to test with jbuilder, I have problems and I get the error java.lang.UnsatisfiedLinkError: ooInit.
    Does anyone know why this is happening in Jbuilder. I traced to see if the dll get loaded with System.loadlibrary("dll"), and it seems to load the library. But when I call the ooInit() native method, it throws that exception.
    Please help. This will be greatly appreciated and I can do something for you guys in return.
    Thank you so much.
    Regards,
    guna

    Here, for the benefit of others who might search for this, is my approach to resolving this error.
    Two things to note:
    1. I didn't worry about paths, etc. - I was in a hurry so I just copied files into required directories.
    2. I named both the Java and C files "mainFrame". I have not subsequently checked to see if this is required, since it worked for me.
    Summary of getting jni routine to work with Jbuilder:
    created Java project mintest, two principle classes - mainFrame and WelcomeFrame
    key code fragments:
    --------------------------------------- mainFrame --------------------------------------------------
    package mintest;
    import javax.swing.JLabel;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import java.awt.GridBagLayout;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseAdapter;
    public class mainFrame {
        boolean packFrame = false;
        WelcomeFrame frame = new WelcomeFrame();
        public static native int cRoutine(int value);
        static {System.loadLibrary("mainFrame"); }
    public mainFrame() {
        //Pack frames that have useful preferred size info, e.g. from their layout
        //Validate frames that have preset sizes
        if (packFrame) {
          frame.pack();
        else {
          frame.validate();
        // Center the frame
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension frameSize = frame.getSize();
        if (frameSize.height > screenSize.height) {
          frameSize.height = screenSize.height;
        if (frameSize.width > screenSize.width) {
          frameSize.width = screenSize.width;
        frame.setLocation( (screenSize.width - frameSize.width) / 2,
                          (screenSize.height - frameSize.height) / 2);
        frame.setVisible(true);
        try {
          jbInit();
        catch (Exception ex) {
          ex.printStackTrace();
    * Main method
    * @param args String[]
    static public void main(String[] args) {
      try {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      catch (Exception e) {
        e.printStackTrace();
      new mainFrame();
            cRoutine(1);     // this works at this point...
            System.out.println("cRoutine - should be 4: " + cRoutine(3));
      private void jbInit() throws Exception {
    }--------------------------------------- end of mainFrame --------------------------------------------------
    --------------------------------------- (portions of) WelcomeFrame --------------------------------------
    package mintest;
    import java.awt.*;
    ..... more imports, setting up of window, buttons, etc. .... iValue is an integer....
      public void jToggleButton1_mousePressed(MouseEvent e) {
          jToggleButton1.setText("cRoutine in: " + iValue + "  out: " + (iValue = 
                                   mainFrame.cRoutine(iValue)));
      }--------------------------------------- end of (portions of) WelcomeFrame -----------------------------
    mainFrame was compiled with Jbuilder into a class file, makeFrame.class. That was copied into
    the C:\Borland\JBuilder2005\jdk1.4\bin directory, and javah was run to create the C header file:
    javah -jni mainFrame
    This generated:
    --------------------------------------- mainFrame.h generated by javah ----------------------------------
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class mainFrame */
    #ifndef _Included_mainFrame
    #define _Included_mainFrame
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class:     mainFrame
    * Method:    cRoutine
    * Signature: (I)I
    JNIEXPORT jint JNICALL Java_mainFrame_cRoutine
      (JNIEnv *, jclass, jint);
    #ifdef __cplusplus
    #endif
    #endif--------------------------------------- end of mainFrame.h generated by javah -------------------------
    OKAY, HERE COMES THE CRITICAL STEP. DESPITE THE FACT THE COMMENT SAYS DO NOT EDIT, THIS FILE HAS TO BE EDITED TO INCLUDE THE PACKAGE NAME, LIKE THIS:
    --------------------------------------- modified mainFrame.h ----------------------------------
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class mainFrame */
    #ifndef _Included_mainFrame
    #define _Included_mainFrame
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class:     mainFrame
    * Method:    cRoutine
    * Signature: (I)I
    JNIEXPORT jint JNICALL Java_mintest_mainFrame_cRoutine
      (JNIEnv *, jclass, jint);
    #ifdef __cplusplus
    #endif
    #endif--------------------------------------- end of modified mainFrame.h -------------------------
    This file is then copied to the C:\Borland\BCC55\Include directory. The C code source is placed
    in the C:\Borland\BCC55\Bin directory. Here is the C code - note that it has the package name in
    the function name:
    --------------------------------------- mainFrame.c ----------------------------------
    #include <mainFrame.h>
    #include <stdio.h>
    #include <string.h>
    /* must link gpib-32.obj for Windows*/
    #include <windows.h> /*if using Windows */
    void main(){
    JNIEXPORT jint JNICALL
    Java_mintest_mainFrame_cRoutine(JNIEnv *env, jobject callingObj,jint invalue)
    return (jint) invalue+1;
    }--------------------------------------- end of mainFrame.c -------------------------
    This is now compiled on the command line (from the C:\Borland\BCC55\Bin directory) using:
    bcc32 -tWD -I\Borland\bcc55\include -L\Borland\bcc55\lib mainFrame.c
    Parameters: -tWD creates Windows DLL file
    -I is path to include directory (this is where mainFrame.h is located)
    -L is path to library directory
    Compilation produces mainFrame.dll in the C:\Borland\BCC55\Bin directory. This is copied to the C:\Borland\JBuilder2005\jdk1.4\jre\bin directory so Jbuilder can find it. Then it works.
    So, the key step is adding the package name after javah has generated the header file (and similarly using the package name in the .c source file.)
    Hope this is useful.

  • I can not update my iphoto program... please help

    when I download the latest version (604), I get a message that tell me
    "iPhoto Updater cannot be installed on this computer. An eligible iPhoto application could not be found in /Applications. Well there is an iPhoto 2.0 program there. Do I have to buy the latest version???
    Please help..
    Elizabeth
    G5, G4   Mac OS X (10.4.6)  

    Yes, in order to do the free up update, you must first purchase the upgrade. Buy iLife 06, and you'll get iPhoto 6, which you then want to update to 6.0.4. You'll also get the latest versions of iMovie, iDVD, iTunes, iWeb, and GarageBand. the iLife Suite is great fun. Check out the iLife suite at http://www.apple.com/ilife/
    And be sure to check the system requirements for RAM, etc.

  • Java.lang.NoClassDefFoundError . Please help

    Hi everyone!
    I have this problem...i create a small java program, like "hello world". It is ok to compile and run it. The directory structure is as follows:
    /some/files/mypackage/myclass.java
    if i put in my source pacake mypackage/myclass, then i can compile the program, but when i try to run it i get this error:
    java.lang.NoClassDefFoundError
    Exception in thread "main" java.lang.NoClassDefFoundError: myclass (wrong name: mypackage/myclass)
    Thanks!!!

    You can always search the forum for answers - just put "wrong name" in the search box.
    In your case, you entered "java myclass" but the class that the jvm found was named mypackage/myclass. In other words, the myclass class is defined to be in the mypackage package so the fully qualified name of the class is mypackage/myclass (or mypackage.myclass). Your command needs to be "java mypackage/myclass" Most likely, you need to "cd /some/files/" before entering the command to run it.

Maybe you are looking for