Errors with sdk 1.4.1, but not with 1.3??

I just upgraded to the j2sdk 1.4.1 yesterday from 1.3, and I'm getting a weird compile time error from an import statement that never used to happen. I'm just importing another class I've made, other imports from java.util etc. work fine, but not classes that I have made. Here's the code that gives an error.
import java.io.File;
import java.util.Vector;
import java.util.Enumeration;
import listDir; // only this line gives an error
and here's the error.
C:\kevin\listAll.java:4: '.' expected
import listDir;
^
1 error
Anyone have any idea why that happens? Have the rules changed for importing since sdk 1.3? This worked just fine 2 days ago with 1.3. Thanks for any help.

Hi all,
This is what I found will work with the stand alone classes (not package classes).
1) Do not use import MyClass; in your java app.
2) MyClass should be in the same directory as you java app, unless you have set up your CLASSPATH to point to MyClass.
Here is the listing
//import MyClass;
class HelloWorldApp {
public static void main(String[] args) {
String strNewPwd = null;
System.out.println("Hello World!"); //Display the string.
MyClass myClass = new MyClass();
//Do something to call your class
System.out.println(myClass.getMsg());
It seems to work now. If someone knows where I can find an updated documents on how to include classes on 1.4.1, please reply to this message.
Beside this problem, I am trying to use Tomcat 4.1 to develope a web application. I have similar problems finding my classes. On Tomcat 4.0, the app runs fine. I've try the above work around (not include import MyClass), but still does not work. Any suggestions?

Similar Messages

  • When I try to make smaller PDF's I get an ''unknown error''message,(Win7 on Acer laptop, but not on my HP Desktop with Win Xp (two separate Acrobats)?

    When I try to make smaller PDF's I get an ''unknown error''message,(Win7 on Acer laptop, but not on my HP Desktop with Win Xp (two separate Acrobats
    Happens isnce a week or four...

    https://www.dropbox.com/s/h20hiaxiuynz6z5/Blendle%20week%2051%202014.pdf?dl=0
    https://www.dropbox.com/s/eohk8an2rozwe5w/NatGeo2015.pdf?dl=0
    Until a few weeks ago no problems with this kind of files

  • I receive the error "this apple id is valid but not an icloud account" when I try to open icloud on my pc. Help.

    I receive the error "this apple id is valid but not an icloud account" when I try to open icloud on my pc. Help.

    Music purchased from the iTunes Store is automatically available in iCloud.  This is "iTunes in the Cloud" and does not require an iCloud account.  The music is stored in the iTunes Store, not in a personal iCloud account.
    If you don't have any Apple devices you will not be able to create an account.  It wouldn't be any value to you anyway as it syncs data on you computer with your Apple devices. If you don't have any, there is nothing to sync.

  • Error while generating PDF in portal but not in WAD

    Hi,
    When I execute the command to export to pdf, I have a screen to fill settings of my pdf, then I valid my choice and I have this message : "Error while generating PDF" in my portal.
    However, when I want to execute on Web Application Designer and click on my command "export to pdf", I have a same screen and I can open or save my document.
    Is someone have an idea : why it is possible to generate my pdf on WAD but not in my portal ??
    Any information is much appreciated !
    Thanks in advance
    V.K.

    Hi Pradnya,
    Thanks for your answer. However it is for an old version of SAP NetWeaver..
    I work with SAP BI 7.0 version.
    Regards,
    V.K.

  • OSA-Error message shows up in R3, but not in Portal(BSP)

    Hello,
    I'm working on Objective Setting & Appraisal with workflow & portal. At the template level I've put some business check which if not met at the document level throws up error msg. This works fine in R3 and the error msg is shown at the bottom of the screen at the status bar.
    But this same error msg doesn't show up when I open the document in the portal through workflow. The appraisal document opens in the portal through BSPs. When the condition is not met, on saving or submitting the page remains there ... but no error msg. We tried to show the error msg as a pop up and the pop up works fine in R3 but not in portal.
    Pls advice how to solve this problem.
    JKT

    Hi Sameer,
    We have used the application hap_document under BSP Application. And we have not used any standard user exit. All we have done is created a new enhancement under HRHAP00_DOC_BC ;ie; Appraisal Document - Business Check.
    I can see one document_error.htm Document - Error Handling. Do I have to do anything with this page ? if so, should it not call this page automatically whenever there is an rror msg ?
    Pls suggest. Thanks

  • Error while registering time in ESS, but not in ERP

    Hi all,
    I'm having a strange problem : when a user tries to record time using ESS he receives the error 'project /task xxxxx000000 not permitted for work date xx.xx.xxxx
    When we try the same booking in ERP (cat2) it passes without any problem.
    I'm under the impression that the problem is caused by the zero's after the project/task number. I only see the project number, but not the task number (which is displayed by six zero's).
    Anyone has an idea ?
    kr,

    I found the origin of my problem (ut not the olution ) It is the field cpr_extid which causes the error. The system fills in the project number (exxtended with zero's) and this causes the erroneous record. I don 't know a lot about data entry profiles, but is it possible that it is caused by some sort of copy ?
    We don 't have this problem with other clients..

  • Idoc with error message when coming from middleware but not in we19

    Hi Experts
    I am facing a very strange issue !
    I have a  Z - Idoc type and corresponding inbound function module for creating schedule lines i.e. doing something what me38 does.
    When my middleware i.e. Mercator Websphere is sending the idocs, they fail with the error message in the status record as
    Field EKET-MENGE (19) does not exist in the screen SAPMM06E 1117.
    But when I try processing the same idoc using we19, the scheduling lines are created and the schedule agreement is changed.
    Is there any difference between we19 and when idocs come from the middleware ?
    Points would be rewareded if useful answers received.
    Regards
    Shubhankar

    Well i think that the problem is with your BDC. there is an option to use standard size in BDC. I think your table control falls short of 19 rows in your program. Please see the thread below and incorporate the same changes in your BDC. I think u might need to record the BDC again.
    Re: BDC tabel control for QE01
    DATA OPT TYPE CTU_PARAMS.
    OPT-DEFSIZE = 'X'.
    CALL TRANSACTION 'FB01' USING ITAB OPTIONS FROM OPT.

  • Error -50103 occuring in one program, but not occuring in another similar program

    Hello,
    I'm a new user of LabView and I'm trying to figure out how a part of this programming process works.  Anyway, the block diagram of the working program consists of the first two pictures (C:\Users\Labview\Pictures\errorsetupnew1.jpg  -and-  C:\Users\Labview\Pictures\errorsetupnew2.jpg).  The parts in question are the DAQAssistant9 and DAQAssistant12 in the lower half of the diagram.  When I run the program, everything goes fine.
    So now I'm trying to run two other programs that both share the same properties as these two DAQAssistants, but they are in two separate programs.  When I run one program, it works, but when I run the other program, Error -50103 occurs at DAQmx Control Task.vi:10.  Pressing continue yields Error -50103 occuring at DAQmx Read (Analog 1D Wfm NChan NSamp).vi:3. 
    So my first attempt at solving it was to consolidate it into one program and run it all together, however the same error shows up.  I isolated the two While loops which seem to be causing the problem into a test program (third picture) and the error occurs there as well. 
    My question is what is different from the program in the first two pictures that is allowing the program to run correctly and the test program (which can be extended to the program that I need to work).
    I'm new, so please let me know how many beginner mistakes I might be making here!
    Thanks
    Attachments:
    errorsetupnew1.jpg ‏137 KB
    errorsetupnew2.jpg ‏113 KB
    errortest.jpg ‏82 KB

    I'm not currently at the computer with the files in question, but what if I attached those instead when I got the chance?  The problem is that I don't believe I am using the same DAQ resource in two different tasks.  The command line runs correctly in one, but can not run in the other even though the part giving the error is just a copy of the other program.
    I'm trying to run through the previous posts about this particular error but the LabView lingo is something I'm still getting used to.  Thank you for bearing with me and helping.

  • Oracle error from to_date in WHERE clause but not in SELECT clause

    If I issue a query like:
    select * from view_1
    where to_date(col1, 'mm/dd/yyyy') > sysdate
    I get an ora-01858 error.
    If I issue a query like
    select to_date(col1, 'mm/dd/yyyy') from view_1
    I don't get any error.
    I've verified the data both visually and using several recommended methods( checking with translate or regular expression), but I can't seem to find any problems with the data.
    Any suggestions for what I should try next?
    cheers,
    dz

    Hi user552575,
    Very strangeNothing mystical, especially if you say that VStudyPatientData is some view. You didn't post its underlying query so one can only guess about what is going on with your queries.
    This is my hypothetical scenario and my guess of what might happen. Consider:
    SQL> create table TStudyPatientData
      2    (SomeKey,
      3     StudyDatasetItemId,
      4     StudyPatientDataValue) as
      5   select rownum,
      6          4232,
      7          '01/12/2008'
      8     from dual
      9  connect by level <= 3;
    Table created.
    SQL> -- Now, let's insert row with incorrect date
    SQL> insert into TStudyPatientData values (4, 4232, 'AA/12/2008');
    1 row created.Here is what we have in TStudyPatientData:
    SQL> select * from TStudyPatientData;
       SOMEKEY STUDYDATASETITEMID STUDYPATIE
             1               4232 01/12/2008
             2               4232 01/12/2008
             3               4232 01/12/2008
             4               4232 AA/12/2008Now, let's create one extra "lookup" table and our hypothetical view:
    SQL> create table SomeTable (x, y) as
      2  select 4232, 4 from dual;
    Table created.
    SQL> create or replace view VStudyPatientData as
      2  select a.*
      3    from TStudyPatientData a
      4   where a.SomeKey <
      5         (select b.y
      6            from SomeTable b
      7           where b.x = a.StudyDatasetItemId);
    View created.It's clear that our simple view will return three rows (row with SomeKey = 4 won't be returned):
    SQL> select * from VStudyPatientData;
       SOMEKEY STUDYDATASETITEMID STUDYPATIE
             1               4232 01/12/2008
             2               4232 01/12/2008
             3               4232 01/12/2008Now, let's see what happens about your queries. This one will succeed:
    SQL> select to_date(StudyPatientDataValue, 'MM/DD/YYYY')
      2    from VStudyPatientData
      3   where StudyDatasetItemId = 4232
      4     and StudyPatientDataValue is not null;
    TO_DATE(S
    12-JAN-08
    12-JAN-08
    12-JAN-08But this one fails, just as in your case:
    SQL> select *
      2    from VStudyPatientData
      3   where StudyDatasetItemId = 4232
      4     and StudyPatientDataValue is not null
      5     and to_date(StudyPatientDatavalue, 'MM/DD/YYYY') > sysdate;
    ERROR:
    ORA-01858: a non-numeric character was found where a numeric was expected
    no rows selectedSo how did this happen? Once we have query execution plans, the answer is obvious. Let's start with "good" query:
    SQL> explain plan for
      2  select to_date(StudyPatientDataValue, 'MM/DD/YYYY')
      3    from VStudyPatientData
      4   where StudyDatasetItemId = 4232
      5     and StudyPatientDataValue is not null;
    Explained.
    SQL> @utlxpls
    PLAN_TABLE_OUTPUT
    | Id  | Operation            |  Name              | Rows  | Bytes | Cost  |
    |   0 | SELECT STATEMENT     |                    |       |       |       |
    |*  1 |  FILTER              |                    |       |       |       |
    |*  2 |   TABLE ACCESS FULL  | TSTUDYPATIENTDATA  |       |       |       |
    |*  3 |   TABLE ACCESS FULL  | SOMETABLE          |       |       |       |
    Predicate Information (identified by operation id):
       1 - filter("SYS_ALIAS_1"."SOMEKEY"< (SELECT "B"."Y" FROM "SOMETABLE"
                  "B" WHERE "B"."X"=:B1))
       2 - filter("SYS_ALIAS_1"."STUDYPATIENTDATAVALUE" IS NOT NULL AND
                  "SYS_ALIAS_1"."STUDYDATASETITEMID"=4232)
       3 - filter("B"."X"=:B1)
    Note: rule based optimization
    20 rows selected.Take a close look at FILTER operation (with Id = 1). It filters out rows which do not satisfy subquery within a view (where a.SomeKey < (select ... )). Thus, row with incorrect date (AA/12/2008) is simply filtered out.
    But what happens with "bad" query? Let's see:
    SQL> explain plan for
      2  select *
      3    from VStudyPatientData
      4   where StudyDatasetItemId = 4232
      5     and StudyPatientDataValue is not null
      6     and to_date(StudyPatientDatavalue, 'MM/DD/YYYY') > sysdate;
    Explained.
    SQL> @utlxpls
    PLAN_TABLE_OUTPUT
    | Id  | Operation            |  Name              | Rows  | Bytes | Cost  |
    |   0 | SELECT STATEMENT     |                    |       |       |       |
    |*  1 |  FILTER              |                    |       |       |       |
    |*  2 |   TABLE ACCESS FULL  | TSTUDYPATIENTDATA  |       |       |       |
    |*  3 |   TABLE ACCESS FULL  | SOMETABLE          |       |       |       |
    Predicate Information (identified by operation id):
       1 - filter("SYS_ALIAS_1"."SOMEKEY"< (SELECT "B"."Y" FROM "SOMETABLE"
                  "B" WHERE "B"."X"=:B1))
       2 - filter(TO_DATE("SYS_ALIAS_1"."STUDYPATIENTDATAVALUE",'MM/DD/YYYY')>S
    YSDATE@! AND "SYS_ALIAS_1"."STUDYPATIENTDATAVALUE" IS NOT NULL AND
                  "SYS_ALIAS_1"."STUDYDATASETITEMID"=4232)
       3 - filter("B"."X"=:B1)
    Note: rule based optimization
    21 rows selected.Please notice the second step of the plan (with Id = 2) and the corresponding filtering predicates (especially the one I've marked bold). As we can see, TO_DATE(...) > SYSDATE predicate is evaluated at very first stage, before subquery filtering is done.
    In general, Oracle tries to evaluate single-table predicates first, before evaluating joins and subqueries. In our case, this means that Oracle tries to apply TO_DATE(...) to every row in TStudyPatientData, and it throws exception as soon as it reaches 'AA/12/2008' value.
    Of course, this is hypothetical scenario - I haven't seen your view text so the best I can do is guess.
    However, as you can see, everything is possible with views and, without seeing query plans, it can be hard to understand what is going on.
    Regards.

  • Error 1003 when using excel reprt, but not Word

    I am trying to use the MS Office Report vi to send my data to an Excel. I am using Labview 7.1. 
    When I place the VI on the block diagram I get the following message: (Also attached)
    Error 1003 occurred at Open VI Reference in ex_RGT_Get
    Bookmarks and named cells.vi->Configure MS Office
    Report.vi->Confugure MS Office Report.vi.ProxyCaller
    Possible Reason(s):
    The VI is not executable. (OK Dialog box)
    If I click OK, the " Configure MS Office Report pop up window is mostly grayed out . If I select "Basic report for Word" I have no error message.
    I am using Excell 2003.  The problem is with a laptop computer I am using. I do not see this problem with a desktop computer. 
    Thanks,
    Bill
    Attachments:
    MS Report 8-24.doc ‏80 KB

    Hello Bill,
    You are not trying to build an executable, just use the Express VI in a regular development VI, right?  If so, this link describes the troubleshooting steps to get rid of this error.
    Regards,
    Clint M
    National Instruments

  • SQL statement errors in 10.2.0.3 but not 10.1.0.4

    One of my developers noticed some errors this morning after we moved over to 10.2.0.3 on windows. The query returns rows in 10.1.0.4 but in 10.2.0.3 returns an ORA-01791:not a SELECTed expression. Here is the query:
    Select
    rn,
    mpid,
    first,
    middle,
    last,
    account_status,
    username,
    last_login,
    date_added,
    degree,
    ssn
    from
    Select
    rownum as rn,
    mpid,
    first,
    middle,
    last,
    account_status,
    username,
    last_login,
    date_added,
    degree,
    ssn
    from
    SELECT distinct
    p.mpid as mpid,
    UPPER(name_first) as first,
    UPPER(name_middle_initial) as middle,
    UPPER(name_last) as last,
    l.account_status,
    username,
    TO_CHAR(last_login, 'DD-Mon-YYYY') as last_login,
    TO_CHAR(date_added, 'DD-Mon-YYYY') as date_Added,
    degree,
    ssn
    FROM
    PERSON_ID p,
    login l
    WHERE
    p.mpid=l.mpid AND UPPER(p.name_last) LIKE '%SMITH%'
    ORDER BY
    name_last ASC
    where
    rn >= 1 and rn <= 20

    SQL> ALTER TABLE LOGIN ADD (
      2  CONSTRAINT FK_LOGIN_MPI
      3  FOREIGN KEY (MPID)
      4  REFERENCES PERSON_ID (MPID));
    REFERENCES PERSON_ID (MPID))
    ERROR at line 4:
    ORA-02270: no matching unique or primary key for this column-list
    SQL> Select
      2  rn,
      3  mpid,
      4  first,
      5  middle,
      6  last,
      7  account_status,
      8  username,
      9  last_login,
    10  date_added,
    11  degree,
    12  ssn
    13  from
    14  (
    15  Select
    16  rownum as rn,
    17  mpid,
    18  first,
    19  middle,
    20  last,
    21  account_status,
    22  username,
    23  last_login,
    24  date_added,
    25  degree,
    26  ssn
    27  from
    28  (
    29  SELECT distinct
    30  p.mpid as mpid,
    31  UPPER(name_first) as first,
    32  UPPER(name_middle_initial) as middle,
    33  UPPER(name_last) as last,
    34  l.account_status,
    35  username,
    36  TO_CHAR(last_login, 'DD-Mon-YYYY') as last_login,
    37  TO_CHAR(date_added, 'DD-Mon-YYYY') as date_Added,
    38  degree,
    39  ssn
    40  FROM
    41  PERSON_ID p,
    42  login l
    43  WHERE
    44  p.mpid=l.mpid AND UPPER(p.name_last) LIKE '%SMITH%'
    45  ORDER BY
    46  name_last ASC
    47  )
    48  )
    49  where
    50  rn >= 1 and rn <= 20;
    name_last ASC
    ERROR at line 46:
    ORA-01791: not a SELECTed expression
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - 64bi
    PL/SQL Release 10.1.0.5.0 - Production
    CORE    10.1.0.5.0      Production
    TNS for Solaris: Version 10.1.0.5.0 - Production
    NLSRTL Version 10.1.0.5.0 - Productionbon, je n'ai pas de 10.1.0.4 windows, mais je doute que ça fasse vraiment la différence
    donne moi l'output dans sqlplus

  • The following error was submitted a while ago but not sure how to find out if a solution was found?

    Microsoft VBScript runtime error '800a01a8' Object required /include/SiteSecurity.asp
    This is for Next Web Security. This is the only one that shows this error and I have a dozen bookmarks. I contacted the company and they don't have any issues at their end and my link is: http://www.nextwebsecurity.com/Contact.asp.
    I tried using Opera browser and still get the same error.
    Can this be fixed and why is it not working any more (stopped working in early Dec 2012) and I used it to do voluntary work for this website.

    Can you see that page via Google Translate?
    *http://translate.google.com/?hl=en&ie=UTF-8&sl=fr&tl=en&text=http://www.nextwebsecurity.com/Contact.asp
    Try to boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
    See also:
    *http://kb.mozillazine.org/Error_loading_websites

  • Error Loading Native Library on Mac, but not XP

    In a program that I am making, I use JOGL and Odejava. Testing on Mac and Windows works fine loading JOGL's native libraries. However Odejava fails to load on Mac OS X but works fine on my Windows machine.
    The only difference is that JOGL uses just .jnilib's while Odejava has a jnilib as well as a dylib. All the jnilib's and dylib's are in the home directory. I also placed libodejava.jnilib into /Library/Java/Extensions and ode.dylib into /usr/lib/ as per the installation instructions for Odejava.
    When I try to run I get this error:
    java.lang.UnsatisfiedLinkError: /private/Network/Servers/students.central.spps.org/Users/idoneus/Documents/workspace/Idoneus_.03/libodejava.jnilib:
    The only three possible things that I could think of are that
    a)libodejava.jnilib has been corrupted, but I doubt that since I keep redownloading it.
    b)The Mac computer is in a lab that users remote access to a server for users, which might possibly confuse Java.
    c)libodejava.jnilib wasn't built correctly to actually look for the dylib
    Your help would be appreciated because I'm at my wits end.

