Downloading the java devoloper kit

Hi i am a high school student who is learning java. I have been trying for a very long time to download the java developer kit so that i can work on some of my programs at home instead of just at school. Everything that i compile comes up with no errors but when i try to execute my programs i get the "Exception in thread "main" java.lang.NoClassDefFoundError" error. I have done everything that the online instructions tell me to do. If you could help me i would very much appreciate it.

i am assuming you know how to install anyways after installing you need to know where your j2sdk1.4.2_12 folder is. just for instance lets assume you have it in c drive. go to start and then run command prompt window. enter cmd. you should have a path something like this
c:\documents and settings\chris
well do this first
cd..
after that you will have c:\\documents and settings
well do the same thing one last time so then you are in your c:\
cd..
now you will have the screen something like this
C:\
i am assuming your j2sdk folder is in c drive so you will do this next
cd j2sdk1.4.2_12 (then press enter)
now you will see your command prompt like this
c:\j2sdk1.4.2_12
then just type one last command.
cd bin
now your command prompt looks like this
c:\j2sdk1.4.2_12\bin
Thats it BOYyYyyyYyy You got it. The next thing you need to do is type your code in a notepad and make sure MAKE SURE YOU SAVE IT IN THE BIN FOLDER WHICH IS IN J2SDK1.4.2_12 and save it as a .java file e.g (HelloWorldApp.java) in the bin folder.
Now go to your command prompt i hope it is still in bin directory
type this
javac HelloWorldApp.java
no errors HURRAY !!!!
then type java HelloWorldApp
Have fun BoYyYyyYy

