Initial setup problems and beginner code questions ...please help?

Hi,
Two days ago i started playing around with Java but it has been one pitfall after another for me. I am a visually impaired user, the fun started when i wanted to install the JDK. I think i got EE 5.0 by mistake, but that doesnt even bother me that much. The installer somehow managed to totally elude the screenreader I was using and I needed sighted help to get the thing installed. I think something went wrong with the environment variables during that process because when I first tried compiling a snippet of code it couldn't find Javac. I had to enter:
c:\sun\sdk\jdk\bin\javac.exe c:\saluton.java
to get anything done. I have been trying to learn java using a three-year old copy of teach yourself Java in 24 hours, which might explain my following questions. Here is the code snippet i got from the first chapter:
class Saluton {
public static void main(string[] arguments) {
// my first Java program goes here
String greeting = "Saluton mondo!";
System.out.println(greeting);
This code didn't compile, complaining about Cannot find symbol.
I took out another book, Learning Java, and i got the following code out of this:
public class HelloJava {
public static void main( String[] args ) {
System.out.println("Hello, Java!");
This code did compile, but when i tried:
c:/sun/sdk/jdk/bin/java.exe HelloJava it said the class couldn't be found. I am assuming this has to do with the .class file not being in the folder where it should be, but again I don't know.
I got the JAB (java access bridge) but I had the feeling the info that came with it is rather outdated ...could someone give me some insight on this as well?
Thanks very much for any help you all can provide,
Florian

Hi,
Using your help I've been able to find the error in the saluton mondo program, the caps of the String in the main function declaration was wrong. I have set my Path to the right setting now, and javac and java behave as they should now which is good.
What about my question about the access bridge? How do i use it, exactly? (just telling me where that info can be found is enough really) I'm really confused by all the different .jar files and such ...
Also, once it is installed do i need to somehow ...activate it or reference it in my code to make my apps readable? I would like to see if my program did what I wanted it to do so yeah ...
Thanks for any help,
Florian

Similar Messages

  • Problem with DOB security question. please help urgently

    Hello,
    im trying to purchase an app at the apple store but i cant for due to security problems.
    my date of birth was ( RANDOM ) when i first signed up for this account  ( BANDORI5) and now it kept asking me for it. not only my DOB but my secret questions as well. i was in a hurry was i wrote random stuff most of it. i never had any problem purchasing apps for while but now its asking me and put me to frustration. please help me resetting my account.
    my generate code ****.
    ID : Bandori5
    thank you.
    <Edited By Host>

    I'm not sure what the 'generate code' is that you refer to, but I've asked the hosts to remove it - these are user-to-user forums.
    If you have a rescue email address (which is not the same thing as an alternate email address) on your account then the steps half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • Problem with my code!Please help:(

    Hi
    Here is the final code to read each byte at a time (using buffered input stream)from a remote sensed image and then store the values in 3 arrays . The image data (it is a remote-sensed image with 3 bands) are represented as a continuous byte stream band sequential. The format of the header is as follows:
    Bands (int)
    Rows (int)
    Cols (int)
    Bits-per-pixel (int)
    and then the image data follow.
    the code is:
    import java.io.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.Panel.*;
    import java.util.*;
    import java.awt.image.MemoryImageSource.*;
    public class Reader {
    public static void main (String args []){
    int numBands;
    int rows;
    int cols;
    int bpp;
    byte[] band1;
    byte[] band2;
    byte[] band3;
    try {
    FileInputStream fis = new FileInputStream ("BROM3.mar");
    BufferedInputStream bis = new BufferedInputStream (fis);
    DataInputStream dis = new DataInputStream (bis);
    numBands = dis.readInt();
    rows = dis.readInt();
    cols = dis.readInt();
    bpp = dis.readInt();
    if((dis.readByte() !='.') ||
    (dis.readByte() !='\r') ||
    (dis.readByte() !='.'))
    throw new Exception ("Bad format: end-of-header expected !");
    int nBytes = rows*cols*bpp/8;
    band1 = new byte[nBytes];
    band2 = new byte[nBytes];
    band3 = new byte[nBytes];
    for (int j=0; j<nBytes; j++) {
    band1[j] = dis.readByte();
    for (int j=0; j<nBytes; j++) {
    band2[j] = dis.readByte();
    for (int j=0; j<nBytes; j++) {
    band3[j] = dis.readByte();
    } catch (Exception e) {
    e.printStackTrace();}
    * Creates three objects of the ImagePanel class
    * and sets the size of both.
    ImagePanel panel1 = new ImagePanel() ;
    ImagePanel panel2 = new ImagePanel() ;
    ImagePanel panel3 = new ImagePanel() ;
    panel1.setSize (512,512);
    panel2.setSize (512,512);
    panel3.setSize (512,512);
    * Converts the 3 arrays into
    * images using the MemoryImageSource class and the Panel's
    * createImage method.
    Image green = panel1.createImage(new MemoryImageSource(512,512,band1[],0,512));
    Image blue = panel2.createImage(new MemoryImageSource(512,512,band2[],0,512));
    Image nir = panel1.createImage(new MemoryImageSource(512,512,band3[],0,512));
    * Displays the images.
    panel1.setDisplayImage (green);
    panel2.setDisplayImage (blue);
    panel3.setDisplayImage (nir);
    * Creates two Frame objects to display the panels in and
    * sets the size of both.
    Frame frame1 = new Frame ();
    frame1.setSize (512,512) ;
    frame1.add (panel1);
    Frame frame2 = new Frame();
    frame2.setSize (512,512);
    frame2.add (panel2);
    Frame frame3 = new Frame();
    frame3.setSize (512,512);
    frame3.add (panel3);
    * Makes the panels and the frames visible
    * and sets the location of the frames.
    panel1.setVisible (true);
    panel2.setVisible (true);
    panel3.setVisible (true);
    frame1.setVisible (true);
    frame1.setLocation (100,100);
    frame2.setVisible (true);
    frame2.setLocation (512,100);
    frame3.setVisible (true);
    frame3.setLocation (1024,100);
    } //End of main
    there is a problem especially in the MemoryImageSource bit.Can you please help me?
    Thank you very much
    Maria

    It usually helps to know what the problem is before trying to solve it. Perhaps you could tell us?

  • Itunes has encountered a problem and has to close ---- Please help me

    I had to restore my computer this week. itunes was working fine before I restored. I have a video ipod. I installed from the disc but it encountered a problem half way through. I removed this using the control panel. I then downloaded itunes from apple.com. It installed it but it won't open, it comes up with itunes has encountered a problem and has to close.
    I have used all the info on apple.com on how to deal with this, but to no avail.
    Please can somebody help me

    I am having the same problem and error messages. I had a previous version of Itunes, but updated to the new version today after purchasing an ipod shuffle 2nd gen. I am told that itunes and quicktime installed successfully, but when i go to open itunes, i get the "Itunes has encountered a problem an needs to close. We are sorry for the inconvenience." When i try to open Quicktime, it tells me "quicktime failed to initialize. error # 2905" when i go to the apple.com website and click on the Quicktime tab i get a "plugin error. The plugin did not initialize properly" Help.

  • Problem with php code. Please help!

    Hello!
    I'm using the following syntax to bring content into my
    websites' layout template:
    Code:
    <?php //check in the root folder first
    if(file_exists('./' . $pagename . '.php'))
    include './' . $pagename . '.php';
    //if it wasn't found in the root folder then check in the
    news folder
    elseif(file_exisits('./news/' . $filename . '.php'))
    include './news/' . $pagename . '.php';
    // if it couldn't be found display message
    else
    echo $pagename . '.php could not be found in either the root
    folder or the news folder!';
    } ?>
    What it's essentially saying is, if you can't find the .php
    file in the _root folder, look for it in the /news/ folder.
    It works perfectly if loading something from the _root folder
    but I get an error if I need to bring something from the /news/
    folder.
    Can anyone see any potential problems with my code?
    Thank you very much and I hope to hear from you.
    Take care,
    Mark

    I've never seen the code written like that before, but I'm
    assuming it's
    legal?
    Perhaps try:
    <?php
    $newsroot = $_SERVER['DOCUMENT_ROOT']."/news";
    if (!file_exists("$pagename.php")) {
    elseif (!file_exists("$newsroot/$pagename.php")) {
    else
    Or the other thing you can try is replacing the elseif
    statement with:
    elseif (!file_exists("news/$pagename.php"))
    If not - I'm sure Gary will be on here soon...
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Spindrift" <[email protected]> wrote in
    message
    news:e5mled$272$[email protected]..
    > Hello!
    >
    > I'm using the following syntax to bring content into my
    websites' layout
    > template:
    >
    > Code:
    >
    > <?php //check in the root folder first
    > if(file_exists('./' . $pagename . '.php'))
    > {
    > include './' . $pagename . '.php';
    > }
    > //if it wasn't found in the root folder then check in
    the news folder
    > elseif(file_exisits('./news/' . $filename . '.php'))
    > {
    > include './news/' . $pagename . '.php';
    > }
    > // if it couldn't be found display message
    > else
    > {
    > echo $pagename . '.php could not be found in either the
    root folder or
    > the
    > news folder!';
    > } ?>
    >
    > What it's essentially saying is, if you can't find the
    .php file in the
    > _root
    > folder, look for it in the /news/ folder.
    >
    > It works perfectly if loading something from the _root
    folder but I get an
    > error if I need to bring something from the /news/
    folder.
    >
    > Can anyone see any potential problems with my code?
    >
    > Thank you very much and I hope to hear from you.
    >
    > Take care,
    >
    > Mark
    >

  • Airport Extreme setup problems on existing WDS network - Please help!

    I just bought a Time Capsule and have setup a WDS network for the house. The Airport Express joins the network just fine as a remote WDS device. I cannot get the Airport Extreme (v5.7) to join the same network. It just continues to make a *separate network with the same name* despite the Channel being the same, the WDS being set to remote, and the main ID of the Time Capsule has been put in correctly. In other words, since I setup the airport Express correctly, I cannot figure out for the life of me why the Airport Extreme is not joining correctly.
    PLEASE HELP. I've been trying this for 6 hours now and countless total restarts by hard resets of all the equipment.

    Hello arthung. Welcome to the Apple Discussions!
    Let's double-check your WDS setup ...
    (Note: To facilitate the WDS set up, place the base stations within near proximity of each other during the set up phase, and then relocate them to their desired locations when complete. Also, jot down the AirPort IDs for each of the base stations to be used in the WDS.)
    o Perform a "hard" reset on the Time Capsule (TC) and a "hard" reset on the 802.11b/g AirPort Extreme Base Station (AEBS).
    Main Base Station Setup - TC
    o Click the AirPort status menu in the menu bar and choose the wireless network created by the TC.
    o Open AirPort Utility.
    o Select the TC, and then, choose Manual Setup from the Base
    Station menu.
    o Click Wireless in the toolbar, and then choose “Participate in a WDS network” from the Wireless Mode pop-up menu.
    o Click WDS and then choose “WDS main” from the WDS Mode pop-up menu.
    o Select the “Allow wireless clients” checkbox if you want client computer to connect to this base station.
    o Click the Add "+" button and enter the AirPort ID of the AX.
    o Click Update to send the new settings to the base stations in the WDS.
    Remote Base Station Setup - AEBS
    o Click the AirPort status menu in the menu bar and choose the wireless network created by the AX.
    o Open AirPort Utility.
    o Select the AX, and then, choose Manual Setup from the Base Station menu.
    o Click AirPort in the toolbar and click Wireless. Choose “Participate in a WDS network” from the Wireless Mode pop-up menu, and choose the same channel as the main base station from the Channel pop-up menu.
    o Click WDS and choose “WDS remote” from the pop-up menu.
    o Enter the AirPort ID of the main base station in the WDS Main field.
    o Click Update to transfer the settings to the base station.
    (ref: Pages 42-46 of "Designing AirPort Networks.)

  • My hp pavilion dv1000 (1615ts) has an overheatin​g problem and shuts down suddenly. please help..

    my hp pavilion dv1000 (1615ts) has an overheating problem and shuts down suddenly.  please help..

    with that age of laptop we immediately suspect an issue with dust clogging the exhaust fan or the thermal compound between the heatsink and fan breaking down and needing to be replaced. The laptop needs to be opened and inspected in other words. 

  • Keynote and hyperlink (webpage) question, please help

    Hi, I know how to insert a hyperlink in a Keynote slide and have it open a web link on a Safari window. However, when I use the presenter's view from my MBA connected to an external projector, the Safari window won't display on the external projector unless I switch to "mirror display" mode. The problem is: once I am done with the webpage and want to return to presenter view mode, I am unable to do it instantaneously. I click on the green arrow on the Keynote icon, but I now see my presentation on my MBA screen mirrored and not in presenter mode. I remember when I had the PB 12" I was able to toggle the option for mirroring and separate screen by using F7, but that option doesn't seem available on the MBA. Do I need to change the Keynote preference? Any suggestions will be greatly appreciated.

    This doesn't really answer your question and I hope somebody comes up with a more efficient solution. However, this is what I do to overcome your problem. The second display (on the external projector) is to the right of the main presenter display. Before the presentation I move the Safari window on my laptop to the right, off the screen. If you have the projector on you will see the window and mouse appear.
    This is also how you get the mouse to control a movie being projected. Move the mouse to the right off the presenter display on to the projected display and on to the movie so that the controls appear.
    I think you can change whether the projected display is on the right or left in the Displays preferences.

  • 10.6.3 - Problems and Attempts at Resolution - Please Help

    It was recommended to me by a regular contributor (RC-R) to put together in one place all the problems I've had and all the solutions I've tried. So here goes.
    Problems:
    (1) Major issue is that my 20" Alu iMac is randomly sent into a sleep mode from which it cannot be awoken - it happens instantly and without warning.
    (2) The issue started immediately after installing 10.6.3 and nothing like it occurred beforehand.
    (3) The issue seems acerbated by using Safari and often occurs within a few minutes of using Apple's web browser.
    (4) Long stretches of avoiding the problem seem possible if using Firefox or Chrome instead.
    (5) Using switching and start-up take longer and sometimes freeze altogether - everything is slower.
    Attempts at restoring normality:
    (1) First of all I disable and then finally uninstalled Rapport banking security software - since this was one of the last programs to be installed and I'd seen reports of problems elsewhere - thought this might be why Safari brought the system down. Didn't resolve the problem
    (2) I'd been having problems with Adobe's installer unable to upgrade Acrobat, and in order to resolve this I reinstalled entirely and got everything cleaned up so there was then no upgrade problems. This didn't resolve the problem either
    (3) I did a reinstall of Snow Leopard and installed all updates again. Still no resolution
    (4) I've also repaired permissions on the disk. But again, you guessed it - still crashes
    Note: I have a MacBook (Alu) with 10.6.3 installed - no problems whatsoever and the programs installed are virtually identical with the exception of VMWare Fusion.
    My Apple Care is close to an end for the machine, so my next step seems to be get the iMac ready to return to Apple before it is too late. Because it looks like a software issue but is acting like a hardware one. The reason I'm assuming it is not a coincidence is because others have had similar problems

    Tried to reinstall 10.6 from DVD, but installation failed - twice.
    Failed how?
    What now? Disk Utility? Format Hard-drive? What is the best way of going about these things?
    It's hard to give any specific recommendations without more information. You could simply have a third-party app that's acting up, or maybe your past reinstalls weren't done correctly. So it's possible that there are less drastic solutions than what I'm about to tell you to do. But, as you say, you just need it working, and sometimes a good "nuke & pave" is quicker than fiddling around.
    Make sure you've got a good backup (see my [Mac Backup Guide|http://www.reedcorner.net/thomas/guides/backups>). Then, boot from the install disk and switch to Disk Utility. Erase the hard drive. When done, just for the heck of it, repair the drive. If there are problems, post back here.
    Now quit Disk Utility and reinstall the system. Once you're done and booted into the new system, run Software Update and install all updates. After that's done and you've rebooted, do it again, continuing until Software Update says you're up-to-date. Now install any third-party apps from scratch, avoiding any initially that you don't absolutely need. (Install those later, once you know your system is stable, and has been for a while.)
    Finally, import your data into the new account. I recommend the manual route, though you could also use Migration Assistant to import from a Time Machine backup or clone. If you use Migration assistant, you have to be cautious not to import a bunch of potentially damaged system settings files. (You'll want to reconfigure your network settings from scratch, for example, rather than importing those settings from the backup.) If you want to go the manual route but aren't sure where to find everything, let us know.

  • Big problem and very stupid mistake, please help me

    I was about to put leopard on my iBook g4 when on the read before installing thing it said if you want to start fresh delete your hard disk. I did that and the cd didn't work so now I'm stuck with nothing on my computer. Oh and by the way I don't understand why it didn't work, when I put the cd in and I restarted my computer it just made weird noises for a few hours and nothing happened. Thanks for helping!

    See if you can use the install disks that shipped with your iBook. If so, then again erase and try installing 10.5.
    As far as retrieving your data (if you have no backup) before you do another operation on that drive your best bet is Prosoft Data Rescue. There is a free trial to see if it can recover what you need. But don't do another operation on that drive until you've downloaded and run it. Also, a service that has been recommended but I cannot personally endorse is DriveSavers.
    -mj

  • Lotus Notes and mail.app question please help me

    Hi all,
    I just started Med. School at a school with a computer requirement. As a huge mac person, I'm very upset that we are required to use windows computers for school. So...I'm trying to use my mac as much as possible. I'm trying to find out how to sync my lotus notes email with mail.app on my mac. Does anyone know how to do this? Your help is greatly appreciated.

    I'd like to know the same!

  • HT204053 Hi, how can I set up icloud for my ipad and iphone5? I missed tout he initial setup step and now want to have both the devices under icloud. Please help...thank you!

    Hi, how can I set up icloud for my ipad and iphone5? I missed tout he initial setup step and now want to have both the devices under icloud. Please help...thank you!

    Go to Settings>iCloud and sign in with your Apple ID to create the account.  Then turn on the data you wish to sync with iCloud.  See http://www.apple.com/icloud/setup/ios.html.

  • Cannot restore my brand new iphone 4s ,got stuck in DFU mode and itunes shows error code (-1) please help?

    Cannot restore my brand new iphone 4s ,got stuck in DFU mode and itunes shows error code (-1) please help?
    repeatedly tried from diffierent computers and the same error code pops up (error -1)

    That's a hardware problem which will require a trip to the Apple store for evaluation, unless your phone has been jailbroken, then it's a corrupt hosts file (and we can't help you with that here as it is against the forum's terms of use).

  • Hi, After I installed Mac Lion, I have problem with the tamil font while typing in Neo Office. Especially with the letters "e-Ex: தெ" and "ai-Ex:தை". Please help me I know its not bug from Apple It shd be some problem in neo.

    Hi, After I installed Mac Lion, I have problem with the tamil font while typing in Neo Office. Especially with the letters "e-Ex: தெ" and "ai-Ex:தை". Please help me I know its not bug from Apple It shd be some problem in neo.

    Is your problem due to the keyboard or to NeoOffice Characters? You have to change probably the font. Not all fonts are supporting all Unicode sets. Which font you have in your NeoOffice set to write Tamil? Try with Arial Unicode MS for example.
    Are the letter e-Ex and ai-Ex right in your posting? If they are right, how you inserted these letters in your posting? By copy and paste or by typing? If by typing, your question is related to NeoOffice. Probably you should reinstall or update NeoOffice? Or switch to OpenOffice?
    marek

  • I want to change my security question in my apple accnt. but the problem is, there is no Link shown that i could reset or change my security questions. please help!!

    i want to change my security question in my apple account. but the problem is, there is no Link shown that i could reset or change my security questions. please help!!

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (117399)

Maybe you are looking for

  • Unable to retrieve data in VBUK

    Hi Experts, We're in an upgrade project. Now, we have this scenario where there is a data in standard table VBUK using filter as VBELN but we cannot retrieve in the program without the leading zeros. Here's the scenario: eg. in our program we have th

  • How to use sql tag of jstl for inserting data

    hello I want to insert the data in to oracle through jsp using standard sql tags of jstl please help me

  • Sender Agreement is not Active

    Hello, I am developing a JMS to File and File to JDBC scenarios on XI service pack 9. All the necessary objects and configuration are created and activated . When i activated them,evertying got activated but i don,t see  sender agreement from the SXI

  • Set Timestamp in a textfield

    Hello I have a PDF form in which I would like to capture the time user has started on an application. I would like to capture the date and time stamp when the user starts entering in a field. I would like to capture the date and time on the 'Change'

  • HT201210 how can i solve this 1015 error

    plz give solution