Can get anything to run with java....

Yes.. I've updated my Classpath.. but every JAVA program that
I compile and when I executer java myprog.class it get's an
error on finding that very class...
What's the problem..?

ONE: Paste this into Notepad;-
public class HelloWorld{
����public static void main(String[] args) {
��������System.out.println("Hello World");
����}
TWO: Open the MSDOS Console and NOTE WHICH FOLDER on your C-Drive you are in.
THREE: Save the above on your C-Drive as HelloWorld.java (exact same case, ie: capital 'H' etc and) IN THE SAME FOLDER as the Console displays.
FOUR: Type this (exactly the same!) in the MSDOS Console
javac HelloWorld.java
FIVE: Tell us what happened.

Similar Messages

  • Up an running with Java. What tools to download?

    Hello, I use to work with Java applications about three years ago, but had switched over to another language. Now I need to develop code using Java again. In fact, I need to reuse some of the code I developed a few years ago. The code does alot with animations. So here is my question.
    "What tools do I need to get up and running with Java?"
    1. What compiler to use (recommend the best open source editor, or one that is not that expensive)?
    2. Where is the Java SDK that I need to download?
    3. Will my three year old code still be compatible with the SUN, Java code I wrote 3 years ago?
    Ralph

    Actually Jwenting is right, IntelliJ is by all measures the best IDE.
    I have used textpad, programmers notepad (which I still use for some things), VIM, eclipse for a number of years, intelliJ for a short time, and Netbeans since earlier this year.
    textpad - Great place to learn the basics, but once the basics are down you need to find an IDE.
    Programmers notepad - love it, still use it for some languages, has some features you will find nowhere else
    VIM - You have your vi lovers and your vi haters, I would say I fall into the haters camp but still keep up with it because when you need an editor to make a quick change on some obscure system with very little on it, some version of Vi will undoubtedly be there. Once you get into the flow it is not bad, but there is lots of annoying things about vi and its offspring.
    Eclipse - Great IDE, was the better of the free ones for a long time. For me eclipse's strength became it's albatross. That is plugins ofcourse. There are literally thousands of plugins that can make eclipse do just about anything you want. The problem is there is very little oversite so some plugins are great, some good, some ok, some suck, and some are deliberately hostile. You don't really know what you are going to get until you try it, but removing it can be a pain so sometimes you are stuck. Plus getting the plugins to play nice with each other can be a chore, the more plugins you have the harder it gets to get new ones to play nice. It was after a whole day stint trying to get eclipse to work again after picking a bad plugin that i simply decided to give netbeans 6.0 a try since it had what I wanted packaged in already.
    IntelliJ - Only got to use this for a short time as they went ahead and bought it at my last job after I gave my months notice for leaving. Guess they figured it would be easier to replace me that way. From the little I got to play with it, it was extremely user friendly to the point of being a pleasure to work with, You definitely got what you paid for.
    Netbeans 6.0 and higher - Netbeans pre 6.0 sucked. Even 5.5 was not as good as eclipse at the time of it's release, but was a sign they were headed in the right direction. After releasing version 4 only to have it suck and laughed at in the java community since eclipse was hundreds of times better Sun realized netbeans was making them look bad. So they decided to fix that and decided the best way to fix it was to model netbeans as closely after IntelliJ (which was the best even back then) as legally possible. With each release they get closer to realizing this goal, and since it is free with each release netbeans picks up more and more former eclipse fanbois. It is now at the point where most people following the eclipse vrs netbeans war will agree that netbeans has taken the lead and has more current users than eclipse. I would even wager that most of the people who said netbeans was best in this thread were not long ago eclipse fans. Bottom line, of the free IDEs netbeans is the better choice at this point.
    But I got to ask, when you say a salary of R8,000 - R12,000 do you mean monthly income or annually? If annually can you even survive on about $1,000 in US dollars for a year? I mean I make about 8 times that in a month, after uncle sam takes his portion, and i wouldn't call myself rich by any means.
    Also jwenting have you tried the newer netbeans? I think if you do you will see they are strikingly similar to IntelliJ in many ways.
    JSG
    Edited by: JustSomeGuy on Dec 5, 2008 7:24 AM

  • I'm new to GB and I'm trying to record solo vocal with a backing track. I can get the track running OK but I can't seem to record. I think when I press record the backing track mutes and I need it running.. Thanks in advance!

    I'm new to GB and I'm trying to record solo vocal with a backing track. I can get the track running OK but I can't seem to record. I think when I press record the backing track mutes and I need it running.. Thanks in advance!

