CLASSPATH nightmare!!!

Hi
I'm, as you would, guess new to Java and I have two problems I would apprciate some help with.
1. I have a fresh instalation of JDK on my Redhat distro and it works perfectly untill I try to import the javax.* librarys. Now I know that most people seem to have a problem with setting their CLASSPATH correctly but believe me, I have tryied every possible option. Just to assure you here are some of the options tryied.
1. Setting CLASSPATH in the bashrc file through
export CLASSPATH=$CLASSPATH:/usr/jdk/jre/lib
2.Giving the classpath as a command when compiling through
javac -cp /usr/jdk/jre/lib NYCTax.java
and any other combination of the two (not that there are to may :).
But still I get the noClassDefFoundError.
What ever I try when I check to se if I've succesfully included the javax library by typing $ java javax.swing.JFrame (for example). I get the same error message.
My second question is regarding trying to get the java VM going on mozilla. Ive tried loading the plugin libjavaplugin_oij.so into the Mozilla plugin folder. And I've tried adding the folder in which this plugin is placed to the classpath of the mozilla run file. But nothing seems to work. All I get is the frame with a pice of Jiggsawpuzzle and the prompt that the java-VM plugin is missing. What am I not doing correctley.
/Newbii

I remember encountering a similar problem (from a while ago, things may have changed) on redhat. I believe you may be inadvertantly using kaffe. What are the results of
which java
1. Setting CLASSPATH in the bashrc file through
export CLASSPATH=$CLASSPATH:/usr/jdk/jre/libYou should never have to import the core classes and this won't help anyway as there are no classes in that directory - they're in the rt.jar.
Ive tried loading the plugin libjavaplugin_oij.so into the Mozilla plugin folder.I've always used a symbolic link. And you have to restart it.

