Not another classpath problem...

I'm trying to use the TableExample demo from jdk1.3.1. I'm using cloudscape as the database for this from the j2sdkee1.3.1.
The database starts no problem (rmi mode).
So I run the example and provide the database driver in the popup window, only to get the exception:
java.lang.ClassNotFoundException: COM.cloudscape.core.RmiJdbcDriver
So it can't find the class at all. So to try things out I attempt to run this class (knowing that it won't have a main method, but just to see if it is found):
C:\jdk1.3.1\demo\jfc\TableExample>java -classpath %CLASSPATH% COM.cloudscape.core.RmiJdbcDriver
Exception in thread "main" java.lang.NoSuchMethodError: main
So my system can find the class but not the main method in it. So why can't the demo application also find this class?
I must have read lots of tracks on classpath and though I knew what I was doing (adding all paths/jars to the classpath environment variable). Obviously I don't!
ps Both running the application and trying to run the class were from the same shell using the same value of classpath.

I work under NT 4.0 and am new to java. I have this batch file which I run in a command window before starting to work:
PATH=.;D:\Java\jdk1.3.1_02\bin;D:\Java\jdk1.3.1_02\jre\bin;C:\WINNT\system32;C:\WINNT;
SET CLASSPATH=D:\Java\jdk1.3.1_02\jre\lib;.
Notice the ".", that tells Windows NT to look in the current directory.
I do it this way because I have other development tools installed which also use Java and I did not want to interfere with them as I was learning.
Good luck
Bill