    guess what it says java file. So yes i'm sure. Sarcasm. Not the best way to encourage a total stranger to help you. Then there's
    Sorry if i wasn't more clear but was that response needed?No it wasn't needed, but I'm not the one asking for help so I have the luxury of not worrying too much about it. It's extremely frustrating trying to drag relevant information out of someone, and makes one less inclined to bother.
    Anyways, there's still nothing in this thread that actually explicitly says "there is a file called VolcanoApp.java in the directory where I'm running javac from" and I really can't be bothered banging my head against the wall any longer. You've made a silly mistake, or a false assumption. We all do it from time to time. My advice is, take a break, go for a walk and re-visit this in a while. You'll probably spot the mistake right away.

  • Can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    Java is no longer included in Mac OS X by default. If you want Java, you will have to install it.
    However, note that you should think twice before installing Java for such a trivial need as looking at stock market quotes. There are other ways to get that information that don't involve Java, and using Java in your web browser is a HUGE security risk right now. Java has been vulnerable to attack almost constantly for the last year, and has become a very popular, frequently used method for getting malware installed via "drive-by downloads." You really, truly don't want to be using it. See:
    Java is vulnerable… Again?!
    http://java-0day.com

  • Cant get redmine to run with lighttpd under Arch

    Hi, I posted this already in the Redmine forum but I get no answer there since yesterday, so therefore I am trying here now hoping that someone gets me a hint.
    Searching the error with google finds solutions but none of them works for me (Mostly "seems you got no bundle installed", I have that).
    I am trying the whole day to get lighttpd to run with redmine, but I can not get a solution to that error.
    May 14 17:50:04 redmine lighttpd-angel[586]: /usr/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- bundler/setup (LoadError)
    May 14 17:50:04 redmine lighttpd-angel[586]: from /usr/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    May 14 17:50:04 redmine lighttpd-angel[586]: from /srv/http/redmine/config/boot.rb:6:in `<top (required)>'
    May 14 17:50:04 redmine lighttpd-angel[586]: from /usr/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    May 14 17:50:04 redmine lighttpd-angel[586]: from /usr/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    May 14 17:50:04 redmine lighttpd-angel[586]: from /srv/http/redmine/public/dispatch.fcgi:3:in `<main>'
    I searched the web for "cannot load such file -- bundler/setup (LoadError)" and I get some results but none of the solutions helped.
    I got all gems installed and the test with "ruby script/rails server webrick -e production" runs, bringing up a working redmine on localhost:3000 however lighttpd keeps crashing.
    Here the versions that I have installed
    # cd /srv/http/redmine
    # bundle install
    Using <various gems>
    Your bundle is complete!
    Gems in the groups development and test were not installed.
    Use `bundle show [gemname]` to see where a bundled gem is installed.
    # ruby --version
    ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
    # gem --version
    2.0.0
    # rake --version
    rake, version 10.0.4
    # bundle --version
    Bundler version 1.3.5
    I am running archlinux and that's not the first webserver I set up with arch, however the first attempt with ruby and lighttpd. Testing redmine with unicorn or webrick works, the site is up, I can login as admin and create users and content, but I can not use unicorn or webrick, because I need SSL for redmine...
    I am quite lost now, how can I get the thing up?

