Problem with package in Eclipse

I am doing in Java codes. There is big problem with those error:
package org.eclipse.emf.ecore.xml.type.internal;What I should to do that? Do you think I need to download some package from somewhere for Eclipse?
I have already Eclipse. Please help me how to do that. Thanks.

I wrote codes in there. But there is some errors in there because they said that I don't have package exist in Eclipse. I have no idea why.
Those lists below got red line:
package org.eclipse.emf.ecore.xml.type.internal;
import org.eclipse.emf.common.util.WrappedException;
import org.eclipse.emf.ecore.xml.type.InvalidDatatypeValueException;
import org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil;I tried to run it and the errors said:
InvalidDatatypeValueException cannot be resolved to a type.
The declared package "org.eclipse.emf.ecore.xml.type.internal" does not match excpected package"
The import org.eclipse cannot be resolved
WrappedException cannot be resolved to a type
XMLTypeUtil cannot be resolved{code}
What is wrong with it? Do you think there is missing plugin package or what? Where can I find a package for that?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Rather odd problem with package naming...

    Background info:
    I'm working on a web-based application, on a Tomcat server. Classes (and packages) must be in a subfolder of WEB-INF/classes of the app's root. So the packages are in WEB-INF/classes/com/<package>.
    The older packages are in com/gestion (for the package com.gestion ) and the newer ones are in com/incsolution/<various> where <various> can be either chart, util or pgm - following convention more closely.
    OK! We have a class called SqlBean in com.gestion, which starts off like so:package com.gestion;
    import java.sql.*;
    import javax.sql.*;// stock pour pooled connection c'est dans javax.sql
    import javax.naming.*;
    import java.io.*;
    public abstract class SqlBean
        ...rest of code...
    }and is used in several other objects, like TransferQBean.java, which is in the same package:
    package com.gestion;
    import java.sql.*;
    public class TransfertQBean extends SqlBean
       ...rest of code...
    }Now, i've been working (with others) on this project for 2 years now, and up until last week, there was no problem with the way things were called. Come Monday (April 11), the classes won't compile any more - gives me this error:
    classes/com/gestion/TransferQBean.java [5.1] cannot resolve symbol
    symbol : class SqlBean
    location: class com.geastion.TransferQBean
    public class TransferQBean extends SqlBean
    ....................................................................^
    Now if i add classes to com.gestion to get...
    package classes.com.gestion;
    import java.sql.*;
    public class TransfertQBean extends SqlBean
       rest of code...
    }and same for SqlBean...
    package classes.com.gestion;
    import java.sql.*;
    import javax.sql.*;// stock pour pooled connection c'est dans javax.sql
    import javax.naming.*;
    import java.io.*;
    public abstract class SqlBean
       ...rest of code...
    }...it works, but that's not how it's supposed to be. What puzzles me the most is how this came about suddenly.
    Anyone have an idea what might be causing this? AFAIK, it's abnormal...
    JH

    classes/com/gestion/TransferQBean.java [5.1] cannot resolve symbol
    symbol : class SqlBean
    location: class com.geastion.TransferQBean
    public class TransferQBean extends SqlBean
    ....................................................................^The solution to your problem is simply that your classpath is incorrect at compile-time. How you fix that depends on how you compile (from an IDE, from the command-line javac tool, etc). But whatever you do, don't make your solution depend on a system environment CLASSPATH variable.

  • Problem with packageing and deploying a sample application

    HI,
    I have tried to download and install the server in my system. I am able to deploy a sample application using autodeploy utility.
    But when i tried to package a new sample application and deploy i am getting 404 error. For application server i have used 7070 port and not the default 8080 port will this a problem to package & deploy sample application provided with this software.
    The error is as below:
    HTTP Status 404 - /hello1
    type Status report
    message /hello1
    description The requested resource (/hello1) is not available.
    Sun-Java-System/Application-Server

    Btw, verify that the url you are trying to access is correct. For instance, assuming you deploy app. without --contextroot option. By default,  the url is http://<host>:<port>/<web module name>/<value of url-pattern in web.xml> if your app contains servlet. If your app has jsp then it's http://<host>:<port>/<web module name>/<value of url-pattern in web.xml>/<name of jsp>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem with Packaging Material Type

    Hello all Gurus,
    I have a problem with a packaging material type that I have created copying the standrad Packaging material type LEIH. I created a new packing material type ZPAC - Packaging Material copying LEIH.
    I then created a new material master record using this new material type ZPAC.
    When I am using this material for packing in outbound delivery document - VL01N, I am getting the following strange error message:
    20333 does not have packaging material type and is therefore not a pack.mat.
    Please suggest me why this error is coming and how I can rectify this error. Is there any further configuration that I need to do for packaging material types??? Kindly suggest.
    Thanks and Regards,
    Umakanth.

    Hi,
    Material type is not enough, you have to maintain proper master data as well as config.
    At least please maintain value in MARA-VHART for the packaging material. Please also check these links how HUM works:
    http://www.sap-img.com/sap-hu.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/c8/a44b779f3211d2858d0000e81ddea0/frameset.htm
    Regards,
    Csaba

  • Problem with Package Applications

    Ok, I'm trying to migrate an Apex Application from one server to a newer server....
    My custom app I used the theme from Go Live CheckList samples....
    Well, when trying to install that application I get 'Insufficient space to install application ' with a BIG red X...
    I was able to install other Package Application except for the one I need and now my application errors out because of
    some shared Themes....
    At first I thought it was a DB thing so I downgraded back to 10g from 11....but that didn't help...
    Apex works fine...
    Other samples work fine...
    Version Apex 4.2.2 and Oracle XE 10g...

    Yes,
    It errors out in 11g XE and when it was the only Application installed...
    I know the error sounds like the OS but I can't see it being the issue since the
    other server has less space and more application on it...
    Plus the database is empty ....
    The other one is Apex 4.2.1 .. I think there is a problem with 4.2.2 packaged applications..

  • Hai ,problem with packages

    Hai all,
    i got a problem with user defined packages .i have one class under one package "sg.km" n the class name is kmc.class n i want to use that sg.km.kmc in some another class that is also a part of sg.km package .i hope i'll get reponses to my prob asap.
    thanks in advance
    yours
    srinu kumar reddy

    You should not need to import a class that is in the same package.
    You did not post enough information for me to give you a good answer. You should always post an error message along with any command you entered. All you said was, "i got a problem." We don't know if your problem is with compiling, running, jar file, applet, etc.
    You need to have a directory structure that matches your package. The kmc.class file a sg\km directory path. For example, c:\myjava\classes\sg\km\kmc.class. Then you need c:\myjava\classes directory in your Classpath both for compiling and running.

  • Problem with packages, part duex

    Solaris 11 x86 under VBox
    Continuing from problem adding packages
    I got the mechanics of adding packages working and successfully installed the packages for x11 support.  Next I need to add some packages to install Oracle database.  Packages are listed in the database Installation Guide.
    First, check to see if the required packages are already installed:
    root@vbsolsrv02:~# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibms SUNWsprot   SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
    system      SUNWarc   Lint Libraries (usr)
    system      SUNWbtool CCS tools bundled with SunOS
    system      SUNWhea   SunOS Header Files
    system      SUNWlibC  Sun Workshop Compilers Bundled libC
    system      SUNWlibms Math & Microtasking Libraries (Usr)
    system      SUNWsprot Solaris Bundled tools
    system      SUNWtoo   Programming Tools
    ERROR: information for "SUNWi1of" was not found
    ERROR: information for "SUNWi1cs" was not found
    ERROR: information for "SUNWi15cs" was not found
    ERROR: information for "SUNWxwfnt" was not found
    Not being familiar with the interpretation of the error msgs (or much else with Solaris) I figured it wouldn't hurt to just try to install them.
    root@vbsolsrv02:~# pkg install SUNWi1of
    pkg install: The following pattern(s) did not match any allowable packages.  Try
    using a different matching pattern, or refreshing publisher information:
            SUNWi1of
    root@vbsolsrv02:~# pkg install SUNWi1cs
    No updates necessary for this image.
    root@vbsolsrv02:~# pkg install SUNWi15cs
    No updates necessary for this image.
    root@vbsolsrv02:~# pkg install SUNWxwfnt
    pkg install: The following pattern(s) did not match any allowable packages.  Try
    using a different matching pattern, or refreshing publisher information:
            SUNWxwfnt
    root@vbsolsrv02:~#
    at this point, repeating the pkginfo command produced exactly the same results as before.
    So, what am I to learn from this and how should I proceed from here?

    PascalKreyer-Oracle wrote:
    These packages are requirement for Solaris 10. As these packages are not available for Solaris 11, please check again in the database installation guide to determine which packages are really necessary.
    Ah, the devil is always in the fine print.  I am planning on installing Oracle 11.2, so from the Database Quick Installation Guide
    11g Release 2 (11.2) for Oracle Solaris on x86-64,  the packages were listed under this statement:
    The following packages (or later versions) are required for Oracle Database 11g Release 2 (11.2) on Oracle Solaris 10:
    I overlooked the proviso "on Oracle Solaris 10".  There was no separate listing for Solaris 11.
    Also, going back and double checking the entire section on software requirements, I see that only Oracle 11.2.0.3 or later is supported on Solaris 11.  So if I want to install Oracle 11.2.0.1, I'll need to drop back to solaris 10.
    Thanks for the focus.

  • Re: itunes won't install due to problem with package.

    I've been having a similar problem--
    Here are the exact words: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908." fyi, the message came up just after the installer began "updating component registration," if that is of any use. I've tried re-downloading it and restarting the computer. I've tried what the customer service reps told me which was to stop the iPod service and the apple mobile device service during installation but i couldn't find "apple mobile device" on the list. so i tried just stopping "iPod service". that didn't work. please, please help I am at my wit's end with this.
    Message was edited by: evenstar675

    Checking on something. In the course of your troubleshooting to date, have you worked through the general troubleshooting procedures (listed below the heading: *General Installation Troubleshooting*) from the following document?
    Trouble installing iTunes or QuickTime software in Windows

  • Itunes won't install due to problem with package.

    I went to upgrade my itunes to the 7.3.2 and it froze in the middle of it. I restarted my computer and then my itunes won't show up nor download. I tried to use the apple installer and it gets most of the way through when the following message appears: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2330." I have tried installing the program on it's own using tools--> download only and that did not work. I also tried using a different user account and that also did not work. Any information would be greatly appreciated. I am using a PC and have windows XP. Thank you.

    Hi Royb,
    first i excuse myself for my english...its not too bad but sometimes i make mistakes... however
    perhaps you can help me with my problem as well. i did the log file as well and i suppose its something to do with the ipod functions in itunes. everywhere in the logfile where the pattern "2330" matches is something like this:
    MSI (c) (A0:08) [21:33:37:187]: Note: 1: 2330 2: 23 3: C:\Programme\iPod
    MSI (c) (A0:08) [21:33:37:187]: Transforming table Error.
    DEBUG: Error 2330: Error getting file attributes: C:\Programme\iPod. GetLastError: 23
    Bei der Installation dieses Pakets ist ein unerwarteter Fehler aufgetreten. Es liegt eventuell ein das Paket betreffendes Problem vor. Der Fehlercode ist 2330. Argumente: 23, C:\Programme\iPod,
    AppSearch: Eigenschaft: EXISTINGINSTALLDIR, Signatur: Locate_EXISTINGINSTALLDIR
    AppSearch: Eigenschaft: EXISTINGIPODINSTALLDIR, Signatur: Locate_EXISTINGIPODINSTALLDIR
    in case the german language causes problems with the analysis i tried to translate it into proper english:
    MSI (c) (A0:08) [21:33:37:187]: Note: 1: 2330 2: 23 3: C:\Programme\iPod
    MSI (c) (A0:08) [21:33:37:187]: Transforming table Error.
    DEBUG: Error 2330: Error getting file attributes: C:\Programme\iPod. GetLastError: 23
    During the installation an error occured. Maybe there is a packet problem. The error code is 2330. Arguments: 23, C:\Programme\iPod,
    AppSearch: Attribute: EXISTINGINSTALLDIR, Signature: Locate_EXISTINGINSTALLDIR
    AppSearch: Attribute: EXISTINGIPODINSTALLDIR, Signature: Locate_EXISTINGIPODINSTALLDIR
    I hope this helps...
    It would be very nice if you help me, otherwise i see no other way than formationg windows...and i hate that...thats why mac is better -.-
    however plase help me and if it helps i can send u the hole logfile. =)
    thank alot!
    moe

  • Problems with package hierarchy

    If i create a simple package hierarchy like this:
    -trial
    - trial.subTrial
    and if i put an abstract class on trial, i cannot extend it on package subTrial (a strange error occur, saying that i'm not overriding the abstract methods, when in fact i am) . But if i put everything on the same package it's no problem!!
    I don�t know if this is a problem of the IDE (i'm using netbeans), i tried with a very simple example, outside of the project, to see if it was a problem with my code, and the same errors occurred, or if it's some hierarchy concept i'm violating.
    Does anyone knows anything about this?

    Nop, that's not the case!! As i said, i made a project just to try this.
    This is the code of the only 2 classes of the project:
    package trial;
    public abstract class Trial {
    abstract void function1();
    abstract void function2();
    void function3(){
    System.out.println("BLA");
    } // End of Trial Class
    package trial.subTrial;
    import trial.Trial;
    public class SubTrial extends Trial{
    void function1(){}
    void function2(){}
    }// End of SubTrial Class

  • Help: Still got problems with package

    I still got problems with my self-defined packages. My source files are all put in a directory as the package
    name suggests. The questions are:
    1. Before the classes in the package can be cited by the outside programmes, should I compile
    every sources files in the package respectively?
    2. Secondly, I want to put the .class files in another directory, such as \classes\package name, should
    I set the path mannully? If yes, how to do it?
    3. I downloaded some *.java files from Internet and put them in a directory as their package name suggested.
    However, when I run javac a.java I got error: cannot read a.java. What problem could it be?
    Thanks!

    1. Before the classes in the package can be cited by the outside programmes, should I compile
    every sources files in the package respectively?Yes, you can't run .java files. The JVM only uses the .class files, so you have to compile them.
    2. Secondly, I want to put the .class files in another directory, such as \classes\package name, should
    I set the path mannully? If yes, how to do it?You have to put the .class file in the package directory structure. You have no choice about that.
    3. I downloaded some *.java files from Internet and put them in a directory as their package name
    suggested. You need to read a lot of stuff, but start with this:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
    However, when I run javac a.java I got error: cannot read a.java. What problem could it
    be?You don't run .java files. You run .class files.

  • Problems with packages, classpath and BouncyCastle Library

    Hi everybody!
    Shortly, after adding BC's crypto library to my MOBILE (J2ME) project, when I build it returns a NoClassDefFoundError about java.math.BigInteger class.
    Its package is the same of J2SE but is included in this library. Now, this should not be a problem, 'cause java.math.BigInteger is not included in J2ME, and library's release is (I'm sure) for J2ME...I think it's a problem of classpath but I can't find a way to go on with my project!
    Please, if anybody knows where I'm wrong let me know!!!
    ...and sorry for my bad english...;-)
    b4kk3

    I think the update is buggy. Many people (inc. me) are having problems with it. Am not able to play any songs/videos .. terrible !

  • Problems with installation of eclipse

    When I try to install eclipse on my machine, It says some error and I get the following error message in the log file.
    SESSION ----------------------------------------------------------------------
    !ENTRY org.eclipse.core.launcher 4 0 Nov 18, 2005 15:49:13.621
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.RuntimeException: Could not find bootstrap code. Check location of boot plug-in or specify -boot.
         at org.eclipse.core.launcher.Main.searchForBoot(Main.java:468)
         at org.eclipse.core.launcher.Main.getBootPath(Main.java:438)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:281)
         at org.eclipse.core.launcher.Main.run(Main.java:747)
         at org.eclipse.core.launcher.Main.main(Main.java:583)
    Could anyone please help me in solving this problem.

    Which version of eclipse are you trying?
    Have you tried the eclipse web site?
    Eclipse does not require a special install. All you should need to do is unpack the zip archive. You have to unpack all of it.

  • Problem with debug servlet Eclipse 3 tomcat 5

    I have configured Eclipse 3 with Tomcat 5.0.28 and tomcatPulginV3
    but, I have problem to debug my servlet
    I have error message
    help me it is urgent
    Failed to connect to remote VM. Connection refused.
    java.net.ConnectException: Connection refused: connect
    java.net.PlainSocketImpl.socketConnect(Native Method)
    java.net.PlainSocketImpl.doConnect(Unknown Source)
    java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    java.net.PlainSocketImpl.connect(Unknown Source)
    java.net.Socket.connect(Unknown Source)
    java.net.Socket.connect(Unknown Source)
    java.net.Socket.<init>(Unknown Source)
    java.net.Socket.<init>(Unknown Source)
    org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:47)
    org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:103)
    org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:131)
    org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:75)
    org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
    org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
    org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
    org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)Thanks

    Check your packages which you are importing....

  • A problem with Package Paths.... i think

    Hey im struggling with these errors im getting.
    First i should ecplain the layout
    this is the directory im working with
    public_html>WEB_INF>classes>com
    Ok i have 3 java files in here which all compile happily until i try and put them into a package. Once i do this the DbBean,java file complains that it cannot find the other 2 files
    This is the error i get when i try to compile it
    ============================================================
    DbBean.java:108: cannot find symbol
    symbol : class Product
    location: class com.DbBean
    public Product getProductDetails(int productId) {
    ^
    DbBean.java:69: cannot find symbol
    symbol : class Product
    location: class com.DbBean
    Product product = new Product();
    ^
    DbBean.java:69: cannot find symbol
    symbol : class Product
    location: class com.DbBean
    Product product = new Product();
    ^
    DbBean.java:93: cannot find symbol
    symbol : class Product
    location: class com.DbBean
    Product product = new Product();
    ^
    DbBean.java:93: cannot find symbol
    symbol : class Product
    location: class com.DbBean
    Product product = new Product();
    ^
    DbBean.java:109: cannot find symbol
    symbol : class Product
    location: class com.DbBean
    Product product = null;
    ^
    DbBean.java:117: cannot find symbol
    symbol : class Product
    location: class com.DbBean
    product = new Product();
    ^
    DbBean.java:149: cannot find symbol
    symbol : class ShoppingItem
    location: class com.DbBean
    ShoppingItem item = (ShoppingItem) enume.nextElement();
    ^
    DbBean.java:149: cannot find symbol
    symbol : class ShoppingItem
    location: class com.DbBean
    ShoppingItem item = (ShoppingItem) enume.nextElement();
    ^
    Note: DbBean.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    ==========================================================
    The files in the directory are DbBean.java, Product.java and ShoppingItem.java
    Here is the code of each file.
    package com;
    import java.util.Hashtable;
    import java.util.ArrayList;
    import java.util.Enumeration;
    import java.sql.*;
    import com.DbBean.*;
    //import com.DbBean.Product;
    //import com.DbBean.ShoppingItem;
    import java.util.*;
    public class DbBean {
    public String dbUrl = "";
    public String dbUserName = "";
    public String dbPassword = "";
    public void setDbUrl(String url) {
    dbUrl = url;
    public void setDbUserName(String userName) {
    dbUserName = userName;
    public void setDbPassword(String password) {
    dbPassword = password;
    public Hashtable getCategories() {
    Hashtable categories = new Hashtable();
    try {
    Connection connection = DriverManager.getConnection(dbUrl, dbUserName, dbPassword);
    Statement s = connection.createStatement();
    String sql = "SELECT CategoryId, Category FROM Categories" +
    ResultSet rs = s.executeQuery(sql);
    while (rs.next()) {
    categories.put(rs.getString(1), rs.getString(2) );
    rs.close();
    s.close();
    connection.close();
    catch (SQLException e) {}
    return categories;
    public ArrayList getSearchResults(String keyword) {
    ArrayList products = new ArrayList();
    try {
    Connection connection = DriverManager.getConnection(dbUrl, dbUserName,
    dbPassword);
    Statement s = connection.createStatement();
    String sql = "SELECT ProductId, Name, Description, Price FROM Products" +
    " WHERE Name LIKE '%" + keyword.trim() + "%'" +
    " OR Description LIKE '%" + keyword.trim() + "%'";
    ResultSet rs = s.executeQuery(sql);
    while (rs.next()) {
    Product product = new Product();
    product.id = rs.getInt(1);
    product.name = rs.getString(2);
    product.description = rs.getString(3);
    product.price = rs.getDouble(4);
    products.add(product);
    rs.close();
    s.close();
    connection.close();
    catch (SQLException e) {}
    return products;
    public ArrayList getProductsInCategory(String categoryId) {
    ArrayList products = new ArrayList();
    try {
    Connection connection = DriverManager.getConnection(dbUrl, dbUserName, dbPassword);
    Statement s = connection.createStatement();
    String sql = "SELECT ProductId, Name, Description, Price FROM Products" +
    " WHERE CategoryId=" + categoryId;
    ResultSet rs = s.executeQuery(sql);
    while (rs.next()) {
    Product product = new Product();
    product.id = rs.getInt(1);
    product.name = rs.getString(2);
    product.description = rs.getString(3);
    product.price = rs.getDouble(4);
    products.add(product);
    rs.close();
    s.close();
    connection.close();
    catch (SQLException e) {}
    return products;
    public Product getProductDetails(int productId) {
    Product product = null;
    try {
    Connection connection = DriverManager.getConnection(dbUrl, dbUserName, dbPassword);
    Statement s = connection.createStatement();
    String sql = "SELECT ProductId, Name, Description, Price FROM Products" +
    " WHERE ProductId=" + Integer.toString(productId);
    ResultSet rs = s.executeQuery(sql);
    if (rs.next()) {
    product = new Product();
    product.id = rs.getInt(1);
    product.name = rs.getString(2);
    product.description = rs.getString(3);
    product.price = rs.getDouble(4);
    rs.close();
    s.close();
    connection.close();
    catch (SQLException e) {}
    return product;
    public boolean insertOrder(String contactName, String deliveryAddress,
    String ccName, String ccNumber, String ccExpiryDate, Hashtable shoppingCart) {
    boolean returnValue = false;
    long orderId = System.currentTimeMillis();
    Connection connection = null;
    try {
    connection = DriverManager.getConnection(dbUrl, dbUserName, dbPassword);
    connection.setAutoCommit(false);
    Statement s = connection.createStatement();
    String sql = "INSERT INTO Orders" +
    " (OrderId, ContactName, DeliveryAddress, CCName, CCNumber, CCExpiryDate)" +
    " VALUES" +
    " (" + orderId + ",'" + contactName + "','" + deliveryAddress + "'," +
    "'" + ccName + "','" + ccNumber + "','" + ccExpiryDate + "')";
    s.executeUpdate(sql);
    // now insert items into OrderDetails table
    Enumeration enume = shoppingCart.elements();
    while (enume.hasMoreElements()) {
    ShoppingItem item = (ShoppingItem) enume.nextElement();
    sql = "INSERT INTO OrderDetails (OrderId, ProductId, Quantity, Price)" +
    " VALUES (" + orderId + "," + item.productId + "," +
    item.quantity + "," + item.price + ")";
    s.executeUpdate(sql);
    s.close();
    connection.commit();
    connection.close();
    returnValue = true;
    catch (SQLException e) {
    try {
    connection.rollback();
    connection.close();
    catch (SQLException se) {}
    return returnValue;
    package com;
    public class Product
    public int id;
    public String name;
    public String description;
    public double price;
    package com;
    public class ShoppingItem
    public int productId;
    public String name;
    public String description;
    public double price;
    public int quantity;
    I'm sure it has something to do with my directory structure, Were using a Tomcat server through Uni so i dont have access to change the context paths or anything like that. Any way to over come this problem would be so much appreciated! if your from Melbourne i'll buy u a beer ;o)
    Thanks heaps.
    Message was edited by:
    SomethingStupid

    if you start javac in your directory
    public_html>WEB_INF>classes>com
    the compiler cannot find the the classes Product and ShoppingItem.
    Start the compiler in public_html>WEB_INF>classes:
    javac com/*.javaThe path
    public_html/WEB_INF/classes
    is in your case the classpath. javac uses the current working directory as default classpath. The classpath contains "root points" of package directory trees.

Maybe you are looking for

  • Exporting audio files separately from video using a Mac

    Using a Mac computer, can you export audio files separately from video in Adobe Premiere Elements 11?  If so, how would I do that? Thanks as always.

  • Pass a rowtype to a function in sql

    Hi all, Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 Can you please tell me if the following is possible: I have a function that takes a rowtype as one of the parameters and returns a varchar2 function test( pa_text in varchar2,         

  • Windows Update Fix it for me

    How do you get a copy of the Fixit for me report?http://support.microsoft.com/gp/windows-update-issues Obviously you can print screen but is there a better way? TIA, Gerry

  • Reg: Test Sequences in Test Plan Management

    Hi Guru's    I do created the Test plan and Created Test Packages and also assigned Testers to that package         I do also created a Sequences for the testers                        But it allows the tester to change the status  whose in Sequence

  • Accessory error messages

    After plugging my phone into my stereo, I keep getting pop ups on my phone saying "charging is not supported with this accessory" and "This accessory is not optimized for this iPhone. You may experience noise interference and a decrease in cellular s