Similar Messages

  • It is possible to download the java tutorials?

    Hi all,
    there is a place where I can download the java tutorials? I need them for a computer without connection to internet. I'm interested in all the tutorials, but the Thread and Swing tutorials are the ones that I need now.
    TIA.
    Jorge.

    At least the swing tutorial is there.
    Thanks you.You're welcome. Good luck, and happy coding!

  • Guide me how do download the Java Edition of the Netweaver Sneak preview

    Can Some one please guide me how do I download the Java edition , I have Core FTP installed, On doing a save target as it asks me whehther to use Core FTP for file transfer, on choosing yes it a status window which says connecting,with source and destination values and then gives a message NW04SneakPrevJavaSP11.part1.rar-File not found....
    and thereafter the File Download Dialog still remains trying to find for the source location.....
    Some Kindly guide me the right way to do it

    Hi Paras,
    I just tried to download, no problem. I click on <i>Downloads -> Web AS -> New! Sneak Preview -> Download file 1</i> and get a popup where to save the file.
    Please try again with the given path.
    By the way, it should be enough to post your problem once
    Hope that helps!
    Best regards
    Renald

  • Unable to download the Java 6 JDK API documentation

    Hi,
    now that all the stuff is on Oracle, I'm unable to download the Java 6 API documentation for offline use. NetBeans (an Oracle product after all) requires a local copy to show JavaDoc with code completion.
    Is anyone able to point me to the correct download location? I've browsed the new JDK download page many times and haven't found it.
    Thank you.

    What about [here?|http://www.oracle.com/technetwork/java/javaee/documentation/apis-139520.html]
    It wasn't that hard to find.
    Oops, the requirement wasn't for java ee.
    Edited by: Kayaman on 4.8.2010 10:43

  • I downloaded the java os x 2014 and I still cannot open my CS5.1 photoshop, any suggestions?

    I downloaded the java os x 2014 and I still cannot open my CS5.1 photoshop, any suggestions?

    You installed MacOS 10.10, didn't you?
    Reinstall Photoshop CS5 to replace the files damaged by the MacOS 10.10 installer.

  • Hello. I am using OS X v.10.8.2. Reinstalled Java 1.6.0_37 from Apple Inc. after uninstalling Java7. However, "you need to download the java runtime environment" continues to appear. What should I do?

    Hello. I am using OS X v.10.8.2. Reinstalled Java 1.6.0_37 from Apple Inc. after uninstalling Java7. However, "you need to download the java runtime environment" continues to appear. What should I do?
    Java Test indicates that Java 6 is running well on my Mac. But when trying to run online applications the mentioned error message appears.
    Thanks for your help!
    Eernestojuan

    Hi, Thanks for that further bug description In Your Last Message That Describes The Problem I Am Having perfectly and is exactly the same for me.
    unfortunately that fix for my camera Powershot G6 does not work or apply as the view pictures switch is different on G6 is not usable during download as once you plug in DC/USB cable it turns off, and makes no diff and problem still exists exactly as you just described.
    thanks anyways "Selz Boy"
    it has been 17 days since apple promised to get back to me within 3-5 days hopefully with a solution, but I have still not heard from them.
    They blew me off, i guess, probably i will have to wait for new Yosemite OS update, which they pre-warned me could take as much as 6 months.
    I cannot believe apple released this new update with such major bug issues for camera downloads and that horrible "Photos" pgm which has all sorts of downgrades in features, usefulness and new bugs compared to iPhotos which I just finally got used to and was much better software.
    I am starting to lose faith in Apple and I am getting that Microsoft "FEEL" like I used to have when I was a PC user, which was why I originally switched to Apple  computers in first place.
    Oh well got my fingers crossed here.
    Thankfully the memory card reader solution  is working well, but cost me $45.

  • Firefox says i have java already ..but java is not showing on my control panel what can i do to download the java

    How can you help me clear this problem with Java, my system is windows 7

    Java or JavaScript ?
    To avoid confusion: http://kb.mozillazine.org/JavaScript_is_not_Java
    Your above posted More system details list doesn't show the Java plugin.
    *https://support.mozilla.com/kb/Using+the+Java+plugin+with+Firefox
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • Trying to download the Java Plugin is an impossible situation !   Help ! !

    Dear People,
    You cannot believe what I have been through trying to do a first applet !
    A long time ago downloaded a version of the plugin (a cup of coffee icon in the control panel). Then recently I downloaded a new version
    (1.4.1_01) (a second cup of coffee icon in the control panel)
    Well I was not able to run my first applet after creating a good
    batch file (with help of course) named javacompile:
    echo off
    cls
    PATH=C:\j2sdk1.4.0_01;C:\j2sdk1.4.0_0\bin;C:\j2sdk1.4.0_01\lib;C:\WINDOWS\jbproject\objectdraw.jar
    javac -classpath C:\WINDOWS\jbproject\objectdraw.jar;C:\WINDOWS\jbproject %1
    my program MakeBox.java compiles ok at the Dos prompt
    when I open the MakeBox.html in the browser the error message says:
    "The required component is not available for this version of windows"
    I was told to uninstall the plugin and download it again
    So I took 50 minutes to download it and the message said:
    "You already have the jre1.4.0_01 do you want to uninstall ?"
    so I said "no" ... was this an idiot move on my part?
    then it continued to download the plugin and when it was done it said:
    "You already have the java plugin, do you want to uninstall it?"
    I answered "no"....was this also an idiot move on my part??
    What to do ?
    totally confused
    Stan

    Dear People,
    I just received an e-mail letter from the author of
    "A Eventful Approach" Thomas Murtagh ! ! !
    The most advanced Java paradigm text for Java beginners ! !
    http://applecore.cs.williams.edu/~cs134/eof/
    Even though his letter is very clear, my brain doesn't know what
    to do in the context of compiling at the Dos prompt, (trying to do my
    first applet). Below is the letter and then the code to MakeBox.java
    and MakeBox.html Please shed some light for me.
    Thank you in advance
    Stan
    I meant that in our definition of the WindowController class, we said:
    public class WindowController extends Applet {
    So, when you say
    public class MakeBox extends WindowController {
    the MakeBox class you define is (indirectly) an Applet. In particular,
    with most Java programming environment, you can run the program as an
    applet (i.e. using Sun's appletviewer or JBuilders applettestbed).
    Tom
    Here is the code:
    import objectdraw.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class MakeBox extends WindowController
    public void init()
    this.setSize(new Dimension(400,300));
    public void onMousePress(Location point)
    new FilledRect(40,80,30,20,canvas);
    <html>
    <head>
    <title> Make Box
    </title>
    <body>
    <applet
    codeBase = "."
    code = "MakeBox.class" width = 300 height = 200 >
    </applet>
    </body>
    </html>
         

  • I just downloaded the Java software update and now certain programs aren't loading that use Java?

    So I downloaded the new softeware update and now my programs that use Java won't load. Does anyone know what I can do.

    Due to the extreme unpredictability of the Flashback Trojan, that was constantly changing (and a new variant that's been detected and seems to be worse), Apple decided to play it safe just in case the revised Java code was still vulnerable. So, Java is disabled by default for applets and must be manually enabled as needed (with the warning about possible vulnerability).
    So, head on over to Java Preferences, in Utilities, and enable the thing as needed. Disable when no longer in use for security's sake. BTW, if you enable but don't use Java in awhile, it is configured to self-disable for the same reason.

  • Where to download the JAVA component for BS2005 and SAP XI ?

    Dear all,
       When I install the ECC6 in Linux, system reminder me that the JAVA package is not correct. I wonder where to get the right JAVA component for BS2005? Btw, where to download the SAP XI Component for installation? Tks.
    Regards
    Jialin

    all,
       I have got it from delivered DVD.

  • How can I get my safari 5.1.10 to download the java update so I won't continue to get notices that my browser is out of date and I need to download the update, which then won't download.  Cannot view anything in youtube or most other places.

    Jeez.  Trying to view items in youtube.  I keep getting a blacked out picture telling me my browser is out of date and I need to download the update.  I do that and then it doesn't connect so I'm back at square one. 

    Hi MiMattheMac, you probably won't have any problems but just be aware upgrading from Snow Leopard to anything later is a big leap. Old, PowerPC - only programs won't work, for example, and even more recently developed programs won't work if their developers have not been updating them for recent OS X versions.
    If you haven't made a backup of your Mac yet, and you consider the information on it important, please consider doing that. It is the only practicable way to "undo" an OS X upgrade should you want to. Merely having a backup seems to preclude the need to ever use it.
    If the information on your Mac is not important to you, upgrading to Mavericks is even easier since you can completely erase the Mac first.
    In any event let the download complete.
    If this raises any concerns about installing it, and you need to ask questions to alleviate those concerns, you can just close this window when it eventually appears:
    The 5 GB downloaded file will not be deleted and will remain available until you actually install Mavericks. You can do that at any time convenient for you.

  • Can I download the x64 development kit with 64 bit Windows Vista?

    I have 64 bit Windows, would the latest JDK x64 kit suit me best, or does the 64 mean something else?

    Nope, you got it right. JDK x64 is for 64-bit programming.
    64-bit OS can run on a 32-bit CPU, and 32-bit OS can run on a 64-bit CPU.

  • How do I get to the latest edition of the Java development kit in Win Vista

    Is it only accessible from the command prompt in DOS, or is it in some folder I can get to from the start menu or on my desktop?

    Command prompt. You can "get to" the libraries and the JVM in the sense that applications that need them can use them, but there isn't a GUI component, so you can't launch it in the way that you might launch a browser or something.

  • Java card kit

    hello,
    i am studing informatic ingeeniering and my project is about java card,
    could anyone tell me wich is the most indicated kit to emulate an application just to show how a card works with digital signature and RSA cryptography ?
    u have downloaded the java card kit, but it does not implement cryptography, isnt it?
    i have seen something about JCOP.i think it may be what i need, but i am from spain and i dont know how much time i am going to be waiting for the kit.Could you tell me if its really good for the tasks i want to implement?
    thank a lot,javier

    The new kit does ! I haven't played with it yet, but according to the release documents it states which algorithms it supports !

  • ISO7816 for the Java Card Development Kit

    I'm having problems compiling the sample applets for the Java Card Development Kit (2.1.2). I keep getting the error that anything related to ISO7816 is not recognized. Is there something else I need to have in order to run this?

    You must have not Downloaded the Java Card API211 &Must not Have Given the class path.
    Neelesh

Maybe you are looking for