    You didn't include the root cause of  the error - it's somewhere more up in the error log. Rerunning systemctl like this should get you better feedback.
    systemctl --full -n 100 status lighttpd
    Anyway no matter the cause it's likely not the only problem you can run into while setting up redmine - so i'll give you my entire step-by-step configuration with php that works  (Tested it all in virtualbox with latest packages) and you might figure out what you did wrong.
    Make sure you have installed the neccessary stuff - in my case following
    pacman --needed --noconfirm -S mariadb mariadb-clients subversion ruby imagemagick lighttpd php php-cgi php-fpm fcgi base-devel
    Get redmine
    [ -d /srv/http ] || mkdir -p /srv/http
    cd /srv/http
    svn co http://svn.redmine.org/redmine/branches/2.3-stable redmine
    cd redmine
    Create database access for redmine
    mysql -u root -e "CREATE DATABASE redmine CHARACTER SET utf8;"
    mysql -u root -e "CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';"
    mysql -u root -e "GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';"
    Copy database config and modify the desired sections of file accordingly
    cp config/database.yml.example config/database.yml
    production:
    adapter: mysql2
    database: redmine
    host: localhost
    username: redmine
    password: my_password
    encoding: utf8
    Install gems and setup redmine
    cp public/dispatch.fcgi.example public/dispatch.fcgi
    gem install bundler --no-user-install
    echo 'gem "fcgi"' > Gemfile.local
    bundle install --without development test
    rake generate_secret_token
    RAILS_ENV=production rake db:migrate
    RAILS_ENV=production REDMINE_LANG=en rake redmine:load_default_data
    Modify permissions
    mkdir -p files log tmp tmp/pdf public/plugin_assets
    chown -R http:http files log tmp public/plugin_assets
    chmod -R 755 files log tmp public/plugin_assets
    Test redmine
    ruby script/rails server webrick -e production -p 8080
    Configure your /etc/lighttpd/lighttpd.conf - here is mine.
    Now if your redmine runs in subdirectory (like mine) fix the routes in 'config/routes.rb' by replacing
    RedmineApp::Application.routes.draw do
    root :to => 'welcome#index', :as => 'home'
    with
    Redmine::Utils::relative_url_root = '/redmine'
    RedmineApp::Application.routes.draw do
    scope ActionController::Base.relative_url_root do
    root :to => 'welcome#index', :as => 'home'
    Don't forget to add an extra 'end' to the end of file and you should be done. Start your lighttpd and visit your redmine. For futher debug check what's in the following
    systemctl --full -n 100 status lighttpd
    redmine/log/production.log
    your lighttpd error log
    Hope i helped you - so drop me a feedback
    Edit: Guess it's obvious, but make sure the user that runs lighttpd has all permissions for the folders in which you create sockets...
    Last edited by markocz (2013-07-04 12:09:02)

  • My mac is getting very slow, is there a way i can get it to run a little quicker?

    my mac is running really slow, is there any way i can get it to run a little quicker,

    You want to check out the drive to be sure it isn't failing.
    Get free demo of SMART Utility to test
    http://www.volitans-software.com/smart_utility.php
    Probably has little to do with login items (which would usually only affect time to boot and/or login.) Don't waste your time with Permissions repair, either. Has nothing to do with it.
    I have no idea which iMac you have or how old it is.
    How much free space on the drive? Do CMD-I on the HD folder.
    If the drive checks out, try running Applejack.
    http://sourceforge.net/projects/applejack/
    http://reviews.cnet.com/8301-13727_7-10334620-263.html?tag=mfiredir
    Type in "applejack AUTO" at the prompt and let it run through the entire program. First boot after will be slower than usual, as it rebuild caches. May need several restarts to see benefits.

  • Can Reports 10g Be Run with EBS 11i?

    Can reports 10g be run with E-Business Suite 11i (11.5.10)?
    Thanks,
    Kurz

    Output from EBS Excel is XHTML, so anything that understands that ... from memory Excel 2003 or higher but check doco.
    Gareth

  • Running with java -jar

    I have a client.jar that has a bunch of vm parameters and relies on a few other jars. The jar has the main class specified in the manifest. Ultimately I would like to take the dependent jars and put them in the client jar and use the manifest classpath option. I have been unable to get this to work. What I am finding is that running with java -jar basically ignores all of my vm parameters. I have tried removing the dependent jars and referencing them from the command line classpath argument. This still did not work. The only thing that has worked is not using a client.jar at all and just running my main class with all the vm parameters. This is not an acceptable solution for me. Thoughts?
    Thanks,
    Howard

    Yes, this is what is so weird about the problem. Neither the manifest class-path option or running with cp is working when the main class lives in a jar.

  • I'm having problems downloding Itunes - I have tried 6 times on different dates and I can get it to run - please help

    I'm having problems downloding Itunes - I have tried 6 times on different dates and I can get it to run - please help

    The master password protects saved passwords in Thunderbird and has nothing to do with connecting to your providers server. You need to work with your email provider if you have forgotten your email password. Go to their email help site and look for a link to reset your password.
    If you are truly working with a forgotten master password this article tells you how to remove it.
    https://support.mozilla.org/en-US/kb/master-password

  • I need any help i can get, im having trouble with the app find my iphone. I have lost my iphone, checked on the computer, and somehow, took it away so how do i get it back??

    Help
    I need any help i can get, im having trouble with the app find my iphone. I have lost my iphone, checked on the computer, and somehow, took it away so how do i get it back??

    If you are saying that after signing into iCloud it is telling you device is not found, it could be for any number of reasons. If the battery is dead, if the SIM has been removed, or if someone else has the phone and they have restored it, it will not be shown. Also, if you located it once and then sent a remote wipe, it disables the abililty to locate the phone with Find My iPhone.

  • My iphone 5 is not syncing with my laptop and windows 8. cant find an itunes app for my laptop. is there something i can get that will help with this

