Help with running app from dos in xp

Hi everybody i am having a little trouble with adjusting the CLASSPATH of the JRE in XP it seems because i am trying to compile this program
import javax.swing.JOptionPane;
public class addition {
public static void main (String[]args)
     String firstnumber,secondnumber;
     int number1,number2,sum;
     firstnumber=JOptionPane.showInputDialog=("Enter number ");
     number1= Int.parseInt(firstnumber);
     secondnumber=JOptionPane.showInputDialog ("enter second number");
     number2=Int.parseInt(secondnumber);
     sum=number1+number2;
     JOptionPane.showMessageDialog=(null,"result " + sum,"The result is",PLAIN_MESSAGE);
by using javac command but i always get the maessage ('javac' is not recognised as an internal or external command operable program or batch file).
Maybe i have set the CLASSPATH wrong or i am not using the 'javac' properly.\
Please help thanks in advance :)

yeah need to change PATH
for XP open up the control panel -> then click on system -> then the advanced tab
there should be an enviroment variables button at the bottom, click on it and find the PATH variable:
you need to add the bin directory to the value of PATH.
do this by adding the path of the bin directory at the end of what is alreday there, remeber to separate paths with semi-colons, ';'.
eg if you installed j2sdk on a drive D:
then you would add "; D:\j2sdk\bin" to the value of PATH (obviously without the quotes)
hope this help
ste