    Neither Red Hat 2.1 nor Suse 8 are supported. Please try on a supported operating system. You can find the complete list here: http://e-docs.bea.com/jrockit/jrdocs/suppPlat/supp_plat.html
    Regards,
    /Staffan

  • I frequently find that when closing Firefox, and try to reopen again, get error message "Firefox is already running, but not responding. Recommend to close it, or restart system". Using Windows Task Manager, no application is found. After restart, OK.

    At the update to Firefox 3.6.8, I also updated to Flash 10.

    I get this problem often, on my computer which runs XP, I find simply waiting a few moments (up to a minute) is enough to end the process.
    On my Vista machine, it sometimes works that way, but if FF locked up (stopped) and is ended through the task manager, it often requires a reboot or a much longer wait (up to 10 minutes or more).

  • "Close Firefox - Error Message -. Firefox already running, but not responding -.." A real pain - Firefox worked much better before all the updates!! How do I fix this?

    This pop-up appears anytime I attempt to close Firefox and immediately open another browser, etc.
    Suspect it is add-ons related. Never had the problem with "older" version of Firefox.
    It is a real nuisance, almost makes me go to Explorer!

    Try to wait a bit longer (up to 1 minute or maybe more) as it can take some time for Firefox to close completely.
    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    *https://support.mozilla.com/kb/Firefox+hangs

Maybe you are looking for

  • Windows Search Service Best Pratices on RDP Server with office 2013

    high everybody, i´m looking for guide how to configure the Windows Search Service on our Server 2012 RDS Servers. The Servers have Office 2013 installed so turning off the Search Service is not an Option. We are using User Profile disks and logoff wa

  • While Importing Foundation Services Facing the Error in (EPM 11.1.2 )

    I have created a new application on test server to make a replica of production environment. All other things are ok but user and groups are not imported while importing the foundation services bkp.... The error is as follows Artifact Path = Native D

  • Error when checking in Activity

    Hi All, When I rebuild my webdynpro project, it builds successfully without any errors. I can also deploy and run my application. But when I checkin my Activity, I get an error: "A Context model node has to be bound to a model class ". I have checked

  • Resizing photos in slideshow scrapbook theme

    Hi - I'm working on a slideshow in iPhoto '11.  I imported my photos and set the theme as scrapbook.  I realize that it's a template and I have to mess with the order of the photos get the pictures the way I want them to appear.  That said, I can onl

  • How to use IDES of SCM5.0 to studing?

    How to use IDES of SCM5.0 to studing? thx. Regards Thomson T