Opening a third party package

Hi there,
I am having trouble running any files from the martingale project package on http://martingale.berlios.de/Martingale.html. I use XP, my java / javac / other files work properly. I copied the .jar files from the projecct into my c:\j2sdk1.4.1_03\bin directory to make sure the claspath was correct.
I dont know how to open one of the Example files. for example, in the subdirectory c:\martingale-5-30-3\martingale-dist\packages-5-30-3\Examples\Array there is a file called Loop.java
First I type javac Loop.java, this compiles ...
Then I type java Loop. This gives the next error: "Exception in thread "main" java.lang.NoClassDefFoundError Loop (wrong name Examples/Array/Loop)"
I knnow this problem has something to do with the package directory, but I hava no idea..
PLEASE HELP !!!
thanx
:)

Also:
http://wiki.java.net/bin/view/Javapedia/ClassPath

Similar Messages

  • How to use  third party package in java application

    hi, i am a student , new to java world can any of u tell me how to import third party package in our java application.
    i want to know how CLI is done in java.
    i am going thru this link http://www.codezoo.com/pub/component/5574
    not able to get anything.
    please please help me

    There are two steps -
    1. Import the classes you need from the package(s) using the Java import statement in your classes that need access to them.
    2. include the 3rd part code (one or more .jar files and/or root directories holding the code's package tree and .class files) to your javac and java class path and optionaly to the class path found in your .jar's manifest file.

  • *URGENT* importing third party package into Jdev project

    hi,
    our company has bought a thrid party package instead of developing one to speed up the project pace. Some how we cannot import the package into our project environment,
    this is what we do with the package.
    set the class path to where the *.jar files are, for example: C:\AccBank\beta\creditcheck.jar
    please note that the "C:\AccBank\beta\" is where the project file locates.
    and follow is the import statement
    import thirdparty.package1.*;
    please tell us what did we do wrong, if the case in question is not clear, please tell us the steps we need to do to import and use a third party package with JDev.
    Also, please tell me the different purpose between the directory :
    PROJECTFILES and CLASSFILES under the main project directory
    Thank you very much for your time and your help
    Augustina
    null

    Hello,
    I'm not sure about what you mean,
    but in order to use a given package within JDevelopper, you should:
    - select project/project properties,
    - find the libraries tab
    - click "add", then "new"
    - click "class path"
    - click "add ZIP/JAR" and add the various jar files you want to include
    Note: if the included libraries contain subpackages of packages like javax, and you want to deploy your project (as EJB for instance) you will have to edit the deployment profiles in order to add the 3rd party libraries, otherwise, these subpackages won't be deployed (by default, packages suvh as java.lang, javax etc.. are not excluded from the deployment).
    about the PROJECTFILES and CLASSFILES items, they refer to the directories in which your project's source code (PROJECTFILES) and compiled classes (CLASSFILES) are stored
    Hope this helps, Remi
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Augustina:
    hi,
    our company has bought a thrid party package instead of developing one to speed up the project pace. Some how we cannot import the package into our project environment,
    this is what we do with the package.
    set the class path to where the *.jar files are, for example: C:\AccBank\beta\creditcheck.jar
    please note that the "C:\AccBank\beta\" is where the project file locates.
    and follow is the import statement
    import thirdparty.package1.*;
    please tell us what did we do wrong, if the case in question is not clear, please tell us the steps we need to do to import and use a third party package with JDev.
    Also, please tell me the different purpose between the directory :
    PROJECTFILES and CLASSFILES under the main project directory
    Thank you very much for your time and your help
    Augustina <HR></BLOCKQUOTE>
    null

  • Problems with third party package and file access

    I am using a third party package that allows me to decode
    multipart forms that I use to upload files to our server.
    I have been able to write my own code (JSP) that both reads and
    writes to our filesystem. However, when I try to upload a file
    using the third party package the method I am using fails with
    the following IO exception: The error message is "access is
    denied." But the files get written and are usable (even binary
    files). I have checked the directories and all the dirs I am
    writing to have read, write and execute permission.
    I have access to the code so when I duplicate the actual
    methods used for writing (FileOutputStream.write(foo)) in my
    JSP, it writes fine without exceptions. In fact, I use
    FileOutputStream.write() in other code and it works fine. My
    question is: why would FileOutputStream work in packages we have
    developed and not in a third-party package. I have added the
    codebase and filePermissions to <weblogic_home>\weblogic.policy
    without any changes.
    I am running WLS 5.1 and NT 4.0 with SP5.
    Does this problem sound familiar to anyone?
    thanks for any and all help,
    saulj

    HI Mike,
    If you have third party Document Management System, then you can post two different message, i.e. service order in transaction details of the third party tool with link to document which would be posted to third party Document management server.
    If you don't have third party document management system and what to use sap infrastructure, then you don't need to maintain attachment, maintain the link between the third party tool and SAP document repository, with some login utilities.
    Best Regards,
    Pratik Patel.
    Reward with points if it is of any help to you!

  • Compiling a programme with third party package help

    Hello all,
    I am writing a programme with a third party package (freetts.jar). The jar is is the classpath of my 2003 server and it compiles ok.
    import com.sun.speech.freetts.Voice;
    import com.sun.speech.freetts.VoiceManager;
    import com.sun.speech.freetts.audio.JavaClipAudioPlayer;
    When I go to run it with java it cant find a class in the package!! I dont get it?
    When it gets to this part it throws Exeption in thread main java lang noclassfounddeferror com/sun/speech/freetts/VoiceManager
    public void myVoice(){
    VoiceManager voiceManager = VoiceManager.getInstance();
    Voice helloVoice = voiceManager.getVoice("kevin16");
    /* Allocates the resources for the voice.
    helloVoice.allocate();
    /* Synthesize speech.
    helloVoice.speak("Thank you for giving me a voice. "
    + "I'm so glad to say hello to this world.");
    It says that it cant find VoiceManager...I cant work it out, VoiceManager is in the package it imported ok at compilation.....why cant it see it when I run it?? This is driving me CRAZY...please help.
    Phil.

    Yes you were kinda right.. I went back and had another look at the 2003 environment variables. They have one set for the system and another for the current user. I have come to the conclusion that the system variable classpath just doesnt work. I looked at it over and over again and it looked ok to me. I just put the same thing in the users variables and low-and-behold it works!!!!
    Go figure!
    Thanks for that, I just needed a trigger.
    Phil.

  • Using third party packages

    I'm using NetBeans with a Nokia S60 sdk installed to write an app for a phone.
    I need to use a third party math package in the app, but I am new to this, so I have no idea how to do it.
    I've downloaded and unzipped the files for the third party package, but where do I put them and how to I use them in my project?
    (I don't mean how do I use the new functions, but how to I access them in NetBeans ... how do I NetBeans to "see" them ... just wanted to be clear about what I was asking).
    Thanks.
    Message was edited by:
    AlJohnJeffJoe

    Okay, almost there. I added the folder and was then able to use the commands.
    However, when I went to compile I got a weird error:
    Error preverifying class wabaMathFP
    java/lang/NoClassDefFoundError: waba/ui/MainWindow
    I am not using the waba stuff as far as I know, but I did see some waba class files in the same folder. Could that be the problem? It is trying to verify ALL the class files in that folder?
    Any suggestions?

  • JUst installed OS10 maverick. Got updated epson scanner software. update refused opening saying third party could not be opened. same thing when trying to open grab tif file in photoshop. any ideas?gr

    Just installed maverick. dowmloaded updated drivers for epson scanner. could not open download. got message would not open because third party file. Also tried to open grab tif file in photoshop. also denied as third party file. Any ideas?

    dmartinnyc wrote:
    Just installed maverick. dowmloaded updated drivers for epson scanner. could not open download. got message would not open because third party file.
    If you are trying to install the updated Epson scanner driver when you get this message, it will be due to the installer not being digitally signed - which is odd if it is an updated driver. To get past this block, which is a function of Gatekeeper, hold down the Control button and click the installer. A pop-up window will appear. Select Open from the menu. You will now get the option to install the driver software.

  • UTF8 DB using third party package

    I have an Oracle DB defined with the UTF8 characterset. I can use Oracle Forms to insert and retrieve multibyte characters from the DB however, I have not been able to retrieve multibyte characters using third party packages. These packages can retrieve multibyte characters from other DB's. Does anyone have any suggestions or other information about retrieving multibyte characters from Oracle DB's.
    Thanks
    Scott

    Hi,
    Unfortunately there was a regression bug around using the Generic JDBC connector to a Foreign Database in this Technology Preview (3). I'm not able to give you good news as I don't have a workaround for you either.
    You could use SQLDeveloper to connect to the database for live work, unfortunately that will not help if you wanted to create offline objects of some sort using JDeveloper.
    regards
    Susan
    http://www.susanduncan.blogspot.com

  • Can't open a third party CS5 project in CS5

    I purchased 3 After Effects projects from a third party website http://www.pond5.com/ and I downloaded the CS5 version on 2 of them and like CS4 on one and only the CS4 version works.  Yes I tried searching their website for help but there is none.  Just wondering if there is any other reason this might be rejected the error actually says something about attempting to open a project created with 10.0 and cannot be used with this version.  I did an update as well no luck.

    Make sure to apply all the pertinent updates. Also perhaps those CS5 files were saved down from CS5.5 and contain garbage. Likewise there may be third-party plug-ins involved. Same for fonts or specific cross-platform issues. So many things that could be wrong here. Without knowing what the projects contain, impossible to diagnose. If everything fails, you can always download the CS5.5/ CS6 trial and open it there...
    Mylenium

  • Adding downloaded third party packages to my application.

    Hello!!
    I am new to SDN and this is my first post.
    I am building a small application and it should have the ability to read a MS Word file from a location.
    So I downloaded the Apache POI and extracted it to
    C:\Program Files\JavaMy source files are in
    E:\Java Assignment\lalaka\filereaderUtil\MSReader.javawhen i try to compile this, i get the error message saying that the package could not be found.
    I have searched the internet andfound out about the classpath issue. But I am not clear how to do it.
    Do i have to extract the POI files into my source code directory?? how do i get this compiled.
    The same issue has pop up regrding java media framework too.
    How do i add the functionality of a third party(ex: POI, JMF etc;) in to my applet, and how do i set the class path relevantly.

    Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.

  • Open Hub Third Party

    Hi Gurus,
    1. I am creating an Open hub destination as Third Party.
    mentioning my RFC destination as my SRM system RFC Name.
    but my question is where this file will be saved in my destination system.
    What is the physical path name?
    Thanks in advance.
    BI (DSO) -
    > SRM system.
    I will assign full points.

    Hi RK
    Your file will get saved in one of the directories in Application server directory in T-code AL11.probably in  E:\usr\sap\NWD something like that.Probably from there the thrid party tool will FTP to their server.
    Regards
    Chandru

  • Sending data directly from BW To Oracle DW via Open hub Third party tools

    HI All
    We need to send data from SAP BW 7.0 to Oracle 11g DW. The requirement is to pass data through open hubs. So we wanted to explore the option of directly passing the data from BW to Oracle using third party tools. So i tried to gather information on the third party tools and came across list of APIs and some pointers on creating a RFC through SM59. But dont know how to do it or what parameters to pass. Could you please point me in the direction or list me step by step detailed instructions as to how I can achieve this?

    Hi Amit..
      I can see  the following  will make things work for  you.
    1) BODS.
    2) PI ( XI).
    3) BI7.0 to FTP and from FTP  you to push these tp  your oracle system..
    Regards,
    rajesh

  • Ear files and third-party packages

    Hi all.
    I don't know where to put a third-party .jar package into an ear file. Does it have to go under the META-INF folder, or maybe it has to go at the same folder as ejb jars go? I read the J2EE specs, but it doesn't make up my mind.
    Thanks very much.

    In meta-inf folder change application.xml
    in <application>
    add here u'r application jar and third party jar
    eg
    <module><ejb>test.jar</ejb></module>
    <module><ejb>test1.jar</ejb></module>
    </application>
    put u'r all jar files ( application and third party jars )in parent folder.

  • I can't open every third-party applications on my iPhone 4S, please help!!

    Hello everyone,
    Here's my problem:
    I can't open every applications except all the built-in appplcations (Calendar, Clock etc.), in other words, all third-party applications are crashed when I open them.
    I use two accounts (A & B) to download apps, after I change my current account A to another one B, the applications which belongs to B are working, and I try to download a new app it's working too.
    When I change account B back to A, B's apps are still working, however all A's applications still crashed. But I downloaded a new app using account A, it's working...
    So what can I do about all my existing account A's applications?? please help me thx...
    Info:
    iPhone 4S 16G (unjailbroken)
    iOS 5.1.1

    Why are you using two accounts? That is most likely creating the conflict. Try picking ONE ID, then try downloading a new app from the App Store on that ID and see if your other apps work.

  • Compiling problem when importing third-party package

    Hi,
    I have a question about compiling a java application program. I tried to use a free package from third-party, say "abc.jar". I added it to my classpath by setting Win2000 CLASSPATH environmental variable.
    When I compile the program, it complained that it can not find the classes inside the abc.jar file.
    My program is located at: C:\test\Test.java. The abc.jar file is located at: C:\libraries\abc.jar. It is already set in classpath.
    Here is the structure of Test.java:
    import com.abc.def.ghi.PLOT;
    import com.abc.def.ghi.GRAPH;
    class Test {
    //main method using PLOT and GRAPH classes from abc.jar
    Suppose now I am in C:\test\ directory, this does not work.
    javac Test.java
    Then still in C:\test\ directory,I tried:
    javac -classpath ".;c:\libraries\abc.jar" Test.java
    Still it does not work, it complains that it can not resolve symbol "PLOT","GRAPH".
    How to solve this problem?
    Thanks.

    I'd put that JAR file in the same directory your Test.java file is in for now. You should keep it close to the Java files that use it in any case, IMO.
    Ditch that system CLASSPATH. (I don't have one.) You should always set the CLASSPATH as you need it when you compile and run.
    The statement you need to compile is:
    javac -classpath .;abc.jar Test.javaIf that works, you run by typing:
    java -classpath .;abc.jar TestThis assumes no package statement in Test.java.
    Are you sure that JAR contains two files named PLOT.class and GRAPH.class, both with paths com.abc.def.ghi? If not, the class loader won't find them in the JAR.
    It'd be better if you cut & pasted the message verbatim. If you've quoted it properly, the error you got sure is weird.
    That message means you've got a CLASSPATH problem. It's the stumbling block of every newbie. Don't rest until you figure out what you've done wrong. - MOD

Maybe you are looking for