Similar Messages

  • "package does not exist" CLASSPATH problem

    Hi,
    I don't know what's wrong with my CLASSPATH...
    I have an applet with the following import statements:
    import org.xml.sax.XMLReader;
    import org.jdom.*;
    import org.jdom.input.*;
    I have 3 paths in my CLASSPATH:
    .;c:\devtools\jdom-b8\lib\xerces.jar;c:\devtools\build\jdom.jar
    So my 2 questions:
    1) Why doesn't javac recognize the c:\devtools\build\ path?
    2) Why does javac recognize whatever path leads to org.xml.sax.XMLReader?
    Thanks for any suggestions or guesses.

    Thanks for taking a stab at helping me solve this.
    I do have jdom.jar in my \build\ directory, as well as (now) in the \lib\ext\ directory of the jre installation. I'm going to tinker some more to try to make the original CLASSPATH work properly. I'll try using -classpath in my command-line.

  • I think another ClassPath problem

    I have a java application (class) called MainClass in package MP1. I want to use an external class in
    it. the class is called kl1.java and here it is.
    package pak1;
    public class kl1 {
    public int k;
    I tried to import that class using JBuilder, Netbeans with no success. I don't want to put that class in my MP1 package (because it is not actually one but many classes, and they are all defined to be part of the pak1.something.something packages). If i put them in my MP1 package i will have to change every class to be part of the MP1.pak1.something.something package which obviously i can't do.
    So the classes i want to use are located at C:\pak1 and my project is located at C:\myProject. How to use those classes. I added the classes with JBuilder somehow and it recognized them i.e. when i started writing import pak.k... it poped up the autofinish dialog with kl1 class showing. so it found the class. but when i compiled it it said couldn't find class.
    the line kl1 k = new kl1(); was an error, it couldn't find kl1.
    Please help. Thanks!

    in the older versions of NetBeans you had to tell your project which folders to include; you used to be able to do it with a right click on resources and browse, but i've not looked how to do the same thing in the new version yet.

  • Another classpath problem

    im using ubuntu. i wrote a program called FlickrScreensaver in eclipse and got a .class file.
    now when i navigate to the .class file's directory and type java FlickrScreensaver
    i get this
    Exception in thread "main" java.lang.NoClassDefFoundError: FlickrScreensaver (wrong name: screensaver/FlickrScreensaver)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    same if i try this: java -classpath . FlickrScreensaver
    any ideas?
    Thanks!

    Because your class isn't in the default package. It's in a package named screensaver.
    So you would go into the directory below screensaver and run
    java screensaver.FlickrScreensaver

  • Another simple classpath problem question

    Hi All
    Yes I know, there are a lots of questions about this matter, but I couldn't found a solution to my problem.
    I have a simple program:
    public class prueba {
            public static void main(String[] args) {
                    System.out.println("Ahi va...");
    }placed in /tmp/javier/prueba.java
    After compiled, I've tried to run it from / and then problems started:
    cd /
    java /tmp/javier/prueba
    Exception in thread "main" java.lang.NoClassDefFoundError: /tmp/javier/prueba (wrong name: prueba)
    I said, ok...it could be a classpath problem...then:
    java -cp /tmp/javier/ /tmp/javier/prueba
    Exception in thread "main" java.lang.NoClassDefFoundError: /tmp/javier/prueba
    Damn, another try...
    java -cp .:/tmp/javier/ /tmp/javier/prueba
    Exception in thread "main" java.lang.NoClassDefFoundError: /tmp/javier/prueba (wrong name: prueba)
    Jesus Christ....may be the last slash....
    java -cp .:/tmp/javier /tmp/javier/prueba
    Exception in thread "main" java.lang.NoClassDefFoundError: /tmp/javier/prueba (wrong name: prueba)
    Oh...no.... may be classpath to java classes..
    java -cp .:/usr/java/j2sdk1.4.2_01/lib/jre/:/tmp/javier/ /tmp/javier/prueba
    Exception in thread "main" java.lang.NoClassDefFoundError: /tmp/javier/prueba (wrong name: prueba)
    Well, I don't know why this error happens....
    Please, could somebody help me !!!
    Thanks in advance...
    <jl>

    It's not too early to start following the Sun coding
    conventions for Java:
    http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.
    tmlHi
    thanks for your reply.
    Yes, I agree. I use conventions with my programs. But my real problem was with a real application and then I did quickly this simple code to help others to understand the problem and give a fast reply...
    Let me know if that works. (It was fine on my
    machine.) - MODYes it works fine, thanks.... and Damn...Murphys law again, the only option I didn't tried is the solution to my problem... :)
    Thanks again...

  • Movie Playback Problems - works on one machine, not another

    Embeded a Windows Movie Maker using Acrobat 9. Works on my machine, but not another. Both are Windows machines. The other machine gets an error message.
    What could be the problem?

    I embeded a wmv file -- just because that's what i created the file with.
    I think I may have solved the problem --  I converted the wmv file into a
    flv for acrobat 8 and higher, then embeded movie file into the pdf.

  • Problem with SMTP from one computer but not another

    I have an iMac connected directly to my network via Ethernet and a MacBook Pro which connects via wireless. I have a program installed on my iMac that sends me alerts via e-mail, and it works just fine. When I try and use Mail, however, on my MBP with the exact same settings and credentials, it fails. To make this even more perplexing, Mail works fine from my office on a different network.
    To work around this, I use Comcast's SMTP server on my laptop, but why would my regular e-mail provider's SMTP work on one machine and not another on the same network? The only difference is one is connected via Ethernet and the other by wireless.
    I use a Time Capsule as my router and wireless access point. Has anyone got an idea about what's causing this?

    Please report the relationship, if any, of the "regular e-mail provider's SMTP" and your ISP? If Comcast is your ISP, they regularly block use of Port 25, but if you have selected Use Default Port in Mail Preferences/Accounts/Account Information for the Outgoing Server, then it may be making the wrong choice to work with Comcast. Regardless of the ISP, for this regular account click on the arrows beside the name of the SMTP, choose Edit Server List, then click on the Advanced Tab that will then be seen and choose Use Custom Port, then enter the proper port directly -- that port is probably Port 587, but that could depend on the advisory of the email provider for using their SMTP.
    Ernie

  • Classpath problem

    i am here stuck..
    my dir structure is
    c:\my\xxx\yyy\zzz
    i have a code ...
    package xxx.yyy.zzz;
    class A
    // some code
    }i have compiled sucessfully and put the clsss file into c:\my\xxx\yyy\zzz folder.
    now i want to import it in another class
    like...
    package xxx.yyy; // note this
    import xxx.yyy.zzz.*; // note this
    class B
    // some code
    // creating instance of class A here
    }question is how do i compile and run it ?
    i am at c:\my---> what should be the command to compile and run the above code?
    plz give me the explicit command so that i can test and verify . i have given the dir structure.
    i have tried several ways but got class not found exception and errors . i know its a classpath problem but i could not figure out what should i type at the c:\my prompt.
    can u give exact command to run and compile the above code in steps ?
    thanx

    question is how do i compile and run it ?You don't with that code. You've defined class A to have "package visibility," meaning it can't be used from outside its package. You should declare it with public visibility instead, like "public class A {...".
    Once you change that, use these commands to compile and run:c:\my\>javac xxx/yyy/zzz/A.java
    c:\my\>javac xxx/yyy/B.java
    c:\my\>java xxx.yyy.B

  • Visual Voicemail Not Working (New Problem)

    I found another thread with the same title but it was a different situation, involving some kind of tethering hack.
    This time I updated to 3.1.2 this morning and it seemed everything worked fine, but then I missed a call and the no Voicemail followed so I did not think it was important and didn't call back. About 2 hours later I get a call from the same person and I answer and they tell me they left a voicemail why didn't I call them back. So I did a little test and left a voicemail for myself from another phone and I never got it pushed to the phone.
    I can't hear any of my voicemails unless I hold down 1 and call my voicemail.
    I was on the phone with a at&t rep for about 30mins and then a technical support rep for about 30 more mins but they could not find the problem.
    Does anyone have the same problem anyone have a solution?
    I already tried checking the General->Network but I have no tab for Cellular Data Network
    And I tried deleting a "Profile" in the General menu but I have no profile to delete.
    Any help would be appreciated, please

    I was having the same problem with not getting my voicemail. I switched to 3G and it solved the problem, if on the edge network no voicemail. Why is it every update comes with problems? Very frustrating...

  • I can't view multiple images in tabbed panels in photoshop CC (do not have this problem in PS5 or 6)

    I can't set up multiple images in tabbed panels in photoshop CC (do not have this problem in PS5 or 6). Has anyone had this problem with CC and if so do they know the fix?

    I just discovered something really weird.  If I open the images in
    photoshop (and the tabs are not showing) and then open another window on
    top of photoshop (for example word or safari) , then the images and tabs
    show in the photoshop window.  But if I move Pshop to the front screen then
    the tabs disappear!

  • Billed for Premium Tech Support That Did Not Fix the Problem

    i too was scammed last night by a premiun tech support rep...he assured me that the problem i was having with my pc
    could be repaired and pursuaded   me to purchase the 10 month plan for $14.00 month also said if i canceled prior to the 10 mos i would be charged a $59.99 fee.......I told him I would sign up if he could assure me the pc problem would be resolved.
    He also assusred me that if  it could not be resolved  to ask to be transfered to the billing department to cancel the  the plan   I confirmed this with him at least 3 times and he assured me I would not have to  pay and I could cancel with no monetary obligation if the problem on my pc could not be resolved....well it was not  and my computer was left in worse condition than when the premium support tech began working on it...the support tech worked on my computer for 3 and 1/2 hoursI was on the phone with him until 3:30 am....he apologized and said he did not expect the outcome of what happened to my computer. well needless to say when i called billing i was told I was liable for the $59.00 early cancelation fee  it did not matter that the tech did not repair the problem or that he left my computer in worse condition than when he  began working on it.........so technically what they are saying is that I have to pay for them creating problems on my pc that did not exist before I called them   I  The sales rep I spoke to was "scott : he said he was in massachusetts..I spoke with Eric in BIlling and he said he would note on my account what I had told him and asked me to call after the charge appears on my phone bill to see if i could have it removed...i also called billing again today and spoke with another billing rep and she said she also would note my problem on my account and that hopefully the $59.00 fee would be removed..it is very disppointing to know that Verizon Hires people that lie to consumers.....all of their employee conversations to customers need to be recorded and monitored. I received a recorded message from verizon this am asking if i was satisfied with the service i received from tech suppoort with #1 being the least satisfed  which of course described my experience with them.  If My tele phone bill does not reflect the cancellation  of the $59.00charge I will definitly pursue this matter further....

    I was also billed on July 15, 2014 for tech support that did not fix my computer problem. 
    I was billed $99.99 to my credit card to a tech in the country of India.
    I tried to get my money back but the number I was referred to would not answer.
    I immediately went to my bank which took all of the info and changed my credit card number.
    The bank also did their own investigation and said it seemed to be a scam.  My money was redeposited into my account within 36 hours - not because of anything Verizon did, but my BANK!!   I was so grateful.
    Such service from Verizon's tech department is unethical and inexcusable.
    Verizon customers deserve better tech service than this.  "Ma Bell" would turn over in her grave if she knew how far down the service of the original phone company has gone. It's a disgrace!!  A SCAM perpetuated and sanctioned by Verizon.
    I complained to the Verizon Customer Correspondance Claim Dept.  Do you think they will straighten this mess out?  I doubt it - I am a retiree with an excellent payment record.
    They don't care.  This hurts the American economy.

  • Firefox crashes on start up for one user but not another

    Crash ID: bp-df3a48d7-363c-4d2f-87d3-f73902140723
    Version: 31
    Crashes on start up for one user but not another. Both are administrators.
    I have uninstalled and re-installed. No change with each user.
    Crashes in safe mode as well (holding down shift)
    No addons present in other user.
    Have ran Malwarebytes and cleaned
    Have ran CCCleaner and cleane all including registry entries with Firefox uninstalled.

    Create a new profile as a test to check if your current profile is causing the problems. <br>
    See '''Creating a profile''':
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem <br>
    '''Profile Backup and Restore'''
    *http://kb.mozillazine.org/Profile_backup
    *https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Bridge update does not fix caching problems.

    Dear Adobe,
    The 5.0.1.23 update for Bridge CS6 does NOT fix the problem of constantly re-caching layered TIF files.
    I originaly reported the problem here on May 16, 2012.
    http://forums.adobe.com/thread/1007560
    At that time I also submitted a bug report via photoshop.com, and received an e-mail response from Adobe support confirming the problem had been replicated in their lab and promising a fix in the next update.
    I've since tracked several other reports of this bug and related cache problems.
    I assume that, at best, we will have to wait another 6 months or more for the next update. How can I assure this bug will be addressed?

    redcrown on guard wrote:
    The 5.0.1.23 update for Bridge CS6 does NOT fix the problem of constantly re-caching layered TIF files.
    At that time I also submitted a bug report via photoshop.com, and received an e-mail response from Adobe support confirming the problem had been replicated in their lab and promising a fix in the next update.
    Thank you for this bit of information. Maybe it means I can stop the deactivations/uninstall/reinstall/reactivate cycle to try yet another solution. And hopefully, this will stop the re-caching problem with other than tif files.
    regards
    *S*

  • Just another ANNOYING problem with internet

    Hello everybody !
    So here we go, I am another user that has problems viewing web pages. To make a long story short I would like to add that though I am not a system administrator by any means, I am an experienced user. So if I say for example "I did nothing but the program stoped working correctly" DOES realy mean that I did nothing at all (therefore it doesnt mean that I occasionaly pushed few buttons while viewing complex settings and then forgot about it).
    PROBLEM : Sometimes (randomly) I am not able to view web pages. The problem may disappear suddenly, but otherwise I have to reboot computer to solve the problem (untill it happens again. And it WILL happen withing ~30min...4 hours, so several times a day)
    I USE : Macbook air 2012 (i7 8gb if it does matter). MacOS 10.8.2.   Everything is up to date, I frequently check the system for updates.
    WHAT HAVE I TRIED TO DO TO SOLVE THE PROBLEM :
    1) I have changed the wireless channel so that nobody around uses the same one
    2) I have changed router and internet provider (well I did not change them, I just use my mba at office, at home and somewhere else. Each place has its own router (d-link at work and apple airport express at home) and its own provider)
    3) I have changed mtu (maximum transmission unit) to 1453 from 1500 by default (System preferences -> network -> advanced )
    4) I have tried different public DNS servers
    5) I did try to request DHCP once again when the problem appears
    6) The last but not least - I have tried different browsers (safari, opera, firefox)
    The only thing that works yet - reboot.
    MY STUPID THOUGHTS ON THAT :
    - This is not a router problem, because I have already tried about 4-5 different models, including D-link, Airport and Asus
    - This is not an internet connection problem generaly (I am able to use skype, teamviewer etc. while the problem occurs)
    - This is not a macbook problem, because if I boot Windows (via bootcamp), it seems like I do not face that problem at all
    As a result : this is a MacOS problem, and I have to look for fix inside it.
    SOME ADDITIONAL INFO :
    It realy happens suddenly: I am browsing webpages, everything is ok. Then bum - and the next page starts to load SLOWLY. Few more pages load SLOWLY (if there are pictures, I find "?" instead of them). And then pages stop loading at some moment. If I try to refresh the page, it might help sometimes. But then, finaly, I just lose opportunity to load web pages by any means.  
    The problem may go away for some time, but it will return for sure. Rebooting every time is incomfortable for me, since I have a lot of stuff opened and rearranged between different spaces (desktops).
    Thank you for your time in advance guys ! Hope some of you have already faced the problem and have found the solution.
    Thank you for your time guys.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Copy or drag — do not type — the line below into the Terminal window, then press return:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' 
    Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.) You can omit the final line ending in “$”. 
    Step 2 
    Repeat with this line:
    sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}' 
    This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}' 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null 
    Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Classpath Problem (Using JSAPI)

    Hi,
    I using IBM Via Voice as a the implementation of the JSAPI on my system. I've downloaded the speech for java pack from IBM Alphaworks and put it in the directory of
    c:\ibmjs
    This gives you access to the speech packages for utilisation in your programs so I should be able to import javax.speech in my programs. However the system doesn't see these classes.
    Heres my Autoexec...
    path=%path%;c:\jdk1.3.1_01\bin;c:\ibmjs\lib;
    CLASSPATH=%CLASSPATH%;c:\ibmjs\lib\ibmjs.jar;
    I presume the whole thing is just a classpath problem, does anybody have any idea from the above paths where I am going wrong?

    i guess you have to put some of ibm's dll files coming with speech for java in the path (not classpath). it's not sufficient to have the directories in the path.
    anyway, there come's an installation manual with speech for java which explaines all that.

Maybe you are looking for