Can't get java to run in MS-DOS

Can someone out there, help me with a execution problem, am having in running java. I install jdk1.3 from a CD in a book(Java 2 by Andy Harris). I,am running under window98, with lots of spaces and memory. Each time I would try to execute a java module, the DOS screen would come up and then drop away. I have re-install the software. same problem, I have try run under DOS(coming out of window and restarting in DOS), same problem, so I log on the SUN web site and downloaded j2se1.4 install it try running it and still got the same problem, The screen up with data on it and just go away. What is wrong here!! [email protected]

Yes! They are right.. We should run java in on windows, not on pure DOS. So restarting in DOS mode would not help.
1. Start windows
2. Click on Start -> Run
3. Type Command and hit enter
4. This should bring up DOS command prompt.
5. Type "java" in at the command prompt
6. If it gives you some suggestions about how to run java. If it says "Bad command" java.exe is not in the path. Find java.exe and append it to PATH environment variable.
7. Once you get java working - open the command prompt as told earlier and run the java program by typing the command
java <Main Class Name>
8. Doing it this way would help you find out if there are any error messages.
Your DOS window is closing because there was an error or your program finishes running. If you open DOS prompt first and then run java program it would not close the window and you will be able to see the error messages in the same DOS windows.
Hope this helps..

Similar Messages

  • I can't get java to run, why?

    I have Java installed, correctly I think, and I can't get it to work. I've checked the issues that were mentioned on the java site and still nothing. I don't know why it doesn't work or more importantly how to fix it. Any ideas on what I can do?
    Thanks

    Alright, I made a mistake that I should have not done. I should have stepped back and reread my post to see how it sounded. Being that I tried to be kind and simplify what I did for easier reading I didn?t realize that I left out too many things so it fell way short of usefully.
    We have a new machine here that we just installed Java on and it didn?t work either. This led me to think it is our router that is causing the problem. I gave that a quick test by taking the router out and Java worked on the new machine. Put the router back and the Verify Java page worked, but when going to another Java site it wouldn?t work. To me it sounds as if there is a setting in our router that is blocking something. We don?t know too much about routers so I?m not sure if we?ll ever figure that out. Is there anyone out here that could give us a few hints on what to look for in our router config. We are using a Cisco router.

  • I can't get Java to run on my Schwab site

    I have a macbook. My Schwab account runs Java. On Safari, I can bring up Streetsmart, but it stopped running with Firefox.

    Apple has removed support for the Java Plugin2 with the latest Java Update 10 for OS X 10.5 Java version, so the Java plugin is no longer available for Firefox versions and other browsers like Google Chrome that require the Java Plugin2.
    See:
    * [/questions/844734]

  • HT4922 Can't get Java to run

    Installed Java 7.25 and Safari says it doesn't detect Java at all???

    See the post by Klaus1 here >   https://discussions.apple.com/thread/4909170?tstart=0

  • Than how can i get java class by using it's class file?

    Hi
    After compilation of a java program, it creates a class file.
    After getting class file suppose class file has been deleted.
    Than how can i get java class by using it's class file?
    Thanks in advance.

    get a decompiler and run your class file through it--I'll assume you want the source code back and that you are not trying to recover a missing class file by attempting to use the class file that is missing--if it's missing, then I've not a clue on how to get it back by using what is already missing.
    BTW: many of your compilers have source control--if it does, just restore your missing file.

  • How can I get Java to fill out form on web page and submit?

    I need to write a Java program that will submit a HTML form. I tried using POST already, but the only response I got back was the source code for the page itself. Looking more closely, I realized that there is a PHP script that will actually take the data from the forms and use it. How can I get Java to enter the data on the forms automatically and then run this PHP script? I don't need code, just a pointer in the right direction should do.
    Thanks in advance,
    Hasitha D

    hasithad314 wrote:
    I need to write a Java program that will submit a HTML form. I tried using POST already, but the only response I got back was the source code for the page itself. Looking more closely, I realized that there is a PHP script that will actually take the data from the forms and use it. How can I get Java to enter the data on the forms automatically and then run this PHP script? I don't need code, just a pointer in the right direction should do.
    If you are writing a program to submit a form,how come the PHP script come out of nowhere ? At this momemnt you are just writing some Java program,isn;t it ?
    My feeling is you are trying to edit some pre-written code.
    Is it ?
    Thanks.

  • Issue with Illustrator CS6 - can't get it to run

    Since a couple of weeks ago, I have an issue with Illustrator CS6 - can't get it to run When starting the application I get the following error:
    "The procedure entry point ?AcquireVarient@ImageInterface@drawbot@dvaui@@QBE?BV?$intrusive_ptr@UImageInterface@drawb ot@dvaui@@@boost@@V?$rational@J@5@@Z could not be located in the dynamic link library D:\Program Files\Contents\Windows\Illustrator.exe."
    I'm running it on Windows 8 (x64). I have multiple other Adobe applications installed, which are running fine. I've tried solving the issue with reinstalling Illustrator - multiple times. My GPU driver is updated to the latest version.

    I have this issue as well on my Mac and called tech support 4 times and they can't fix it. Adobe has really gone down hill in a short amount of time!!
    Only thing that worked (as a temporary fix) is to create a new user and toggle back and forth between two users which is very annoying. Adobe has tried uninstalling, reinstalling, taking over my computer remotely, trashing plugins, verifying permissions but the fact remains that we bought CS6 four weeks ago and Illustrator doesn't work.
    I'm going on Facebook to let others know.....don't buy Adobe, it doesn't work and they don't know how to fix.

  • My 2006 iMac running Snow Leopard won't boot even after erasing and re-installing Snow Leopard (via my MacBookPro), either from the HD or DVD drive.  Can't get it to run Hardware Test.  Disk Utility says disk OK - files are there. What can I do?

    My 2006 iMac running Snow Leopard won't boot even after erasing and re-installing Snow Leopard.   I erased and re-installed by putting the iMac in Target Disk mode and usin my MacBookPro as the host.  But after numerous attempts I still can't get it to boot either from the HD or DVD drive. I just get the white screen after the wheel stops spinning.  I can't get it to run Hardware Test - just get the white screen.  If I use Disk Utility via my MBP it says the disk appears OK. All the Snow Leopad files appear to have been installed. What can I do?

    Hi-NRG Bwoy wrote:
    I erased and re-installed by putting the iMac in Target Disk mode and using my MacBookPro as the host.
    Reet the SMC and the PRAM
     Cheat sheet to help diagnose and fix your Mac
    Perhaps you installed the wrong version OS X onto the iMac, you can't use the disk from another Mac.
    clean the disk.
    If it's not working then use this method to create a bootable 10.6 USB from the iMac machine specific 10.6 disk or the 10.6.3 retail disk on your other Mac, use it to boot the iMac with.
    http://www.maciverse.com/install-os-x-snow-leopard-from-usb-flash-drive.html
    How to erase and install Snow Leopard 10.6

  • I can't get java to work on my Mac. It is installed and enabled. I can't activate java per site because I don't get "click here to activate" box.

    I can't get java to work with Firefox on my mac with OS 10.6.8. I did everything suggested and still no luck. Java is installed, enabled, and updated. I can't even activate java per site because I don't get the "click here to activate" box for some reason. Apple support said it's a firefox problem and they can't help me. I need to be able to use java!

    hello, please update firefox to the latest version & your OS to 10.6.8.
    [[Update Firefox to the latest version]]
    http://support.apple.com/kb/HT4561

  • New-Asset Report - awesome, but can't get it to run?

    Howdy - I am trying to run the awesome new-asset report that Zachary Loeber shared with the technet community.
    The script is here:  http://gallery.technet.microsoft.com/Excel-and-HTML-Asset-0ffbf569
    However I can't get it to run against 1 server or multiple servers.
    I followed this information someone else asked and I get back many errors, all related to the parameters.
    Can someone help me out with this?
    A. Should this be saved as a function? And then I've read conflicting or maybe different ways to run a function.  Should I do import-module or just run the script as a single command line, and I've had this issue with other functions.  Should they
    be put in a specific location on my system?  I'm newbie, so thanks for the help!
    B.  When I run this, I've tried using this simple command:  .\New-AssetReport.ps1 -Computers testserver1.domain.local -PromptForCredentials -Verbose
    C.  Then I tried this example as well from a single line or creating another ps1 script, fails either way.
    D.  What variables are required to be filled in, and what parameters are available such as report type, include memory, but not disk, etc?
    Here's the error if I enter the command like this:  .\New-AssetReport.ps1 -Computers testserver1 -PromptForCredentials -Verbose
    New-AssetReport : Cannot process argument transformation on parameter 'SaveDataFile'. Cannot convert value
    "System.String" to type "System.Management.Automation.SwitchParameter". Boolean parameters accept only Boolean values
    and numbers, such as $True, $False, 1 or 0.
    Here is the error if I use the other example which is below.  I get many errors, all tied to the parameters such as -verbose, etc.
    $Servers = @('Server1','Server2')
            .\New-AssetReport.ps1 -Computers $Servers -PromptForCredentials -Verbose
    New-AssetReport : The term 'New-AssetReport' is not recognized as the name of a cmdlet, function, script file, or
    operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
    again.
    -ReportContainer : The term '-ReportContainer' is not recognized as the name of a cmdlet, function, script file, or
    operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
    again.

    Hi,
    Please ask the author your question on the Q&A tab for that gallery entry.
    Bill

  • Can't get Videos to run on the Internet

    Can't get Videos to run on the Internet. Clicked to watch a video and nothing happened. Sales person in Apple store said to get "Flip4Mac", free edition, which is what they used in store as the files on this site and in Windows Media. I downloaded it and I think I installed it. At least it said is was installed and updated. But when I went to my Son's favorite website, Nascar.com, when he clicked on a video to watch nothing happened. Anyone have any idea what's wrong?
    Thanks in advance for the help.....Nancy

    First off, I'll list all the items that I use to play, just about, all media on the web:
    Flip4Mac
    (as you might have found out, Windows Media Player for the Mac is no longer supported)
    VLC
    Real Player
    Perian
    Adobe Flash
    Streamclip
    All that being said, there is still some unplayable A/V content on the web. Even though it's listed as WMV, they are really processed with a codec that is underneath that wrapper, and unsupported by any of the above listed apps and plug ins. If any content like this is found on a high profile site, and is in wmv format, then the Flip4Mac people request to be told, so they can see if compatibility can be written in on their next update.
    Generally, video playback on a Mac can be somewhat complex. Would be nice if everyone used Quicktime, but I don't see that happening on the PC end of things anytime soon. So, we'll all just have to use what we can to view content.
    RE: learning Leopard....there are some tutorials on the Apple support site, but I've always found the suppot discussions to be pretty helpful. I've never been one to get a lot from manuals. Mostly, I get my knowledge from working with the apps I need, and getting advise from others who have done whatever. Occasionally, there's a class at the college that you might look into. Anyway, feel free to ask any questions you want on this forum, or drop me an email. [email protected]

  • HT1338 Help I can't get Java to down load to my Mac version 3.06 I have did the soft ware up date ?

    Help I can't get Java to down load !

    Hello BROitsJAMIE,
    Thanks for using Apple Support Communities.
    I'd like you to please follow the troubleshooting in the article linked to below in order to resolve this issue with your Mail.
    OS X Mail: Troubleshooting sending and receiving email messages
    Take care,
    Alex H.

  • How can I get Firefox to run KIOSK mode on Android phone? I am trying to use rKiosk but have not been successfull. I'm running 10.0.3 on the phone.

    How can I get Firefox to run KIOSK mode on Android phone? I am trying to use rKiosk but have not been successfull. I'm running 10.0.3 on the phone.

    Found an app to lock down the phone. SUREFOX!!!

  • How can I get Java plugin to work

    How can I get Java plugin to work ?

    Greetings Dun1203,
    Welcome to the Apple Support Communities!
    I understand that you would like to install or update Java on your Mac. For information on this process, please use the information provided in the attached link. 
    Java updates available for OS X on August 28, 2013 - Apple Support
    Cheers,
    Joe

  • Exchange 2013 remote session running as PowerShell version 2.0. How can I get it to run version 3.0?

    I'm trying to use the newer Powershell 3.0 features, particularly the ability to disconnect/reconnect a remote session, for our Exchange 2013 administration tools.  I have 3.0 on my workstation, and am connecting to a remote session on an Exchange 2013
    server (on Server 2012).   Even LOCALLY on the Exchange 2013 server Exchange Management Shell I get the same behavior:
    Exchange Command Shell on an Exchange 2013 server (running Windows Server 2012)
    [PS] >$PSVersionTable
    Name                           Value
    PSVersion                      3.0
    WSManStackVersion              3.0
    SerializationVersion           1.1.0.1
    CLRVersion                     4.0.30319.19117
    BuildVersion                   6.2.9200.16628
    PSCompatibleVersions           {1.0, 2.0, 3.0}
    PSRemotingProtocolVersion      2.2
    [PS] C:\Windows\system32>Get-PSSession
     Id Name            ComputerName    State         ConfigurationName
      1 Session1        mercmbx35r.n... Opened        Microsoft.Exchange
    [PS] C:\Windows\system32>$session = Get-PSSession
    [PS] C:\Windows\system32>$session.ApplicationPrivateData.PSVersionTable
    Name                           Value
    PSVersion                      2.0
    PSCompatibleVersions           {1.0, 2.0, 3.0}
    PSRemotingProtocolVersion      2.2
    BuildVersion                   6.2.9200.16628
    CLRVersion                     4.0.30319.19117
    WSManStackVersion              3.0
    SerializationVersion           1.1.0.1
    How/where can I force the Exchange session to run version 3.0?
    Thanks in advance,
    Rick Tatem

    I still can't get it to work that way. I changed my cfexecute to:
    <cfexecute name="C:\windows\system32\cmd.exe" arguments="/c C:\Inetpub\wwwroot\captcha\#cmd_filename#" outputFile="C:\testoutput.txt" timeout = "90"></cfexecute>
    And I changed my bat file to have:
    <cfsavecontent variable="cmd_content">
    cd\
    TSC.exe /s "#newString#" C:\Inetpub\wwwroot\captcha\#FileName# Mary (for Telephone)
    </cfsavecontent>
    The output file is showing:
    C:\ColdFusion9\runtime\bin>cd\
    C:\>TSC.exe /s "3.....P.....4.....Z.....8.....U.....7.....X....." C:\Inetpub\wwwroot\captcha\3P4Z8U7X-105724.wav Mary (for Telephone)
    I still can't get it to run the exe. I have watched the process list while running this and the exe doesn't show up. I tried cfexecute on the exe directly before trying the bat method, with hard coded arguments, and it still didn't work. I am so lost right now this makes no sense to me.

Maybe you are looking for

  • Icons on the screen using a Mac mini

    I have a Mac mini with a Time Capsule connected to it. The onscreen icon for the TC is just a white box instead of the symbol that is in the dock. How do you change the icon? I have the same issue with the Plex icon. Any ideas out there?

  • Indesign CS5 Color Management Policies

    Hello All, I have just been having a look at Indesign CS5 Color Management Policies... Can anyone clarify the following for me? From my testing it looks like 1.) When placing an image into an indesign page the embedded icc profile is ignored and the

  • OTN web page still says early adpter release 3

    http://www.oracle.com/technology/index.html FEATURED DOWNLOADS Project Raptor Early Adopter Release 3 for Linux and Windows Should this be changed to Oracle SQL Developer (formerly Project Raptor) Early Adopter Release 4?

  • Format weekly calendar to include day names

    Anyone know how to format the Ical weekly calendar to include the names of days?

  • Flash Player not working on new computer

    I just purchased a new computer; HP Pavilion 23-g010 All-in-One. 64 bit Windows 8.1 When I try to play my games on facebook it says that I need to install Adobe Flash Player. When I follow the prompts the computer shows a pop up that says it's alread