Similar Messages

  • Hide Running Apps from Standard Users

    Hello
    How can i hide running apps from a standard user?
    Ex
    I would like to have team viewer running in the background so anytime i want i can administrate the mac ..But if the user quit from app i'm not able to log in.
    So i'm thinking to make him unable to quit from the app either have the app running in the background..
    Any ideas?
    Thnx

    Be aware that the major difficulty in using your own encryption routines is key management.
    - If you store the key in the database, the DBA can obviously just call the appropriate decrypt routine, pass in the key, and see the data
    - If you store the key outside the database but expose it somehow in a way the database can see, you've got the same problem.
    - If you store the key outside the database in a way the database cannot access, then only the applications that know how to access the database and know how to access the key can decrypt the data. That can be annoying if you try to use a reporting package or other third party software that needs to see decrypted data and doesn't know how to decrypt the data. You'd also have to make sure that the DBA doesn't have access to whatever machine you're storing the key on for other reasons (i.e. because the DBA is the backup to the admin)
    - If you don't store the key at all, you can force users to pass it in when they want to decrypt data. That obviously runs the risk that someone forgets the password because not enough people know it or that so many people know it that its no longer a secret.
    - Plus, you have to deal with things like figuring out how you revoke/ change a key, how you synchronize backups of the database with backups of the key without DBA intervention, etc.
    These tend to be much harder problems than figuring out how to encrypt the data on the way in.
    Justin

  • How do i get hpeprint to work with print app from eurosmartz?

    How do i get hpeprint to work with print app from eurosmartz?

    If you have an idea for a new Print App that you would like to see, please submit your suggestion at the below link:
    https://h30495.www3.hp.com/idea/submit
    If I have SOLVED your issue, please feel free to provide KUDOS and make sure you mark this thread as SOLUTION PROVIDED!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • How do i open my netflix app onto my mac along with my apps from my phone

    how do i open my netflix app onto my mac along with my apps from my phone

    If you bought and downloaded the 1Password app from the Mac App Store, then it shoud be in the Applications folder on your Mac. Since the name starts with a 1, it is usually the very first app in the folder.

  • I need help with this tutorial from the Adobe website

    I'm almost done with my flash game which I created with flash pro cc. And i have been looking for tutorials to integrate my game to the Facebook and this is the only one I found. http://www.adobe.com/devnet/games/articles/getting-started-with-facebooksdk-actionscript3. html
    Am I on the right track?? The editor uses Flash Builder but I'm using Flash Pro cc.
    --- On Step 2: "Set up a development server for the Flash app",
            Sub-step #2. "To simplify the development process, configure Flash Builder to compile into your htdocs/fbdemo folder and run (or debug) the app on your server (see Figure 2)."
    1) But I can't find "ActionScript Build Path"(which is highlighted on the Figure 2 screenshot) or anything like that in Flash pro. Same for the "Output folder URL".
    Can I actually do the same things with Flash Pro cc?? Also #3 is "Verify that your app runs from your server." How do you run your app from your server??
    ---- On Step 4: "Initialize the Facebook JS SDK",
    2) so if I setup a server on a localhost just like the tutorial, I don't need to change the following? This is on line #6.
    channelUrl : 'www.YOUR_DOMAIN.COM/channel.html'
    can i just leave it like that ?
    3) So if I complete the tutorial, can facebook users play my game? or do i have more things to do?
    4) is there any other tutorial for Flash Pro CC to Facebook integration???
    Thank you so much for your help and time.

    this is an excerpt from http://www.amazon.com/Flash-Game-Development-Social-Mobile/dp/1435460200/ref=sr_1_1?ie=UTF 8&qid=1388031189&sr=8-1&keywords=gladstien
    The simplest way to hook into Facebook is to add their Plugins to add a Like button, Send button, Login button etc to your game.  If you only want to add a Like button to a page on your website, you can use the following iframe tag anywhere (between the body tags) in your html document where you want the Facebook Like button to appear:
    <iframe src="http://www.facebook.com/plugins/like.php?href=yoursite.com/subdirectory/page.html" scrolling="no" frameborder="0" style="border:none; width:500px; height:25px"></iframe> 
    Where the href attribute is equal to the absolute URL to your html file.  For example:
    <iframe src="http://www.facebook.com/plugins/like.php?href=kglad.com/Files/fb/" scrolling="no" frameborder="0" style="border:none; width:500px; height:25px"></iframe>
    points to index.html in kglad/com/Files/fb.
    However, to get the most out of Facebook you will need to use JavaScript or the Facebook ActionScript API and register your game on the Facebook Developer App page.  Before you can register your game with Facebook, you will need to be registered with Facebook and you will need to Login. 
    Once you are logged-in, you can go to https://developers.facebook.com/apps and click Create New App to register your game with Facebook.  (See Fig11-01.) 
    ***Insert Fig11-01.tif***
    [Facebook's Create New App form.]
    Enter your App Name (the name of your game) and click continue.  Complete the Security Check (see Fig11-02) and click Submit.  You should see the App Dashboard where you enter details about your game.  (See Fig11-03.)
    ***Insert Fig11-02.tif***
    [Security Check form.]
    ***Insert Fig11-03.tif***
    [App Dashboard with Basic Settings selected.]
    If you mouse over a question mark, you will see an explanation of what is required to complete this form.  Enter a Namespace, from the Category selection pick Games, and then select a sub-category. 
    Your game can integrate with Facebook several ways and they are listed above the Save Changes button. You can select more than one but for now only select Website with Facebook Login and App on Facebook, enter the fully qualified URL to your game and click Save Changes. (See Fig11-04.)
    ***Insert Fig11-04.tif***
    [Facebook integration menu expanded.]
    You can return to https://developers.facebook.com/apps any time and edit your entries.  Your game(s) will be listed on the left and you can use the Edit App button to make changes and the Create New App button to add another game.
    Click on the App Center link on the left.  (See Fig11-05a and Fig11-05b.)  Fill in everything that is not optional and upload all the required images. Again, if you mouse over the question marks you will see requirement details including exact image sizes for the icons, banners and screenshots.
    ***Insert Fig11-05a.tif***
    [Top half of the App Center form.]
    ***Insert Fig11-05b.tif***
    [Bottom half of the App Center form.]
    When you are finished click Save Changes and Submit App Detail Page.  You should then see Additional Notes and Terms. (See Fig11-06.)
    ***Insert Fig11-06.tif***
      [Additional Notes and Terms.]
    Tick the checkboxes and click Review Submission.  If everything looks acceptable, click Submit.  You should then see something like Fig11-07.
    ***Insert Fig11-07.tif***
      [After agreeing with Facebook's terms, you should be directed back to App Center and see this modal window.]
    You are now ready to integrate your game with Facebook's API.  Because there is a Facebook ActionScript API that communicates with Facebook's API, you need not work directly with the Facebook API.
    But before I cover Adobe's Facebook ActionScript API, I am going to cover how you can use the Facebook JavaScript API directly.  There no reason to actually do that while the Facebook ActionScript API still works but by the time you read this, the Facebook ActionScript API may no longer work.
    In addition, this section shows the basics needed to use any JavaScript API so it applies to any social network that has a JavaScript API including the next "hot" social network that will arise in the future.

  • Problem with disappearing apps from i touch

    We have 3 i-touches and 1 i-pad running from one i-mac computer, and all via the same Apple ID.  I the past few months several apps that we downloaded (CAMRA Good Beer Guide and KIK) have disappeared from one of the i touches without explaination (not always the same one).  I cant download the app again from the app store as the box you normally click to pay is doesnt work for these apps.  I asssume this is because the i touch thinks the app is still in the i touch, even though I cant see it or search for it.  I checked the restrictions etc and its not that.  I've tried re booting, upgrading software, deleting app from PC and re installing but none of these solutions have worked.  When I click the app on the pc view you can see it one the app screen view, but it doesnt sync and or appear on the i touch.   I now cant work out how to get KIK back onto one of my kid's i touch and its very frustrating!  The others still have their versions of KIK, and I cant see why its gone from only one i touch.  Any help would be much appreciated!

    What generation iPods are they?
    Kik Messagenera now requires iOS 4.3 or later. Thus, the current version will not install on fully updated 1G or 2G iPod.
    Many developers when they updated their apps to support iOS 5 and 6 dropped compatibility for iOS 4.2.1 and earlier.
    Your only way is if you have the version that was compatible on your computer such as in the recycle bin/trash or in a computer file backup. In that case delete the current version that is in your iTunes App library and replace it with the older version. Then sync.
    Also see:
    Recover Older Versions of iPhone Apps After Updating — Apple News, Tips and Reviews

  • PlayBook Help with Android Apps / Google Apps ** Advice Needed Plz **

    Good Evening Everyone, I need some help and advice please regarding a Playbook.
    I had a Samsung Galaxy Tab 2 7" and found that firstly i could not move apps to SD Card so i sold it.
    But now i want to buy a Blackberry Playbook and understand that Android Apps are on the new software update.
    But i am trying to find out if i can buy them from Google Android Apps as i have a Google Account and used to buy android apps from there, can they be used on the Playbook??
    Finally can someone advise me if there is a SD Card external port if i wanted to add a extra 32GB of storage. Looked everywhere on the Spec but with no joy finding out.
    Any help and suggestions would be really Handy.
    Its Nearly 2013 so wishing you all a Happy New Year.
    Solved!
    Go to Solution.

    1) a far as I know, no SDcard reader available for the PlayBook currently.
    2) Android apps, that you can download from the Google Play with your Google Account will not work on anything else than an Android powered tablet.
    3) what you have certainly read on the internet, is that "the PlayBook can run Android apps", which is not exactly true.
    What is true is this, and you will be quite disappointed:
    A) applications for the PlayBook are either web applications (like GMail using the browser), or applications installed from the App World (it is a Blackberry store, just like the AppStore for iOS or Google Play for Android).
    B) for a given developer that has developped an application for Android, it is very easy to convert their app to the BlackBerry format, and publish it on the App World.
    ====> basically, if you want to install an application that is available for Android, you have to wait for the developer to port the application to the BlackBerry PlayBook.
    for the financial issues, I believe that if you buy an app on Google Play, and the app is available on the App World, then you have to buy it again (and vice versa).
    I will end by saying that if the only reason for you to sell your Galaxy Tab 2, is that the apps cannot be moved to the SDCard, then I am not sure the PlayBook will suit your needs for that aspect.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Need help with downloading apps

    Hi I'm trying to upload some apps from creative cloud and it keeps saying that it has been downloaded already but won't show up on my application folder. I installed a trial version but deleted perhaps it things that it been installed already. Any help would be amazing.
    thanks!

    Hi student-panda,
    Please run Creative Cloud Cleaner tool and then launch CC Desktop apps. it should fix the issue.
    http://www.adobe.com/support/contact/cscleanertool.html
    regards,
    Abhijit

  • Problem with running app 10810

    Hi,
    When I starting app made for java application file I have LSOpenURLsWithRole() failed with error -10810 on terminal. I didn't found any info about this error number. The funniest part is when I run the .jar file everything is working fine. Could You help ??

    Assuming the error is with the Java app and not with some component of OS X, please contact the organization that is supporting this particular Java application for assistance with this. 
    You might end up discissing this with the organization even if this is an OS X component, as the folks with the app source code are in the best position to figure out what's going on and then — if needed — to work with Apple to resolve this.
    There are cases where this can be triggered by a lack of execute access somewhere (folks with Minecraft were reporting that), but we'd need some information on which Java app is involved, the text of the error message itself, and probably some additional details around the error.

  • GPS/Satellite issue with running apps

    All of a sudden, on several different running apps I use (which use GPS/satellite to track how many miles I run), have become wildly inaccurate.  Maps of my runs show zig zagging all over the route when I really am just going in a relatively straight line.  I've had no problems for 1+ years of using the app in the same areas, so I don't think it's because of the signal, also, other people I am with using the same app don't have the same problem.  It has also occurred on multiple (at least 3) different apps, so it's not just specific to one app.  I don't have problems with it finding my location when I start the app, it's just along the route that it goes bonkers.  I also don't seem to have any location/gps problems with any map-related apps.  This has been driving me nuts and the app developers are no help.  Please help me, I'll try anything!!!

    Toggle location service off and on by going settings>privacy>Location services. If that doesn't fix the problem reset network settings or reset all settings.

  • Help with running Ant

    In a quest to teach myself all about Java Servlets, I'm currently working my way through The Java Web Services Tutorial. However, I have become stuck as I try the command:
    ant build
    I recieve this message:
    Exception in thread 'main' java.lang.NoClassDefFoundError: and
    I don't know what is wrong. I have been throught the setting up steps 3 times and cant find any errors.
    What tests can I do to isolate the error?
    I really need help on this, I can't continue with learning until ant is working.
    Thank-you,
    Paul
    PS. When I'm checking my PATH variables in XP, I find it very annoying. When editing them, I can only use the very small input box provided. Is there any other way to edit them?

    crostar:
    If you run "java" from the command line, it will use the first java.exe found on the %PATH% variable (win os). Double check that the java.exe doesn't exist earlier in the %PATH%. Also, I've made the mistake where my environment variables aren't up to date because I opened a command window and then changing environment variables via the control panel.
    AliaAtreides:
    You'll need to post the full exception in order for others to determine what might be wrong. More specifically, we need to see the exception in order to determine what class can't be found.
    Also, make sure to set the JAVA_HOME and JWSDP_HOME environment variables. please be careful to note that the examples that came with the java web services dev pack have ant build.xml files that depend upon the jswdp.home variable being set. You'll need to set the variable in either the control panel, or in a separate build.properties file.
    Oh, one more thing, veramkovich's example sets JAVA_HOME to point to 1.4.1 whereas i think you're previous posts implied that you had a different path, 1.3.1

  • Help with running bonjour

    I can't get bonjour to run on my computer. I have tried uninstalling, installing the previous version and downloading bonjour for windows from apple.The service starts normally and is running but the IE plugin shows "bonjour service not available", running the printing wizard shows the same. I ran the dns-sd which shows
    c:\>dns-sd -V
    DNSServiceGetProperty failed -65537
    c:\>dns-sd -I
    Registering Service Test.testtxt.tcp.local.
    DNSService call failed -65537
    I have itunes 8 installed, haven't found the need to use bonjour before so would usually uninstall it. Don't know much about bonjour, tried searching the forums but couldn't come up with anything. Can anyone help with this?

    I get into the same situation consistently after switching the network connection from Ethernet LAN to Wireless LAN. The only fix I know of is to restart the PC.

  • Need help with Camera app

    Hello RIM support,
    I am a new owner of BB Playbook.  Everything seems to be working okay except camera app.  I can take a picture with it but nothing will show up in picture app.  According to the help video, the pictures taken by camera app should show up in picture app from the menu option.
    Please help.
    Thanks
    Kevin
    Solved!
    Go to Solution.

    Yes, your pictures taken with the Playbook camera certainly should show in the Pictures folder on the Playbook.
    Just for the heck of it, can you try turning your Playbook off and back on and check your Pictures app/folder again?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Help with ComboBox, datasource from database

    Hi there,
    i am new to Flex technology and desperately need help with
    combobox.
    I have a combobox in my app and the datasource comes from
    MySQL database. I use a PHP script to populate the combobox. Say in
    the datatabse table, I have the following result:
    id name
    1 dog
    2 cat
    3 horse
    In the app, the combobox will have the list as the name of
    the animals: dog, cat, horse. But when the user selects dog, how do
    I get the selected id 1 instead of the label "dog".
    Any help/suggestion will be appreciated.

    Hi again,
    the xml for the combobox datasource is as follows
    <animals>
    <animal>
    <id>1</id>
    <name>dog</name>
    </animal>
    <animal>
    <id>2</id>
    <name>cat</name>
    </animal>
    <animal>
    <id>3</id>
    <name>horse</name>
    </animal>
    </animals>
    and my <mx:HTTPService> is:
    <mx:HTTPService id="dropDown" useProxy="false" url="
    http://localhost/~ronnyk/combobox.php"
    resultFormat="e4x" result="get_drop_down(event)" />
    public function get_drop_down(e:ResultEvent):void{
    var dropArr:XML = e.result as XML;
    cb.dataProvider = dropArr.animal;
    cb.labelField = "name";
    cb.data = "id";
    public function clickme():void{
    txtinput.text = cb.selectedItem as String;
    I can't figure out which part I did wrong, in order to get
    the id instead of the name when the user clicks the button

  • Running apps from shell

    Hi,
    as a complete newbie to OSX (changing from windows), I wonder how I can run apps (e.g. neooffice) from the shell, e.g. opening directly a document...
    regards
    eik

    What is your application release?
    Please see these docs/threads.
    How To Create A Custom Concurrent Program With Host Method and Pass Parameters To The Shell Script [ID 266268.1]
    Concurrent program with executable of type HOST
    Thanks,
    Hussein

Maybe you are looking for