Problem using 3rd party class

Hi, I'm trying to compile a java code that needs to use a method from a .class file that was given to me, putting this on top:
import build.zzzz.*;
The problem is that I cannot get it to compile, it says it can't find that class:
bash-2.05a$ javac -verbose -classpath ./ proj2.java
[parsing started proj2.java]
[parsing completed 491ms]
[loading ./build/zzzz.class]
proj2.java:7: cannot access build.zzzz
bad class file: ./build/zzzz.class
class file contains wrong class: zzzz
Please remove or make sure it appears in the correct subdirectory of the classpath.
import build.zzzz.*;
The file zzzz.class is under the "build" directory. I tried to copy it also to the working directory and it won't compile. I also tried the fully-qualified path to both directories and wouldn't compile. Am I just importing it in the wrong way? I think the .class file is fine, I can do a javap zzzz and see the method definitions in there.
I would really appreciate any suggestions, since I have a limited time left to finish it.
Thanks!

You told the compiler to look for classes in a package named build.zzzz but you have a class named build.zzzz so it looks like your import should be "import build.zzzz;" or "import build.*;"

Similar Messages

  • 3rd Party classes = Error preverifying class in WTK?

    I am migrating a project done in Eclipse to WTK2.2, it uses 3rd party classes. It worked fine in Eclipse.
    When I try to build i get
    Error preverifying class com.philips.software.wireless.nfc.DeviceCapabilities
    ERROR: native methods should not appear
    Please advice

    You cannot use any 3rd pary classes, specially not if they use native methods!

  • Having problem w 3rd party software ., there tech advsed me to repair  permissions  before  reinstalling software . However  , querrie says  repairing permissions  is not good for  system .  whats up ,, help  !!!

    having problem w 3rd party software ., there tech advsed me to repair  permissions  before  reinstalling software . However  , querrie says  repairing permissions  is not good for  system .  whats up ,, help  !!!

    I've fixed the problem - I think.
    I forgot I had the program "Little Snitch" installed on my computer. So I went into it and saw that it was blocking most of my connections for all the programs I use on a daily basis. Once I lifted the RULE to those certain programs - BAM - everything came back to life in an instant!

  • Using 3rd Party packages when creating jar - program doesn't run

    I am using the xerces and xom packages for xml etc in my program.
    It works fine when run from a command prompt, but as soon as I package it into a jar I get the java.lang.NoClassDefFound error for the nu.xom.Builder class (one of the 3rd party classes.)
    Reading through these forums has yielded several suggestions, none of which work.
    I am probably making some massive stupid mistake, but cannot see it...
    My manifest:
    Manifest-Version: 1.0
    Created-By: 1.6.0 (Sun Microsystems Inc.)
    Main-Class: be.bavardage.vocab.VocabGUI
    Class-Path: serializer.jar xercesImpl.jar xercesSamples.jar xml-apis.jar xom-1.1.jar
    using the jar comand line prompt:
    jar cfm vocab.jar MANIFEST.MF be\bavardage\vocab\*.classCan anyone give me any indication as to what I am doing wrong...

    bavardage,
    I too am reading forum messages to try to do just what you originally wanted to do. I have 3rd party JARs and I have always first extracted them and then turned around and JAR'ed them up into my single Remote.jar (actually I'm so new to Java that I don't yet change things that aren't broken and this was working when I got it)
    jar  xf  jakarta-oro-2.0.5.jar
    jar  xf  jasperreports-1.2.1.jar
    jar  xf  iReport.jar
    jar cmf  mainClassSpec  Remote.jar  *.class  org/  net/  it/I am reading the forums for a way to NOT do this. My reason is because I want to make the application Java Web Start (JAWS) capable. By zipping all the JARs up into one I end up with a JAR over 6 MB! I am also adding internationalization and I really need to keep the ListResourceBundle classes in a separate JAR so I can keep adding languages and not cause the entire 6 MB file to be downloaded each time.
    Using Java Web Start is the real motivating force here. I need to keep all JARs separate so that when there are code changes or new languages only one small JAR will be downloaded again by JAWS not the huge iReport.jar file at 4,218KB nor the somewhat smaller jasperreports...jar at 1,225KB (at 64KB jakarta-oro...jar is hardly worth mentioning) .
    I will watch this thread to see if you or anyone else later comes up with the information to reference external JARs (while in a Java Web Start environment).
    So to put it in a question format, can anyone provide some information about referencing external JARs in a normal environment and will it work in a JAWS environment (I do know the technique for specifing and downloading multiple JARs in a JNLP file)?
    Hopi(ng)

  • Connection problem with 3rd party software

    I am having a problem with a developer tool (pl/sql developer) in that my connection keeps closing whenver i query a table. i know this sounds like a software problem and nothing to do with oracle, but this happened on my friends machine and after hours of searching we found out that it was caused by a setting in a configuration file. this setting caused problems when 3rd party applications were using oracle. however, we cannot remember what the file was, and I'm wondering has anyone encountered this type of problem before and if so how do you solve it?
    Thanks very much

    Maybe this has something to do with connection timeout for Oracle network configuration settings:
    in file sqlnet.ora (located on server side), check these values or set them
    appropriately:
    SQLNET.INBOUND_CONNECT_TIMEOUT
    SQLNET.RECV_TIMEOUT
    SQLNET.SEND_TIMEOUT
    See http://download-east.oracle.com/docs/cd/B19306_01/network.102/b14213/sqlnet.htm#sthref370

  • Does any one used 3rd party components like ICEFaces ?

    Hi
    Thank you for reading my post.
    does any one used 3rd party components like ICEFaces components with Creator Studio?
    What are other components pack that we can use in Creator?
    thanks

    OK, thanks to Peter Hanusiak, and Oracle Consulting consultant in Slovakia, I have resolved my issue and I'm hoping that the same solution may apply for you. See below for the instructions from Peter that helped me out. Note that since our applications are different, the specific libraries and locations that you need to confirm compatibility for may be different.
    Hope this helps,
    Dave
    I had similar problem. And in my case it was caused by different ADF from JDev and SOA Suite and SOA order booking demo.
    Because I can't test it now, I'll tell just what I remember.
    In SOADEMO is somewhere folder SOADEMO-CLIENT\UserInterface\public_html\WEB-INF\lib
    where you can find
    adf-faces-impl.jar
    jsf-impl.jar
    Try to find exactly the same libs in Jdev and copy&paste from Jdev to SOADEMO folder. then find the libs in SOASuite, and copy&paste from Jdev to SOA Suite those libs. Restart SOA Suite. Deploy Soademo-Client. And hopefully it will work.

  • Is it safe to use 3rd party chargers

    is it safe to use 3rd party chargers on the ipod touch 4g or can it mess up the touchscreen or should i get the official apple ones because i have heard some of them blowing up :O and catching fire so do they get hot while they are charging (uk 3 pin) thanks

    I sometimes charge mine from my iPad 1 charger or my Griffen charger I purchased from my 3G Nano.
    s.salmanhussain10 wrote:
    bob please tell me so its safe to charge from ipad original charger? n from any iphone(original/3rdparty) charger ?
    thanx

  • Getting chapters from PPro 2.0 into Encore 2.0 while using 3rd party encoder

    Placing chapters in Premiere is a HUGE time saver. However, I also like to use 3rd party software to encode my videos to MPEG (Canopus ProCoder2.0). This process loses the Chapter information that the .avi file carries. Is there any way to get the chapter information into Encore while still using ProCoder?

    Ok, thanks. I really wish Adobe would allow users to import and export chapter information. That would greatly increase my workflow. The thing that kills me is that in Encore 1.0, the chapters were connected to the timeline, not the video. So I could drop the AVI file into a timeline in Encore to create the chapter points, then delete it and place my MPEG video in its place. But Adobe got rid of this capability in 1.5.

  • PKI setup using 3rd party certificates

    I want to configure SCCM in our environment using are existing certificate creation infrastructure. I do not want to use Microsoft Certificate services. Instead I'd rather use our OpenSSL solution. However I cannot find good documentation to work with using
    3rd party certificates. Everything is related around Microsoft's certificate services.
    Has anyone had any luck implementing SCCM in this manor? Documentation available to aid?

    So we are planning to setup https across the board and going through the blogs and TechNet article - I see that internal PKI is a requirement and you just cannot do away with 3rd party/external certificate, correct ??
    I am working on a scenario where the customer does not want to implement internal PKI but use external certificate either by GoDaady or Thawte or VeriSign where possible at all times but looks like you can't use the external certificate to act as ConfigMgr
    Web Certificate or ConfigMgr DP Cert?
    given the following scenario
    https://social.technet.microsoft.com/Forums/en-US/ac34ebdf-c932-4075-b4a3-ebe572ffab0e/scenario-multi-tenant-configmgr-2012-r2-and-same-ip-address-range-for-multiple-customer?forum=configmanagerdeployment#868600a8-e8eb-471a-b767-761305636041
    for clients to communicate to DP's/Secondary Sites configured in HTTPS, we still need internal PKI ?
    I guess the answer is yes to all.. but just confirming :)

  • Cisco IOS CA using 3rd Party Certificate

    Hi,
    Can I use 3rd Party certificate such as verisign, on Cisco IOS CA ? All i can see on cisco.com is self-signed certificate from router.
    Thanks
    -santo-

    Santo,
    That's fair enough. A key information to make sure customers understand that a private PKI infrustructure is (for the purpose of deployment such as GETVPN) as secure as provided by third part party.
    Private PKI is not based on self signed certificates - only the root CA might need something like it :-)
    That being said, for reliability and flexability I really suggest storing CA (ser, CRL, OCSP, backup of public/private keys) files on storage external to the router.
    Key takeway is that a properly managed private PKI solution for deployments like DMVPN/GETVPN others is as secure as external 3rd party services (and often time order of magnitude cheaper).
    M.

  • What's the standard way to install 3rd party classes?

    Hello,
    Let's say I install my SDK in c:\jdk1.3_02.
    Could anyone tell me the standard way to install 3rd party classes or sources so that I can import them in my source codes please? Thank you so much!

    most of the projects I've seem organize source, binaries etc. in the following directory structure:
    lib - external libraries
    src - the actual source code
    conf - configuration files
    dist - created distributables
    let's say you have everything in the d:\projects\myproject directory.
    -> compile with
    javac -classpath d:\projects\myproject\src
    -> run classes with
    java -classpath d:\projects\myproject\src

  • What is the difference between Outlook features using exchage server and using 3rd party mail server ?

    Hi~ I'd like to know what the difference is between Outlook features using exchage server and using 3rd party mail server.
    If I use 3rd party mail server with Outlook, Outlook features are the same as Exchange Server ?
    I want to use all Outlook features..

    The basic features (and many advanced features) are identical in all accounts. With pop3, your mail, calendar, contacts, tasks, notes are stored in a pst and are only on the computer. IMAP accounts only sync email back to the server, not calendar,
    contacts, and tasks. Outlook.com EAS accounts (aka Hotmail) syncs calendar and contacts back to the server. Exchange mailboxes stores everything on the server - mail, calendar, contacts, custom views, rules - and if you open the mailbox in outlook on
    any other computer, the mailbox is identical. Because everything is on the server, you'll have much better syncing with smartphones and tablets with Exchange mailboxes.
    Calendar sharing, open other users folder, and retention policies are Exchange-only. Mail Tips and apps (linked under the reading pane header in Outlook 2013) are Exchange-only.
    Diane Poremsky [MVP - Outlook]
    Outlook & Exchange Solutions Center
    Outlook Tips
    Subscribe to Exchange Messaging Outlook weekly newsletter

  • Can I use 3rd party instruments/plug-ins/loops with Garageband '11 running OS X 10.6.8? and how do I install?

    Can I use 3rd party instruments/plug-ins/loops with Garageband '11 running OS X 10.6.8? and how do I install?

    10.6.8 won't run on a PowerPC Mac. 
    10.6.8 also won't run the latest Java.  Here's what version of Java you can run:
    https://discussions.apple.com/docs/DOC-5532

  • Using 3rd party library on linux (ABI Compatibility ?)

    Hi all !
    I am facing a problem while developing an application that uses a 3rd party library. This 3rd party library is an OCR Engine.
    Actually I am able to use this OCR from Java via JNI under windows. Now I try to do the same thing under Linux.
    I created a C++ wrapper shared library linking the OCR Engine shared library.
    I wrote 3 JNI functions for :
    - loading the engine
    - closing the engine
    - setting the engine language support
    Using my wrapper from any C/C++ program works fine. But when I use a JNI interface to these method, it ends randomly with a segmentation fault.
    Consider this simple program :
    engine.nativeLoadEngine();
    for(int i = 0; i < 500; i++)
    bq. engine.nativeSetTextLanguage( "French" );
    engine.nativeCloseEngine();
    Sometimes the segmentation fault appears before the nativeLoadEngine(), sometimes after nativeCloseEngine(), sometimes at iteration N etc.
    It cannot be a matter of my JNI code because... take a look at my functions bodies :
    * Class: com_XXX_ocr_OCREngine
    * Method: initEngine
    * Signature: ()V
    JNIEXPORT void JNICALL Java_com_XXX_ocr_OCREngine_initEngine( JNIEnv* env, jobject thisObj )
    * Class: com_XXX_ocr_OCREngine
    * Method: closeEngine
    * Signature: ()V
    JNIEXPORT void JNICALL Java_com_XXX_ocr_OCREngine_closeEngine( JNIEnv* env, jobject thisObj )
    * Class: com_XXX_ocr_OCREngine
    * Method: setTextLanguage
    * Signature: (Ljava/lang/String;)V
    JNIEXPORT void JNICALL
    Java_com_XXX_ocr_OCREngine_setTextLanguage( JNIEnv* env, jobject thisObj, jstring textLang )
    Even if I do "nothing" in the bodies, I face segmentation faults. If I don't link the OCR library, it is self-evident that there is no problem.
    I even used JNA (https://jna.dev.java.net/) to access a shared library exposing my three functions and linking to my 3rd party .so. I reproduced the same issue.
    Config :
    Ubuntu 2.6.20-16
    gcc 4.1.2
    libstc++6
    jdk1.5.0_11
    My wrapper and OCR Engine are both linking to :
    libc.so.6
    libstdc++.so.6
    My libjvm.so is linking to :
    libc.so.6
    I tried both g++ and gcc to compile my wrapper.
    Am I facing a kind of ABI compatibility issue between libjvm.so and my OCR engine 3rd party library ?
    I tried some compile command tweaking but it was pointless. It really seems hopeless to me...
    Thanks for any help.

    I believe I built Boost using the complete option. I have several files for each library, for example, I have the following in the boost_1_47_0\stage\lib\  folder:
    libboost_regex-vc100-mt-1_47.lib
    libboost_regex-vc100-mt-gd-1_47.lib
    libboost_regex-vc100-mt-s-1_47.lib
    libboost_regex-vc100-mt-sgd-1_47.lib
    libboost_regex-vc100-s-1_47.lib
    libboost_regex-vc100-sgd-1_47,lib
    boost_regex-vc100-mt-1_47.dll
    boost_regex-vc100-mt-1_47.lib
    boost_regex-vc100-mt-gd-1_47.dll
    boost_regex-vc100-mt-gd-1_47.dll
    I think the ones that have the -s- in the filename are the static versions of the library.
    I've tried changing the Project Properties->C/C++->Code Generation->Runtime Library settings without luck. And I'm not sure if there are other settings that I need to change.

  • Using 3rd party binary in script that is run as job

    Hi all,
    I have several scripts to do various tasks with IIS logs we receive from all our various web servers.  One script unzips logs, another logparses to grab a few fields then sftp to a 3rd party for analysis, another will encrypt the original zip files
    in prep for ftp to 3rd party, another will ftp to that 3rd party, and yet another will analyse the logs with our in house analytiscs application.
    I want to have a master script that will run these other scripts as jobs so that it will control when to start certain scripts based on the state of the jobs.  It all seemed to work great as I was setting up test jobs, until I added '3rd' party executables
    like 7-zip, ftp.exe, winscp, etc...  The jobs would just go to failed state when they hit the executables.
    That's not my current problem though as I found out that if I used the
    -windowstyle hidden option for start-process then everything ran as expected, that is until I wanted to log output from the 3rd party app.  FTP for example.
    I tried this:
    $ftpexe = "C:\windows\System32\ftp.exe"
    $ftpscr="d:\scripts\ftpscrtmp.txt"
    "open 111.1.1.1`r`nSomeFTPuser`r`nSomepassword <..bunch of other ftp commands>" | Out-File -FilePath $ftpscr -Append -Encoding "ASCII"
    start-process -wait -filepath $ftpexe -argumentlist $ftparglist  -RedirectStandardOutput $ftplog -windowstyle hidden
    However, asking powershell to redirect output of a hidden window was probably like asking someone to cover their eyes and read a book and it let me know it.
    I have tried without using -windowstyle hidden and not having any luck.  I want to capture the output of the ftp commands so that I can make sure the file was transferred successfully.  If I run the script without -windowstyle hidden and not as
    a job it works, and I can test the output.  I really want to be able to run this script as a job AND get the output of the ftp to a file... advice?
    Thanks in advance!

    This works with no problem for me.
    Start-Process -wait -filepath ftp.exe -argumentlist  '-s:c:\scripts\ftpcmd.txt' -RedirectStandardOutput c:\scripts\ftp.log
    I get no window and the file gets written.
    This is my ftp command file:
    open ftp.microsoft.com
    anonymous
    [email protected]
    ls
    bye
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Please help! Officejet Pro L7380 refusing to print

    Hi, My officejet pro had a strange power outage (nothing else, computer etc affected) and since then has been flashing and displaying the message "The following printheads has a problem: magenta/cyan" and refuses to print. I have used the HP diagnost

  • How to use a button in a required field

    Hi, this is my scenario: 1) In a Form I have two Blocks 2) In the first, I use a text Item for the customer code, with the required property set to true and with a trigger WHEN-VALIDATE-ITEM 3) In the second block, I use a button that call the 'show_

  • Business Partner Locator in CRM

    In CRM there is a locator search. I think it is search help BUPA_LOCATOR. Can this or has anyone ever enhanced this to add extra search capabilities. Currently it does a basic search on table BUT000 but what Iwould also like to do is provide the abil

  • BPM user role access

    Hi Experts, Who all can access the BPM process? Is it possible to set the userrole access to the BPM process? Scenario : Through webservice, I have to call BPM process..But the BPM process should be accessed by particular user. For example, Manager r

  • Triggering BW load via push buttom

    All,    I am on BW 3.5.  For a occasion business scenario, we have a need to allow business users to fire off a process chain on demand.  Essentially, what we want is a business person to be able to log into BW, go to a 'Z' transaction code, push a b