Can't get j2sdk 1.4.2_03 to compile

I downloaded this file, installed it.
In user variables I have path=c:\j2sdk1.4.2_03\bin
In system variables I have classpath = C:\WINNT\System32\QTJava.zip
and QTJAVA=C:\WINNT\System32\QTJava.zip
When I go to cmd and type javac Hello.java I get the following message:
Exception in "main" thread java.lang.NoClassDefFoundError: /com/sun/tools/javac/Main
I copied Hello.java to the j2sdk1.4.2_03\bin - did not work. There is no directory on my pc /com
I am running Win 2K. Have rebooted and reinstalled multiple times.
I am able to compile using TEXTPAD but on run get a similar message: Exception in "main" thread java.lang.NoClassDefFoundError: Hello
I am able to make HelloApplet and view it using the applet viewer within TEXTPAD and pull it up using IE... any ideas?? please

When I go to cmd and type javac Hello.java I get the following message:
Exception in "main" thread java.lang.NoClassDefFoundError: /com/sun/tools/javac/MainOpen a cmd window, change to the directory that contains Hello.java and use the following command to compile:
"c:\j2sdk1.4.2_03\bin\javac Hello.java"
If that works, do a search for all of the java.exe files in the computer and check that they are all the same. You probably have a copy that is not part of SDK 1.4.2_03 and is being executed because its directory is listed first in the PATH variable.
I am able to compile using TEXTPAD but on run get a similar message:
Exception in "main" thread java.lang.NoClassDefFoundError: HelloThis is because the file Hello.class can't be found. Open a cmd window, change to the directory that contains Hello.class and use the following command to run:
"c:\j2sdk1.4.2_03\bin\java -classpath . Hello.java" BE SURE to include the space and the dot after -classpath
If that works, you need to tell Textpad how to find classes. I don't have that information, search the forums, it's here. Probably involves CLASSPATH.