    My iphone 5 is not syncing with my laptop and windows 8. cant find an itunes app for my laptop. is there something i can get that will help with this?

    Lbo51380 wrote:
    cant find an itunes app for my laptop. is there something i can get that will help with this?
    Go here -> http://www.apple.com/itunes/download/

  • How we can get the current running user information in BusinessOne

    Hi experts,
    How we can get the current running user information in BusinessOne Application,
    Based on the user details i want to assign some functionality,
    Regards,
    Saidarao yakkala

    Hi,
    As per me you can't get detail by server side.
    If you want to know who are connected then you can use sp_who2 procedure in SQL query.
    That will display who are login.
    For more detail you have to check LOG file on client side in SAP B1 > Log folder.
    Thanks
    Kevin

  • I lost my iphone, got a new sim card and put it in my boyfriend's old iphone. When I synch it in itunes it will only synch with his stuff and not mine. Any ideas how I can get it to synch with my itunes??

    I lost my iphone, got a new sim card and put it in my boyfriend's old iphone. When I synch it in itunes it will only synch with his stuff and not mine. Any ideas how I can get it to synch with my itunes??

    Are you using a Mac? It sounds like you are using his computer to sync to. If this is the case, then it will sync to all of his stuff unless a new user is created with your personal stuff on it.
    When you want to sync your iPhone to that computer, switch to your user first, and then everything will sync with your stuff. If he wants to hook up his iPhone to sync it, then he needs to switch back to his own username first.

  • Have one WiFi signal into the apartment for my Air, and another wifi signal for my 5c phone plan. Both from the same provider. Expensive. Is there a way to 'combine' WiFi signals so I pay only for one, but can get on the Internet with my Air?

    Have one WiFi signal into the apartment for my Air, and another wifi signal for my 5c phone plan. Both from the same provider. Expensive. Is there a way to 'combine' WiFi signals so I pay only for one, but can get on the Internet with my Air?

    Roamingnome, thanks for your response. Although I have been a Bell (Canada) customer for my WiFi signal for years, the 5c and its necessary mobility plan, is very recent. Some years ago, Bell supplied its own ‘router’ for my computer, and claimed that it was possible to get their WiFi signal only with the router they supplied. When I recently received the 5c, I wondered if the plan it requires, which is within the much wider, overall Bell zone, could be used somehow to get my Air online - some sort of tethering? - that allows me to give up the Air WiFi service and router all together, but still get the Air connected. Here in Canada, Bell Mobility and other Bell services are very separate. Any suggestions appreciated.

  • Hi, do you know if I can get a Macbook Pro with a numeric keyboard ?

    Hi, do you know if I can get a Macbook Pro with a numeric keyboard ?

    Use this to remap:
    http://pqrs.org/macosx/keyremap4macbook/index.html
    Or get something like this:
    http://www.powermax.com/parts/show/cro-43039?utm_source=Google%2BProduct%2BSearc h&utm_medium=Referral&utm_campaign=Google%2BProduct%2BSearch&src=g&gclid=CN3oouz x6bMCFRQcnAodYhwAyg

Maybe you are looking for

  • Error encountered while polling a file using OSB

    Hi, This is the Exception when i try to poll a file using OSB <Error enco untered while polling the resource for the service endpoint ProxyService$CASE_RC $BUILD_DATA$FILE_HEADER$FileProcessPS: javax.naming.NameNotFoundExc eption: While trying to loo

  • Leave workflow in ECC 6.0 using  business object ABSENCE

    Hi Friends, I want to develop leave workflow in ECC 6.0. The BO event which is getting triggered when a leave request is created from PA30(Leave request will be locked when it is created) is ABSENCE.REQUESTED.But If i check the BO ABSENCE all the met

  • Pdf file on website won't print now.  Settings?

    I've not had any problems, until now, printing pdf files from many websites.  However, problems have come up. I am told I had a virus affecting some of my accounts and Systweak Advanced Systems Optimizer, my protection sofware provider, adamantly den

  • Elements 7 uploaded all pics in album to my photoshop website

    Photoshop uploaded all my pics in my album to my photoshop website. When I noticed this, I deleted all of them off the website.  I noticed that it somehow TRANSFERED my pics from my computer to the website.  Now I do not have the 400 edited pics in m

  • TO_DATE to insert in DB

    Hi everybody I need insert the date and time to Data Base with TO_DATE, but I don´t know if is functioning TO_DATE to insert the time or only the date. Can someone help me? Thanks. Paul.