Possible classpath errors

Hello all
first off i'm not new to java, but i am wroking on a linux machine here and having problems running my java code. The code compiles properly however when i attempt to run i get the no callDefFound error. I know i'm spelling everything correctly so i double checked my .profile. I am almost positive the error is here. I have searched several sites and according to the sources i've found, my .profile is correct. below is my profile, could anyone point out any errors i'm missing?
thanks in advance
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
     . ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
PATH=$PATH:/usr/java/j2sdk1.4.1_02/bin
CLASSPATH = .:/usr/java/j2sdk1.4.1_02/bin
export PATH CASSPATH
unset USERNAME

CLASSPATH = .:/usr/java/j2sdk1.4.1_02/bin
export PATH CASSPATHTry removing the spaces from the classpath statement
Try exporting CLASSPATH, not CASSPATH

Similar Messages

  • Possible Classpath Error, Java POI API

    Hiya,
    I'm not new to Java, well not that new, but the class path, packages and such have always been a bit of a blind spot for me. Once I finally get that part working the applications write themselves.
    I've written an application that writes large grids as csv files, but I'd like to go a step further and add forumlae and formatting, therefore I've been looking at the Java POI HSSF API (http://jakarta.apache.org/).
    I've downloaded the files from here: http://apache.mirror.positive-internet.com/jakarta/poi/release/bin/ and added them to my classpath (I think..), which I have pasted below [and have spaced out for ease of reading];
    My Classpath
    C:.; C:\Dev\JavaServer\bin;
    C:\Dev\JavaLive\io\MySQL\mysql-connector-java-3.1.12-bin.jar;
    C:\Dev\JavaLive\io\Excel\poi-2.5.1-final-20040804.jar;
    C:\Dev\JavaLive\io\Excel\poi-contrib-2.5.1-final-20040804.jar;
    C:\Dev\JavaLive\io\Excel\poi-scratchpad-2.5.1-final-20040804.jar;
    %CLASSPATH%
    My Test Code
    import java.io.*;
    import org.apache.poi.hssf.usermodel.HSSFCell;
    import org.apache.poi.hssf.usermodel.HSSFRow;
    import org.apache.poi.hssf.usermodel.HSSFSheet;
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    public class exceltest
         public exceltest()
              HSSFWorkbook wb = new HSSFWorkbook();
              FileOutputStream fileOut = new FileOutputStream("workbook.xls");
              wb.write(fileOut);
              fileOut.close();
         public static void main(String args[])
              new exceltest();
    }I've checked the integrity of the the jar files, and the structure seems intact. Shouldn't adding the three jars to the classpath, as above, allow me to import them as above?
    The following errors result at compile:
    C:\Dev\JavaLive\exceltest.java:2: package org.apache.poi.hssf.usermodel does not exist
    import org.apache.poi.hssf.usermodel.HSSFCell;
                                         ^
    C:\Dev\JavaLive\exceltest.java:3: package org.apache.poi.hssf.usermodel does not exist
    import org.apache.poi.hssf.usermodel.HSSFRow;
                                         ^
    C:\Dev\JavaLive\exceltest.java:4: package org.apache.poi.hssf.usermodel does not exist
    import org.apache.poi.hssf.usermodel.HSSFSheet;
                                         ^
    C:\Dev\JavaLive\exceltest.java:5: package org.apache.poi.hssf.usermodel does not exist
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
                                         ^
    C:\Dev\JavaLive\exceltest.java:17: cannot resolve symbol
    symbol  : class HSSFWorkbook
    location: class exceltest
              HSSFWorkbook wb = new HSSFWorkbook();
                    ^
    C:\Dev\JavaLive\exceltest.java:17: cannot resolve symbol
    symbol  : class HSSFWorkbook
    location: class exceltest
              HSSFWorkbook wb = new HSSFWorkbook();
                                          ^
    6 errors
    Tool completed with exit code 1I've googled, searched the forums and such and have yet to turn up an answer. I assume it's something to do with the classpath as it's not seeing the package? Any help would be very appreciated.
    Thanks
    David
    Message was edited by:
    davidrhowells

    Well, it works ok for me. The only thing I can think of is that you haven't re-sourced your classpath? Did you run(start) whatever you're compiling from before or after you set the classpath? Try opening a command prompt and cd to your source file.
    Type
    echo %classpath%to make sure the classpath is set correctly and then type
    javac exceltest.javaThat should work if the classpath is correct...

  • Classpath error while building the web dynpro project

    Hi
    I have created an application in which on clicking the button on one view , next view opens and data is displayed in the tables. This data i am giving as static, and for that i have created a java file. this java file is located in the subfolder i have created in the package path i have given. While building the application, i get these two errors :
    1) The project was not built due to classpath errors (incomplete or involved in cycle).
    2) Missing required source folder 'BPOutageTable/BPOT'
    BPOutageTable is the application name, and BPOT is the subfolder in which java file is present.
    This application is similar to "The Master/Detail Viewer Application" example in the tutorials.
    Can anybody please help in this?
    Thanks & regards,
    Anupreet

    Hi,
       You have give your classpath in your "lib" folder of the Dynpro application.
       check your lib folder shows exact class path or not.
    if you wish to add any jar files import it to your lib folder so you will not have compilation problem.
    Hope it helps.If it is then close this thread.
    Regards,
    Guru

  • Classpath error while building the project.

    Hi
    I have created an application in which on clicking the button on one view , next view opens and data is displayed in the tables. This data i am giving as static, and for that i have created a java file. this java file is located in the subfolder i have created in the package path i have given. While building the application, i get these two errors :
    1) The project was not built due to classpath errors (incomplete or involved in cycle).     
    2) Missing required source folder 'BPOutageTable/BPOT'
    BPOutageTable is the application name, and BPOT is the subfolder in which java file is present.     
    This application is similar to "The Master/Detail Viewer Application" example in the tutorials.
    Can anybody please help in this?
    Thanks & regards,
    Anupreet

    Hi anupreet,
    it error at buildtime means your code is not able to locate the folder and the java class.
    if you switch to navigator menu and create java class in src/package node (in any package). You can get the class within the dynpro component / view.
    Again try this, create a class say HelloClass in src/package node in some package. go to webdynpro view and try to access this class in dynpro code.
    Rgds,
    Vilish

  • Classpath error in portal application

    Hi
    <b>first problem</b>
    when i am going to deploy the sample portal application for example displaying the "Hello world" message in the output, so i am getting the classpath error as displayed below.
    <b>"The project was not built due to classpath errors(imcomplete or involved in cycle)"</b>
    can any one help where should i change the classpath and all to deploy the portal application successfully".
    <b>second problem</b>
    when i am going to write the code in the dynpage in the portal for example
    suppose if i want to add group to form then i type
    formobjectname.groupname;
    when i press . the entire list of possiblites are not apperaing in the list.
    pls help on this two.
    will award max points, if i slove
    Regards
    Sunil

    Dear Sunil,
    To answer your second question first:
    You ae'nt getting the list of methods/possibilities because the correct package/class is not imported. e.g. If you do not include com.sap.security.api.* you will not get the list of methods associated with any class falling under that package.
    The first problem: I really suggest that you download classlocator from sourceforge.net. It is easily plugges into NWDS. Double Click the error message and see it completely. I guess you would get one more message stating which class cannot be found. Once you install Class locator, you can easily type the class in the application and it will automatically add that Jar file in your classpath thus solving your issue.
    Regards,
    Prem
    SAP.

  • Classpath errors while creaing a WebDynpro project

    hello,
         I am creating a WebDynpro project. When i try to build the project code/ while deploying, i encounter error saying " Project was not built due to classpath errors).
         It also provides the list of missing libraries.
    Where should i add these libraries?
    Kindly help me sort out this issue asap.

    Hi,
       are u saving the metadata before building ur application ....are the error due to usage of some external libraries other than standard...then u have right click on projecct and in liberary reference add the libraries.....please post in some details.....
    Regards,
    Yash

  • Eclipse and Classpath Errors

    I have been writing some small applications within Eclipse and they run fine within eclipse; however, when I go and export these projects and try to run the JAR file that has been created, I am getting classpath errors.
    At the following link https://cms.psu.edu/AngelUploads/Files/buk110/huh.jpg Is a screenshot of my Java Build Path Screen.
    Am I doing something wrong? Any help would be appreciated...
    Thanks

    Problems still are occuring for me. However, I believe I am getting closer to what I need to do.
    I have exported the project to a jar file into a folder I've called test. In this "test" folder I've also created a folder called "jars" which consists of all of my external jar files.
    I've then edited the manifest file as follows
    Manifest-Version: 1.0
    Main-Class: keyword_listing
    Class-Path: jars/i-text-1.3.jar jars/junit-3.8.1.jar jars/log4j-1.2.9.jar jars/tm-extractors-0.4.jarBut I still get the errors as before. Am I totally going in the wrong direction or am I missing something really simple?

  • LOGON NOT POSSIBLE. ERROR IN LICENSE CHECK -- NO HWid from message Server

    We could logon to the EC6 system. I
    Stopped the EC6 system and started
    it . It started with License Key
    Error. the License key was available
    and was shown in SLICENSE transaction
    but it was giving LOGON NOT POSSIBLE.
    ERROR IN LICENSE CHECK.
    SO I deleted the TEMP and the Original
    License via command SAPLICENSE -DELETE
    and then REINSTALLED THE LICENSE with
    the details
    SAP System: EC6
    Inst. Number: 0020174764
    Hardware Key: Z1686313186
    System Number: 310590866
    Expires On: 31.12.9999
    Key:
    RZKGNA79K9U4F7D7SGGOWU1V
    The License was successfully installed
    but Still the samer error .LOGON NOT
    POSSIBLE. ERROR IN LICENSE CHECK
    Somehow it is not getting the hardware
    key.But when I run the command
    saplince -get then it returns
    saplicense: HARDWARE KEY = Z1686313186
    DEV_W0 log says that
    M  ***LOG Q16=> ThGetMsHwId, DpMBufHwIdGet (HWID_PENDING) [thxxmbuf.c   509]
    M  *** ERROR => SlicKCheckLicense: did not get hwid from message server [slicch.c     306]
    M  *** ERROR => no hwid from msg-server received [likeyapi_w.c 2268]
    Please Help

    Sergo
    My sapmsEC6 has been assigned to 3601 port as my instanace number is 01 . So that is correct. the Thread which has given didn't help . Thanks for you inputs.
    Yogesh

  • Possible classpath problems with JSP

    I'm trying to run a simple jsp under ocj4 and I'm running into problems. Other jsp's run fine so I'm pretty sure everything's installed right. However, when I try and use the ConnCacheBean I get a "bean type ConnCacheBean not found error". Now the class is there under (on my system) d:\oracle\jsp\lib in osjputil.jsp. I tryed adding this manually to the -cp option of java when I run orion.jar but to no help.
    Where can I set this classpath variable (if this what's going wrong, if not what is) as I can't find anything addressing this in the documentation.
    thanks
    Jonny Wray
    null

    I've had success putting my non-JSP stuff into a simple jar file and placing it in
    j2ee/home/default-web-app/WEB-INF/lib. It seems that the engine picks up anything in that directory.
    Possibly, you will have to create this lib directory yourself.
    See if this helps.
    Cheers,
    Malte Christensen
    null

  • Jar Files in a Jar File - Classpath Error

    Hi,
    I created a jar file that will have all the class files of the application. In the manifest file class path, I have the jar files the application is dependent on. The dependent jar files were kept outside of the application jar file. I was able to execute the main file in the application jar file. Then I created another jar file that holds all the dependent jar files the application is dependent on along with the application jar file into one super jar file. configured the main class attribute of the super jar file to that in the application jar file. When I try to execute it, I'm getting an error saying Class Not Found. Can someone guide me in setting the classpath for this super jar file in its manifest file.
    Presently my manifest file classpath variable in the super jar file is set as App.jar Depend1.jar Depend2.jar
    Thanks,
    E H

    Java's standard class loaders do not support jar files inside of other jar files, and will give the error you see.
    You can write your own customized class loader, use a 3rd-party solution (onejar at sourceforge is one), or remove the interior jars.

  • "Java Class not found in classpath" Error in DESIGNER

    Hello All,
    I'm trying to connect in Designer using a JDBC connection to MS SQL Server 2008.  As per the instructions, I updated my jdbc.sbo file with the path to the existing two JAR files.  However, I still get the following error when I try and connect in Designer:  "Java Class not found in classpath : C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\jdbc\Drivers\sqlsrv".  Of course, this error includes the drive path with the location to my JAR files.  Any help in resolving this nagging issue is very GREATLY appreciated.  Also, if anyone needs it I can post a copy of the jdbc.sbo file to this thread.
    Thank you,
    Pankaj

    Stratos,
    Your suggestion didn't help.  I tried to connect after restarting my machine and I still get the error.  And, I've also tried adding a connection to MS SQL Server 2005 using this JDBC driver, and that didn't help either.  Any other suggestions?  Would it help to see my "jdbc.sbo" file?  Thanks again for your and everyone else's help, and I look forward to your reply.
    Regards,
    Pankaj

  • A  classpath error while  importing a class with @page import property

    Hi ,
    I am using Tomcat contaniner for jsp applications. I have developed a page that i have import a class. when i use
    <%@ page import="myclass" &>
    i got an error that myclass not found. I have placed into tomcat\webapps\myproject\web-inf\classes directory. So How will I set the classpath for myclass to work?
    thanks.

    I was able to simulate your problem when I created a mismatch in the case of the name of the class.
    for example if my program is called MyClass.java
    and in the import I do <@page import="myclass" %>
    Are you sure about the case of class name that you are using? Please check that the file is called myclass.java the class defined inside it is called myclass and the class file that is copied into the WEB-INF/classes directory is also myclass.class. There should be no difference in the case of the names. like MyClass.java or MyclaSS.class
    Other things to check are
    1. If myclass is defined in a package then you have to import with the package.
    2. Make sure that your jsp is located in the myprojects directory and the class file is copied under myprojects/WEB-INF/classes.
    Let me know if things still don't work
    regards,
    Abhishek.

  • Getting classpath error while building DC of webdynpro project

    Hi Experts,
      I have created Development Component Project in NWDS, created componet for the webdynapro type project, for the  implementation i took IAspectRow , while buiding the project getting error like.
    The project was not built since its classpath is incomplete.
    Cannot find the class file for com.sap.tc.col.client.generic.api.IAspectRow.
    Fix the classpath then try rebuilding this project.
    from where can i get this jar file to fix same in classpath.
    Any one helpout me?
    Regards
    Srikanth

    Hi,
    Add two library references as below in the WDP Project properties -> Web Dynpro Reference -> Library Reference :
    sap.com/tccolapi
    sap.com/cafruntimeuicouplingapilib
    Thanks,
    Dipankar

  • Unable to resolve the classpath error in Web Dynpro DC

    Hi,
    While building a new Web Dynpro DC we got the following build errors:
    The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.security.api.IUser. Fix the classpath then try rebuilding this project. ND1_MTRACK_DTrvlMgmtmindtree.com     
    We have already added the external jar files by following the steps mentioned in this blog /people/marion.schlotte/blog/2007/12/19/simplify-dc-structures-for-external-libraries
    The respective dependancy of the J2EE library dc was added to the WD component but the issue still persists.
    Please help us in resolving this error.
    Best Regards
    Gaurang

    Hi Gaurang,
    Were you able to resolve your issue?
    Hope the following links help:
    /message/7579461#7579461 [original link is broken]
    Re: Required JAR files:
    Regards,
    Dao

  • Java classpath error while crawling sample user defined datasource (SampleA

    Hi All,
    I am trying to run the sample crawler agent provided by ultra search "SampleAgent.java". For this
    I have created and configured the user defined datasource type and the user defined data source (for the NEWS TABLE) as per the readme file of the Sample Crawler agent.
    I have also created a schedule for this user defined type.
    However, while executing the schedule I am getting the following error:
    WKG-30116: Can not find agent class "SampleAgent" from the java class path
    Please let me know the reason for the error. Am I right in creating and executing a schedule for user defined data source? (the doucmentation never says that, for user defined datasource, I need to create a schedule and execute it!!)
    Also, after going through some of the postings in this discussion forum I understood that I need to check my java classpath from the WK$CRAWLER_DEFAULT_CONFIG table.
    In this table my the value for
    CC_JAVA_EXEC_PATH is "C:\oracle\ora92\jdk\bin\java.exe -ms16m -mx256m"
    and
    CC_JAVA_CLASS_PATH is
    "-classpath
    C:\oracle\ora92\jdbc\lib\classes12.zip;
    C:\oracle\ora92\jdbc\lib\nls_charset12.zip;
    C:\oracle\ora92/ultrasearch/lib/ultrasearch.jar;
    C:\oracle\ora92/ultrasearch/lib/ultrasearch_db.jar;
    C:\oracle\ora92/lib/mail.jar;
    C:\oracle\ora92/lib/activation.jar;
    C:\oracle\ora92/ultrasearch/lib/jgl3.1.0.jar;
    C:\oracle\ora92/lib/xmlparserv2.jar;
    C:\oracle\ora92/lib/xschema.jar;
    C:\oracle\ora92/ultrasearch/bin;
    C:\oracle\ora92/ultrasearch/lib/agent/"
    Do I need to change any of these values? If so, what changes should I make and how should I make those changes?
    NOTE THAT I AM USING THE DATABASE VERSION OF ULTRASEARCH.
    Thanks in advance,
    Amit Sangle

    Hi All,
    I would appreciate any help that I get regarding this post.
    If anyone has run the Sample crawler Agent please let me know the steps needed to make it work. I have followed the steps mentioned in the readme file here:
    http://otn.oracle.com/docs/products/ultrasearch/doc_library/ultrasearch9_2/sample_agent_readme.htm
    Are there any other configurations that I need to do? Am I missing something? Please let me know.
    Thanks and Regards,
    Amit Sangle

Maybe you are looking for

  • TOC stopped updating properly...

    Hello - I'm having an issue with my Table of Contents.  It has stopped updating properly.  I have a 90+ page manual where I had the TOC working fine.  I have been saving revisions of the manual when edits were made.  The issue is that when I go to Up

  • Options for Seagate Backup Plus for Mac/Windows

    I have a new Mac-mini (my first Mac since my original Mac 128), and just got a 3TB Seagate Backup Plus.  It's so new, I haven't even read up on Time Macine though I assume that's the way to go. I originally had in mind partitioning the Seagate with o

  • Data deletion in DB table

    Hi, I have given maintenance allowed as a setting in delivery & maintenace of DB table. But still i couldn't delete data from the table. what will be the reason? should i change some other settings of DB table?

  • NVL behaving differently on two instances of Oracle 9.2

    Hello, one of our customers is running two Oracle 9.2.0.6 64Bit instances. One for development and one for production usage of our software. The following statement works on the development instance: SELECT nvl(content, '') FROM a_table; The column c

  • Prices for goods are showing in english pounds not $, how do I fix?

    When I look at a menu or some websites for the US, it is showing pounds not $. I live in the US in NH. My coworkers see the same menu with a $ sign.