Similar Messages

  • Where can i get j2sdk

    where can i get the j2sdk for the linux platform. i already downloaded the file named j2sdksolaris...tar.Z. is that the correct file or ... then... how can i install and work under linux. plz provide appropriate commands for installation and compilation....
    thankyou,
    senthil

    http://java.sun.com/j2se/1.4.2/download.html
    I assume the Installation Instruction are just that.

  • Can we get file name which we are compiling in java program

    Hi,
    I want to know if we can get filename(when compiling) or jarfile(when running) which we are compiling in the program itself.
    EX:java -jar myjar.jar
    How can I display jar file(i.e myjar.jar) in my program
    ex:sop("file which compiled is:"<filename>);

    can you rephrase the question in english, please!!

  • How can I get the measured data of a compiled LabView application via active X?

    I want use data measured by a compiled labview application in a visual basic program by the way of active x. i your knowledge base is only explained how to do this with a notcompiled vi
    or how to call a compiled vi but not how to get the properties.

    A. Rafiq's reply / answer is just exactly what I was looking for as well. I'm using it with VBA for an Excel application.
    Note that the differences between this and the "not compiled" VI is that the application is the compiled application name, versus LabVIEW.
    Additional information:
    Remember that when you build the application, it puts the VI(s) in a wrapper app, which requires the Run-Time Engine.
    In order to access the VI, you have to get a reference to it. Doing this starts the app.
    Now the VI's methods and properties are exposed.
    With the GetControlValue and SetControlValue
    methods of the VI you can access all of the controls on the front panel.
    Remember that the values returned from the GetControlValue method are of type Variant.
    If you find you h
    ave some trouble getting data in or out of your (LabVIEW) ActiveX server app, you can also easily write a VI to access the server.
    Remember that if you want to run these, the ActiveX server (LabVIEW) and the VB client app, on a remote machine you must:
    Install on the target machine the LabVIEW RTE (which you can include with Application Builder.
    Running the server app once on the remote machine before running the client is a way for the server app to register itself (at least in LV 5.1).

  • I am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier

    i am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier photo please help me to recover my photos

    Well I'll guess you're using iPhoto 11:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • How can i get all values from jtable with out selecting?

    i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
    Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
    thanks in advance.
    raja

    You could set the table's data model to be the same:
    output2.setModel( output1.getModel() );

  • When I login on my When I sign in to a site on my ipad using my email address as ID a short cut of my email address comes up. How can I get rid of it?

    When I sign in to a site on my iPad using my email address as ID a short cut of my email address comes up. How can I get rid of it?

    You can edit keyboard shortcuts in Settings>General>Keyboard>Shortcuts>Edit.

  • IOS Remote Desktop app and computers connected to SBS 2008--can't get it to work

    I can connect directly to the server without a remote resource in the IOS app.
    But I'd like to be able to connect to computers in the office like we can through RWW. RWW works fine, but not from my phone. (Yes I can connect to the server and take over computers from the phone but I don't want other people in the office to log
    into the server first!).
    I can never get the remote resources section in the app to connect. I usually get "Unable to locate any remote resources for the URL". error in the resources section. I've tried a simple "https://remote.domain.com", "https://remote.domain.com:987",
    etc.  
    We have a self-signed certificate. I can't think of anything in the server setup that is anything other than normal.
    I can do direct connect using "Remote Desktop Connection" in windows 7. In the remote desktop server settings I just put remote.domain.com and "Ask for password (NTLM)" for the login method. Then on the general tab I have just the
    simple computer name and the domain\username. That's all I had to setup to get that to work.
    Any suggestions?

    Hi Michael,
    Thank you for posting in Windows Server Forum.
    Have you setup RD Gateway server in your environment? Are you trying to access the RWW through it?
    On server side you can choose “Bypass RD Gateway server for local addresses” under RemoteApp manager and check the result.
    For more information, you can check below links for detail.
    Remote Desktop Client on iOS: FAQ
    http://technet.microsoft.com/en-us/library/dn473015.aspx
    Getting Started with Remote Desktop Client on iOS
    http://technet.microsoft.com/en-us/library/dn473013.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • HT4972 After syncing my iPad2 to iTunes, I can't get it to work again.

    Ok, so I wanted to update my iPad2 in order to get the iOS5 (not even really sure what that it). So, I hooked it up to my computer, which is not the original one I had synced it to. It wanted to restart everything from the original iPad settings, so I stopped it.  I then hooked my iPad up to my original computer. When I looked at iTunes it had all my Apps, etc on it and I hit the "sync" button.  It looked like everything was syncing just fine.  But, when it was all done and I go back to using my iPad, it is saying to either: 1) set up as new iPad (which I don't want to do), 2) restore from iCloud backup (don't know how to do this) or 3) restore from ITunes backup...this is what I clicked on. I then plugged my iPad back into my computer with iTunes and started again. However, I can't get any further than this.  Nothing is happening!  Help!!!!!

    That message means that you have to restore the iPad now. Something went wrong. You need to restore the iOS software and then restore from the backup.
    Read this carefully and follow the instructions. Make sure that you restore from your backup at the end of the process. That is covered at the bottom of the support article.
    http://support.apple.com/kb/HT1414

  • Have entrourage and want to use Mail. Can't get it to work.

    I had a macbook and purchased the Microsoft office for Mac which included Entrourage.
    I have now purchased a new macbook Pro and want to begin to use Mail rather than Entrourage. 
    I have Entrourage on my new computer but i can't get it to transfer my information to the the Mail program
    I am on Charter.net at my office and sbcglobal.net at home.
    How can i get this to work.  I can receive on Mail, but i can't send.

    check your outgoing port settings and make sure it's using a specific port and not the default port, also you might want to check to see if it is using SSL, TLS or any other encryption.  Verify the setting from your old machine setup.

  • Got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through?

    got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through?

    If it's showing the red disabled screen due to incorrect passcodes then you may need to put the iPad into recovery mode : http://support.apple.com/kb/ht1808 - you should then be able to reset the iPad via your computer's iTunes and restore/resync your content to it

  • HT1151 i have a new apple external dvd drive, and i can't get it to work with my iMac?

    I have a new apple dvd drive, I was told it will work with my imac,  but when i plug it in ...nothing... iv been for update... still nothing. How can i get it to work???

    If it is this drive, note that it is for MBA's and Mini's only:
    http://store.apple.com/us/product/MC684ZM/A
    Ciao.

  • How can we get Apple to correct this issue?

    I have been a supporter and user of Apple since the IIe days.  I still have a G4 on my desktop that works just fine with the software that was useful for those times.  I have worked with a laptop Mac Pro since the fall of 2007 without any real major issues.  However, I am now having all types of problems with the new Maverick OS which I installed about two months ago.  In fact, I actually went to an apple support store and actually paid significant money to have them correct the problems which they said had to do with my keyboard.  I did mention that I wasn't having the problems until I installed Maverick, but they didn't mention that many people were having any problems with that OS.  I'm so used to everything working smoothly with Macs that I didn't even suspect an OS upgrade would create such havoc.  I'm very disappointed with what is happening. It all started when I received a message that some software package would no longer be supported for my Snow Leopard, and I needed to upgrade to Maverick. Since doing so, my computer has done all kinds of goofy things.  The worst issue is on startup.  My sign in screen comes up and I can't move my cursor.  If I hook up a wireless mouse, the cursor will move and I can get into the password position, but I can't get it to take a typed password or react to anything.  I finally started taking the battery out of the laptop for 30 seconds and re-installing it and that process would seem to get results, but it seems to be getting less successful. I like some of the features of the new OS, but it is giving me so much trouble with startup that I'm very frustrated. I also noticed that my power light does not stay lit when the computer is on. The battery shows a full charge, so I don't think it is a battery issue. Has anyone else had this problem.

    Given your description, at least some of the problems you're experiencing are probably due to woefully outdated software on a seven year old MBP.
    It's also possible that more memory would alleviate the symptoms, since Mavericks will run in 2 GB, but 4 GB is a more realistic minimum. You can install as much a 6 GB in your MBP, but without additional information it is impossible to conclude more RAM alone is going to solve what's wrong.
    If you don't know where to start consider running EtreCheck and posting its results as explained below. It will provide a quick summary of your system configuration, to preclude the need for a dozen time-consuming questions. None of what follows is intended to fix anything, but it will provide the additional information required to advance troubleshooting.
    There are five separate parts to it; please consider everything and reply with your results. The prerequisite (Part 0) is labeled that way because it is more important than anything else.
    Part 0
    The first task you must do is to satisfy yourself that you have adequate, reliable backups, since what you describe may presage an impending disk failure. If you value the data on your Mac, you should have backups even if everything is working normally.
    Part 1
    Boot OS X Recovery by holding ⌘ and r (two fingers) while you start your Mac. At the Mac OS X Utilities screen, select Disk Utility. Select your startup volume (usually named "Macintosh HD") and click the Repair Disk button. Describe any errors it reports in red. If Disk Utility reports "The volume Macintosh HD appears to be OK" in green then you can be reasonably (though not completely) assured your hard disk is in good working order.
    When it finishes restart your Mac and test again for operation. If it's still not behaving as you expect it should, please post the results of EtreCheck in accordance with the next step.
    Part 2
    Apple Support Communities contributor etresoft wrote a very useful app to quickly gather certain system information that may help point to a cause of this problem. Read about it here. It contains a link to download EtreCheck. Don't download it from anywhere else (such as may be found by following the results of an Internet search).
    Copy and paste its output in a reply.
    Do not be concerned about anything that says "Problem" or “failed” or anything else that may appear in red.
    EtreCheck was designed to remove any personal information (such as your computer's name and serial numbers) but if you see anything that looks like an email address or any other personal information that should not be divulged to others, please delete or obscure that information when you post the reply.
    When you are finished with EtreCheck, quit the program. It occupies very little space, and you can keep it or drag it to the Trash as you wish.
    Part 3
    Please determine if the problems also occur in "Safe Mode":
    Safe Mode or "Safe Boot" is a troubleshooting mode that bypasses all third party system extensions and loads only required system components. Read about it: Starting up in Safe Mode
    You must disable FileVault before you can start your Mac in Safe Mode.
    Starting your Mac in Safe Mode will take longer than usual, graphics will not render smoothly, audio is disabled on some Macs, and some programs (iTunes for example) may not work at all.
    Merely starting your Mac in Safe Mode is not intended to resolve the problem, it's to observe its performance without certain additional components.
    To end Safe Mode restart your Mac normally. Shutdown will take longer as well.
    Part 4
    System performance problems for reasons that cannot be isolated to any other cause justify an SMC reset. Be sure to read the procedure carefully and follow all the steps exactly as written, even if they seem inapplicable or trivial.

  • I am trying to change or add the email address which is attached to my itunes account. I keep getting a notice saying email address is already verified for another Apple ID. Im sure its one of my devices. How can I get my current email address added?

    My itunes account is attached to an email account that I no longer have and cannot retrieve. I have been having trouble with purchases made to my itunes account and want to view my purchases. The support center said that they would email me the purchase history. However, I don't have that email address. When I go to change my email address to my current one, I get a message in red saying that "the email address is already verified for another Apple I.D." I'm sure it is one of my devices as we have 4 ipods and 2 iphones. How can I get my account to use my current email address? If one of my devices was registered using my current email address as it apparently was, do I need to figure out which device that is and remove the email address from that account? I'm so confused. I just want ALL my devices to use my current email address. I need to replace the old email address with my current one. How do I do that?
    thanks for any assistance.

    Your best bet would be to try resetting the password to the account that you would like to use via iForgot
    Once you log in to that account change the email address to anything, it can even be fake its just a placeholder
    After you do that you will be free to change your old email address on your appleID to the new one that is now free to be used as it is no longer attached to the other account.

Maybe you are looking for

  • What are EXACT STEPS for giving an applet unrestricted access?

    Hello all, My company has developed a library for Java applications, and it's packaged in a jar file. We recently needed to create an applet to put on our website to demo the library's functionality. However, because it wasn't designed to be used in

  • Infinity blocking one site

    Since having infinity installed I cant access a particular site,if I connect on my work computer or via 3g on iphone or ipad there is no problem at all, bt tech help can access the site but can't explain what the problem is and why I cant, anyone abl

  • param name='progressbar' value='true' is not working, shows as empty

    Hello everyone, I have a very odd problem with the above tag within an applet. I am running the same applet, using the same JVM version and same browser version, but on different LANs. On one system, the progress bar will correctly update as the Jar

  • NI 9402 edge counter works, no frequency though

    Hi guys, I've been searching these forums for about 20 hours now but I still can't seem to get this to work. I have a NI cDAQ-9172 with a NI-9402 digital I/O module hooked up to an 360 count/rev optical encoder. The encoder produces square wave pulse

  • Making a Scan Visible on screen

    I have scanned a handwritten document, but the pdf appears too light onscreen to use.  How can I increase the contrast on screen so the drawings appear darker?