Similar Messages

  • Sdk/jre folder nightmare

    It is a nightmare keeping up sdk/jre folders. Every time, there is a new version of j2se sdk/jre, it always creates a new folder. Then i have go on all the pcs, uninstall old version and change the JAVA_HOME and CLASSPATH. It is pain. Why can't sun just create the generic folder and have an auto uninstall program to automatically uninstall previous version in their upgrades of sdk/jre's? Has anyone have a solution?

    Well, on unix, there is a trivial solution for this: Create a symlink which points to the sdk installation dir, and make symlinks from the executables, too. Here is what I mean:
    I installed java2 sdk to /usr/local/apps/j2sdk. Then I created a link to this dir, named /usr/local/apps/java2. After that, I symlinked all executables from /usr/local/java2/bin to /usr/local/bin.
    This way, if I install a newer version of java, all I need is to change the target of that one link, and nothing else is necessary.

  • 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

  • External hard drive nightmare

    Hi all, first time posting but this site has helped me several times in the past so thank you for that,
    Having an absolute nightmare with an external drive. I've got a Hitachi Touro Pro 4TB USB 3.0 that recently had some trouble with the power supply, over the last couple days the hard drive wouldn't power on if the power cable was hanging the wrong way off of the plug (if that makes sense), haven't had time to get a new power supply so have been dealing with it the last couple of days until I can get a new one.
    Suddenly my hard drive stopped showing up in Finder, I checked Disk Utility and it's still there. The actual hard drive model and, stemming down from it, "EYES DRIVE" (which is what I named the drive) are both still there, but the EYES DRIVE is greyed out. I've tried verify disk which lead to a warning saying it needed repairing, but when I try to repair it I'm told the disk cannot be repaired and to backup any files and restore the drive. It also won't let me mount from that menu.
    I've tried booting up to the Disk Utility menu and repairing from there to no avail, also tried DiskWarrior which tells me there's a hardware issue with the drive, I get the error "Directory cannot be rebuilt due to disk hardware failure (-36 2738)". I'm currently doing a surface scan on it with TechTool Pro, but it's a 4TB drive and this is proving to be taking a very long time. No bad blocks encountered so far but I'm only 15,000,000 blocks into a 976,000,000 block hard drive.
    What are my options here? The data on the drive is extremely valuable and I cannot really afford to lose it. Is it a good sign that the drive name still shows up in Disk Utility or am I still in big trouble?
    Also, I realise I should have multiple backups of all of my stuff, but this drive originally started off as a backup drive that I would keep safe and not touch except for backups, until I got a new retina MacBook Pro and the lack of space on it (256GB) forced me to use it as storage as well as Time Machine backups. There's about 5 years of hard work on it, I'm absolutely kicking myself that I didn't have it backed up elsewhere.
    Thank you for any responses and let me know if you need any more info, I'm really freaking out here!

    Managed to find a solution of sorts for anyone suffering from the same problem,
    It turns out I was unable to access the drive at all because of my MacBook trying to fix the drive before letting me use it, I stopped this by killing the process "fsck_hfs" in activity monitor, an error came up saying I was unable to repair the drive but I was then able to mount the drive as read only and all of my data was still there, ready to be copied onto another drive.
    I tried DiskWarrior immediately after this to try and repair the drive but it put me back to square one (with the drive not showing up and the "fsck_hfs" process running again), so it looks like the hard drive itself is a lost cause, but the data is saveable. I don't think I've ever been this relieved in my life, hope this helps someone else!

  • Why WLS do not refresh the class in CLASSPATH?

    as title, and I have set development mode.

    Hi,
    due to classloader hierarchies, classes on the system classpath can not
    be refreshed (HotDeployment). If you want to use HotDeployment, you will
    have to load your application (and classes) through a WAR or EAR file.
    Hope that helps,
    Nils
    airwing wrote:
    >
    as title, and I have set development mode.--
    ============================
    [email protected]

  • Can not find xml file in classpath

    Hi,
    Can someone tell me how I can please or find a xml file in de webdynpro classpath: I have to place a xml and jar files in the classpath. The jar files are found in the application, but I get the following error: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Unable to read the License file, please verify that you have SyncExLicense.xml file and it exists in the classpath or under com/yash/license folder.
    How can I check if this file is available in the classpath.
    Richard

    hi,
    have you check that all jar files are present or not.
    because when u import par file in to nwds it wont include jar files in that manully you have to import them.
    jayesh talreja

  • Have others experienced a nightmare in signing up for 3 computers on Creative Cloud?

    Have others experienced a ridiculous nightmare, wanting to register 3 computers for Creative Cloud? I signed up for TWO subscriptions.  Spoke to supporton the phone to do this.  Got all signed up on my Adobe ID.... and have been charged for the second month now.
    I only just realized that I couldn't use Photoshop on my laptop, because I have "exceeded my limit" of reigstered devices.  ON the phone with support, obviously in India, I spun my wheels, and spent an inordinate amount fo time, trying to figure out how to fix the issue... with the agent we couldn't even figure out how to FIND my two serial numbers on the computers, to determine which computer was registered with which computer.
    After more than an hour of this, and the agent consulting his senior manager, he comes back on the line and informs me that I cannot register two subscriptions on one Adobe ID and email!!!
    Then I insist on speaking with the manager.  He tells me the same.  I say why then did they even ACCEPT my two subscriptions on my ONE Adobe ID and email??  When I go to MY ADOBE account, it clearly shows the two orders, and the two subscriptions... and on my singel Adobe ID and email.
    This is clearly ridiculous.
    The manager has now asked me for 48 hours, for him to "discover who gave me the misinformation and when".  I told him that that is their internal issue.  I could care less about WHO and WHEN.  I only care about this issue being resolved, and as quickly as possible.  I will also insist on a refudn of the two months charged for a second subscription that was fraudulently accepted.
    Has anyone else experienced this story, wanting to register for 3 computers (or more)?  What was your coutcome?
    Adobe needs to fix this.

    Just wondering why you didn't take the Creative Cloud for Teams route, rather than take out two subscriptions.  But do you the Application Manager installed on each machine?  If so, that should show who is signed in on each computer.  It sounds like the same user is signed on with all three computers, in which case sign out from the one with out your apps installed on, and sign in again using the other subscription ID.
    If this proves problematic, uninstall the Application manager from the third machine, and sign in on the Adobe CC site with the new ID and start from scratch.
    But surely it would be better to sort out the mess you are in, and swap your two subscriptions for a 'Team Subscription'.   Go ask in the Creatice Cloud Forum, and make it clear in the thread subject window that you need help from an Adobe staff member.  We frequently see Adobe staff step in on these forums, to fix complicated issues.
    http://forums.adobe.com/community/creative_cloud

  • 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.

  • Difference between path and classpath

    Difference between path and classpath?

    PATH - set of paths there executables will be found.
    CLASSPATH - set of paths and archives there class files will be found.

  • Why getResource of jar in classpath returns null?

    When i iterate through the jars in the classpath and try to turn them into URL's via the getResources(), they all return null. What am I doing wrong?
    (NOTE: It does print out the classpath properly when i print that out)
    String classPath = System.getProperty( "java.class.path" );
    String delim = System.getProperty( "path.separator" );
    String[] locations = classPath.split( delim );
    for ( int i = 0; i < locations.length; i++ )
          /* ** It doesn't work with either of these statments: ** */
          //This one tries the full path (e.g. /home/me/test/some.jar)
          //Enumeration en = getClass().getClassLoader().getResources( locations[ i ].substring( locations[ i ] );
          //This one tries to use just the local name of the jar (e.g. test.jar)
          Enumeration en = getClass().getClassLoader().getResources( locations[ i ].substring( locations[ i ].lastIndexOf( '/' ) + 1 ) );
          //This just prints null
          while (  en.hasMoreElements(); ) System.out.println( en.nextElement() );
    }Edited by: 6tr6tr on Dec 4, 2008 5:46 PM
    Edited by: 6tr6tr on Dec 4, 2008 5:47 PM

    What you are doing doesn't make sense. The resource locations within a JAR file are relative to the package directory structure within the JAR file, not to its own absolute location on the disk. And you seem to be expecting to retrieve a JAR file from within a JAR file. This makes no sense either.

  • I have had a reinstall nightmare getting my loops back they are in the apple library, I can access them through the media browser but I only have a few available through the loop browser, how do I get them all back there again? please help

    I have had a reinstall nightmare getting my loops back they are in the apple library, I can access them through the media browser but I only have a few available through the loop browser, how do I get them all back there again? please help

    "Where do I find my hundreds of dollars of downloads I have done since 2005?"
    They will only be where you put them  If you are doing the very basics, then they will be on your computer and they will be in your backup copy of your computer.
    The itunes store is not global at all, never has been. You cannot redownload your content from another country.  You can only use the countrys itunes store for the country that you are physically located.

  • Classpaths inside of Jar's effect on command line cp

    If I have a jar with Class-Path set in the manifest, will Java ignore the classpath I use at the command line:
    java -cp conf/log4j.properties;lib/a.jar com.some.target.Main
    If "a.jar" has the class path in the manifest, will the cp I try to pass in get ignored? It seems the case.

    When you execute a command like
    java SomeJar.jarthe only place that Java looks for a classpath is in the jar.

  • NIghtmare - Brand new S230u from major retailer: Lenovo says warranty expired

    I just purchased a new (sealed) Lenovo S230u factory box with security tape on both ends unopened, with no additional tape, from a major online retailer that also have physical stores in selected States.
    It is a refurnished machine, according to the major retailer website, it has 90 days warranty from Lenovo with Levono phone number etc. Having bought several 1000+ Thinkpad and 3000 desktop from IBM, with the *very good* price offered and manufacture warranty, I am willing for the first time to try out the Thinkpads after it is owned by a Chinese company Lenovo. I had been very skeptical whether the Chinese company Lenovo would provide the same level of support as IBM. And this is where the nightmare begins.
    I called and checked with the online retailer and they had a few hundred machines but I bought one of the last one they have in stock since it went to SOLD OUT within hours. I confirmed with them they are factory refurnished machines and they had hundreds of them. With the low price and short warranty, I made sure I have the ability to purchase extended warranty and went to Levono online chat for warranty to confirm how much it would cost to buy extended warranty and that shipping for any needed service is free BOTH ways.  My last machine was HP and I loved how they provided two way free shipping and excellent technical support service. HP helped me fix an unexpected motherboard issue, deemed manufacturer’s defect and replaced it for free.  No way I am buying any laptop with worse off warranty for a cheap price.   The agent confirmed that I will be able to buy extended warranty with 2-way free shipping but need to receive the machine and give them the serial no. for a quote.
    I felt safe, guaranteed by BOTH the online retailer and Lenovo and went ahead with my purchase.
    Having read online discussions, I am very cautious to buy refurnished machines sold on eBay, non-major retailers that may switch off parts and discredit the warranty. I still checked that machine came with security tape sealed on both ends, nothing was altered. 
    However, when I started using the machine, I realized that it said my warranty expired! I called Levono immediately and the first agent gave me the lenovo_pop email address to send in my warranty and told me they can update and extend it for a year - I thought WOW, great if it is one year. I had tech issues as I performed a series of windows, lenovo, microsoft updates randomly, and getting some registry error message and wanted tech support to guide me quickly to restore to factory condition but the request was denied because warranty expired! Furthermore, he said they do NOT honor any warranty of refurnished machine NOT sold by lenovo.com! WHAT??? That is NOT what they informed me from online support BEFORE i purchased the machine!! And if my warranty end date is AFTER the day I called, they could have easily helped me? The machine expired 1/14/2014 (a year from manufacturer’s date) and I bought it beginning of Feb 2014. Oh great, I guess the few hundred customers that bought the same machine a few weeks before me won’t have this problem as I bought the last few machines – no wonder the cheap price for a wonderful laptop.
    This issue was stretched out for weeks! With my case no. CLOSED – reason: no customer contact, when I was waiting for the agent who promised to call me back AFTER I emailed to Lenovo my proof of purchase twice to different emails -  yet no one called. An agent then told me new info saying that the major retailer should be responsible to contact Lenovo. Then another agent said they don't honor any third party refurnished machine, even major retailers!! Another case no. opened and a supervisor escalated to a different Lenovo team with screen captures of links to retailer product page, warranty info, as well as  my conversation with the Lenovo rep, yet I still receive no resolution 10 days after. This is night and day experience compared to previous IBM or HP experience I had. All contradicting info and the customer penalized.
    With the major retailer, I have escalated the issue twice to supervisors, yet the Lenovo closed the first case no. when Lenovo supposed to call me back and the retailer couldn't do much while I still didnt' hear back from the second supervisor but they extended my 14 days return policy to 30 days. Their name not mentioned yet, because unlike Levono, the low level support person called me daily to follow up while I have been chasing after Lenovo every few days and know it would be ignored if I don’t keep pushing it.
    This is madness, and if for the diligent cautious buyer I am, this is what I go through from a major online retailer,  I can not imagine what a normal buyer would go through. Loyal customers should NOT be the ones who pays for this.
    I sincerely hope something can be resolved within a day before my extended return date expired and a senior forum administrator can help me. If not, at least loyal and potential customers would know that things like this could happen and consider this before you buy a refurbished levono anywhere other than Lenovo, and you can be the judge whether Lenovo and it’s policies are worth supporting. 
    To be honest, I loved IBM, I love my new laptop and I just want the technical support I deserve to check on some potential driver issue and windows 8.1 upgrade support. I want to be able to perhaps buy the extended warranty that was promised. The peace of mind. Now I even have doubt about the company and whether to spend extra money for protection that does not protect customers!  To be fair, 90% of the many agents/supervisor I talked to have been professional and helpful which made the process tolerable. The reason I waited so long to post this message on a public forum. It just seems like their system, policies and communication between departments are ridiculous and customers are penalized for it.  If you don’t honor ANY third party refurbished warranty - deal with your wholesale agents, retailers, don't sell new or refurbished machines to them. Your loyal customers should NOT be penalized for it and make sure that customers are well informed if they do simple research! Information across departments should be consistent. And the supervisors of the departments should be able to honor and fix a mistake related to wrong info (if it was wrong) provided by another Lenovo department and handle things in a TIMELY manner. I should not have to spent over 15 hours on this for nearly a month! This is NOT what I expect from a top computer company in the US market. Something needs to be done so other loyal customers do not have to go through this and also ensure that customers who support Lenovo would NOT fall into traps of dishonest merchants.

    wabibi,
    Thanks for the additional details via private message.   My apologies for the troubles you have had so far - let's look into the situation and see what can be done to help you get this resolved.
    Best regards,
    Mark
    ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
    Mark Hopkins
    Program Manager, Lenovo Social Media (Services)
    twitter @lenovoforums
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Not able to load jspx file from the classpath in Integrated OC4J

    Hi,
    I am using integrated OC4J from my jdeveloper to deploy my application as an ear file. It contains one jar file (with ejb deployment desscriptors) and a war file (including Model and Viewcontroller project contents).
    The war file contails a jspx file (say Test.jspx) which contails a link to another jspx file (say Remote.jspx) which resides in its WEB-INF/lib directory.
    When I load Test.jspx and click on the link, it fails to look for the Remote.jspx. It displays a message "OracleJSP error: java.io.FileNotFoundException:" on the web browser.
    From the message written to log file, found that it is actually trying to search for Remote.jspx file in the current context.
    Also tried including the classpath to the jar file containing the Remote.jspx file in orion-web.xml of the web application. using the following:
    <classpath path="file:/xxx/yyy.jar" />
    The issue is still there even after this.
    Can anyone suggest me how to achieve this?
    Thanks,
    Aparna

    this.getCodeBase(), would get RSPL / RLog or whatever you have in your codebase (html parameter of
    the OBJECT/APPLET(:hope not) tag.
    URL u = new URL(this.getCodeBase(), "../something.jpg");
    would get RSPL/something.jpg
    URL u = new URL(this.getCodeBase(), "../VIRA/JPG/00/1.jpg");
    would get RSPL / VIRA / JPG / 00 / 1.jpg
    If you are not sure what your codebase is your can print it out:
    System.out.println(this.getCodeBase().toString());

  • Problem with Class and Classpath

    Hello ME Windows Users, now before you place a wry smile on your face, I have a problem with path and classpath. Stop it, I can see you smiling!
    By visiting the the last 10 pages of the forum and reading Sun installation notes, some tooldocs and by given some answers by some nice people, I have become an expert in turning off my computer, about 10 times/hr. I still am trying to make my first cup of java.
    With the ME computer,
    I'm unable to right click on the desktop and go to properties, advanced,
    I'm unable to go go start, run, sysedit,
    I'm unable to change the ms-dos window of autoexec.bat, it just shuts down.
    Now before you tell me, I should of bought a different computer, the only place I can find to modify the path and classpath is in the environment which is in system configuration under tools. Here I have placed numerous configurations, like
    C:\java>set path=%path%;c:\j2sdk1.4.2\bin
    C:\java>set classpath=%classpath%;.;
    ;java_dir\bin where ;java_bin is c:\j2sdk1.4.2
    .; java_dir\bin; %path% where ;java_bin is c:\j2sdk1.4.2 and the list goes on.
    But, I know you are still smiling, the % signs comes up in a dialog box, saying too many, and will not convert the text to the environment to be saved when I close down for the tenth time in the last hour.
    Can someone help me before I make a real cup of coffee and accidentally drop it on the ME box.
    Have a laugh on me Mik.

    C:\java>set path=%path%;c:\j2sdk1.4.2\binGood
    But it is no good because it has to many % and a dialog box appears, saying you have too many parameters.
    Are you saying I have to shutdown again to answer your ?
    From the HELP menu-
    To confirm startup commands line by line
    Click Start, and then click Shut down.
    Click Restart, click OK, and then press and hold the CTRL key until the Windows Startup Menu appears.
    Enter the number for Step-by-step confirmation, and then press ENTER.
    For each command you want to run, press Y.
    If the command runs successfully, you are prompted with the next command.
    If the command does not run successfully, you receive an error message.
    To skip a command, press N.
    Mik

Maybe you are looking for