Jdk on DOS

Hi,
I have pc with only DOS as an operating system on which I want to run a java application, for which I want to install java on the system.
My question is can I install Java (JRE and JVM) on the system which has DOS the only operating system?
Please explain in detail for whatever the answer will be "YES" or "NO".
Thanks,
MRJ

>
i can remember threads on this forum that concluded
dos support wasn't possible in principle (!), which is
kind of why i'm interested in discussing this now..Things that I would consider problematic....
DOS had a mappable address space of just over 1 meg. The OS and application had to fit into that space. With exenders one could get up to about 16 meg (depending of various factors.) The application had to explicitly manage this space however because the address still only supported 1 meg.
Any sort of GUI code. DOS did not have any OS support for GUIs. So graphical output always required a direct to video card interface. There were only two major ones back then, but there were variations even in those. And mapping a GUI to a CUI is very problematic and not likely to lead to anything that is workable. Even more so with higher res screens and larger dialogs.
DOS did not include socket support. Early network solutions on DOS did not use TCP/IP. Network support required adding drivers which took up the address space. Socket support did not come close to matching unix socket support until after windows 3.1.
DOS did not have threads. There were some solutions to this but again the application rather than the OS had to manage it. Consider this, with no threads how does the GC run? One solution is that it runs everytime a new is called.
Those are some of the ones I can think of.

Similar Messages

  • Using JFrame

    Hello,
    Is it possible to run JFrame application using JDK from dos command line.
    If yes how can I do it ?

    note: you will need to have ur files in the same
    directory as your java.exe and javac.exe for this to
    work :DTo be able to use java.exe and javac.exe, simply add the path to these files in yoiu PATH definition. Under Win9x, see the autoexec.bat file. In Win2K, go to system Properties, System, Environment variables and edit the PATH...
    after this, make a try with "java.exe -version". You should receive some comments about your JRE version
    vincent

  • HOw to run the Applet in dos mode

    how to run the applet in Command Prompt(DOS).
    I have save this in directory D/vijay/javap/A.java and my JDK is in C drive.
    Plz send me reply as soon as possible.
    My code is :-
    import java.applet.*;
    import java.awt.*;
    public class A extends Applet
    private int w, h;
    public void init( )
         w = 45;
         h = 50;
    public void paint(Graphics g)
         g.drawRect(w, h, 20, 80);
    }

    import java.applet.*;
    import java.awt.*;
    public class A extends Applet
    private int w, h;
    public void init( )
    w = 45;
    h = 50;
    public void paint(Graphics g)
    g.drawRect(w, h, 20, 80);
    <applet class="A" height="200" width="200" code="A.class">
    </applet>
    */And in command prompt
    javac A.java
    appletviewer A.java
    Message was edited by:
    passion_for_java

  • Problems with Install: Full Version / Full - JDK

    It's been a long day but ...
    Trying to install both the full version and full -JDK. Both extracts contain several duplicate file versions some with same date/time, others different file sizes and date/time stamps.
    The creation of the folder: sqldeveloper per the Install Instructions below doesn't happen:
    Unzipping the SQL Developer kit causes a folder named sqldeveloper to be created under the <sqldeveloper_install> folder (for example, C:\Program Files\sqldeveloper). It also causes many files and folders to be placed in and under that directory.
    I get a little wild and run sqldeveloper.exe from the extract <sqldeveloper_install> folder (since the other one didn't get created) and all I get is a flash of a DOS window like something is trying to work.
    Help?
    Thank you in advance!

    First of all, even on windows you only need one download - the 65MB one if you don't have an existing JDK 1.5 install or the 38MB one if you do (if you are unsure, I would suggest the larger option). It is a bit worrying that there are "matching" files in both with different sizes/timestamps but so long as you stick to a single zip file, that shouldn't matter.
    I would suggest that you blow away your existing <sqldeveloper_install> folder and start again with either the SQL Developer including JDK 1.5 (65MB) or the SQL Developer without JDK 1.5 (38MB), whichever is appropriate for you.
    Given the structure of the zip file contents, if you want your <sqldeveloper_install> folder to be C:\Program Files\sqldeveloper, extract the zip file to C:\Program Files (if you extract to C:\Program Files\sqldeveloper, your install folder ends up being C:\Program Files\sqldeveloper\sqldeveloper).
    Then, as you tried previously, the <sqldeveloper_install>\sqldeveloper.exe should start SQL Developer.

  • Urgent ! how to run swing from dos

    hi
    how should i run swing program through dos prompt.when found in i tried compiling from c:\jdk\bin i got an error "package javax.swing not import".
    viji

    what you willdo is this,
    at the top of your code type the line.
    import javax.swing.*;
    //for event type the next line..
    import javax.swing.event.*;
    import java.awt.event.*;
    I think this should solve your problem.

  • JDK 1.4 installs but doesn't work in XP

    I downloaded the new JDK 1.4 and installed it, but it doesn't work. No application that requires Java works... none of them can find the JVM or the reference to the JRE.
    I use to have only the JRE running here and everything was fine, but I want to install Together5, so I removed the JRE to install the full JDK.
    And now nothing works... no ENVIRONMENT VARs were set.

    Hello cdechery,
    When you say: "No application that requires Java works" do you mean that you cannot compile your programs?
    What happens if you enter java -version in a DOS command window? Do you get information about the current version or do you get an error message.
    I suspect that you get information about the current version. If not, set your PATH environmental variable. See the installation instructions for Windows/XP for details on setting your PATH environmental variable.
    The more common problem is that you need to set the CLASSPATH environmental variable to point to your own .class and .jar files (but not the system .class and .jar files).
    Use a command line similar to: java -cp .;c:\dev\classes\myapp.jar  myapp to run your application.
    What was your previous version of the JRE?
    -Merwyn,
    Developer Technical Support,
    http://www.sun.com/developers/support.

  • Please help! JDK for Mac

    Hello, I'm wondering if anyone could help me (probably anyone because it is such an easy problem). I've been developing simple applications in Windows 95 using a simple text editor and MD dos as a compiler. Now I've moved to an Apple (using OS 9.1) and I can't seem to find where I can download the latest JDK for this platform. Also, what programs would be best for writing and compiling and where can I find them? Thankyou very much

    Apple has not implemented Java 2 on Mac OS 9.x, only on Mac OS X. Under Mac OS 9.x you are limited to JDK 1.1.8 available at:
    http://www.apple.com/java/
    Please note that you may or may not have to add the Swing classes.
    There are many development environments for the Mac including MPW and CodeWarrior. A good editor for the Mac is BBEdit, my choice for "raw HTML coding" software for the Mac. Gives you ultimate control over your HTML layout, plus tons of tools for HTML checking and tweaking. From Barebones Software at:
    www.barebones.com

  • Error when I execute an application with the java command in a DOS prompt

    Hi:
    I have a trouble. I edit the most simple program in Java: hello.java
    In DOS prompt, I compile the program. The result is the file hello.class
    c:\> javac hello.java
    However, I try to execute this program with the command java
    c:\> java hello
    and the DOS prompt send me an error like this: Java.exe has a problem and must be closed.
    I press the option "Don't send". After this, the DOS prompt returns empty and it doesnt execute the application:
    c:\>
    By the way, in an IDE editor like Gel, the file hello.java is compiled and executed correctly without problems.
    I edited other simple Java files, I compiled them succesfully and I can't run them in a DOS pormpt. The result is the same dialog box: "Java.exe has a problem and must be closed".
    The question is: Why don't these programs run in a DOS prompt?
    My Operating System is Microsoft Windows XP and the Java compiler version is: 1.6.0_13
    Thanks in advanced.

    Hi again:
    What happens when you type "java -version"?
    Answer:
    java version "1.2"
    Classic VM (build JDK-1.2-V, native threads)
    What is the value of your %PATH%?
    Answer:
    Path=E:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\Archivos comunes\Adaptec Shared\System;C:\Archivos de programa\Executive Software\DiskeeperLite\;C:\Archivos de programa\QuickTime\QTSystem\;C:\Archivos de programa\Java\jdk1.6.0_13\bin;C:\Archivos de programa\Microsoft SQL Server\80\Tools\Binn\;e:\Microsoft SQL Server\90\Tools\binn\;C:\BITWARE\;C:\Archivos de programa\Archivos comunes\Ahead\Lib\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    Have you considered running Linux?
    Answer: No, because Linux is more complex.
    Additional information:
    My Operating System is: Microsoft Windows XP Profesional Version 2002, Service Pack 3, running on an Intel Pentium 4, CPU 2.4 Ghz, RAM: 2.23 Gb

  • Dos Variable in Java

    Hi,
    I am trying to write some Java code which will load a file stored in the User Profile file (ie. D:\Document and Setting\u528456) however this will change depending on which PC the program is being run on.
    As the file will always be in the User Profile file I would like to the the Dos Variable USERPROFILE within my java code so that it always finds the file no matter what the staff number is (ie. u582456)
    Any help would be appreciated,
    Johann

    Thanks for the info but I do not seem to get it to work. I am coding in Eclipse and I believe I am using JDK 1.3 but not 100%.
    This is the code I have so far:
    public class Test {
        public static void main(String[] args) {
        File file = new File("D:\\Work\\Text.txt");
        FileInputStream fis = null;
        BufferedInputStream bis = null;
        DataInputStream dis = null;
        try {
          fis = new FileInputStream(file);
          // Here BufferedInputStream is added for fast reading.
          bis = new BufferedInputStream(fis);
          dis = new DataInputStream(bis);
          // dis.available() returns 0 if the file does not have more lines.
          while (dis.available() != 0) {
          // this statement reads the line from the file and print it to
            // the console.
            System.out.println(dis.readLine());
          // dispose all the resources after using them.
          fis.close();
          bis.close();
          dis.close();
        } catch (FileNotFoundException e) {
          e.printStackTrace();
        } catch (IOException e) {
          e.printStackTrace();
    The result of this code is that it prints the text in the file Text.txt which is located in D:\Work.
    However as previously stated I would like it to find the text file in the USERPROFILE folder as specified in each individual PCs Dos Variables.
    Could you please advise further.
    Edited by: fenderj on Oct 24, 2007 4:29 AM

  • Running java command from DOS prompt

    Hi,
    When I run java from the DOS prompt (NT) in any other location than the JDK bin directory, I get the following error:
    Error opening registry key 'Software\JavaSoft\Java Runtime Environment'
    My understanding is to be able to run this from anywhere you need to add the tools.jar file to the CLASSPATH, which I have done.
    There is no entry in the Registry for Software\JavaSoft...etc, has anyone any idea what my problem is and how I can solve it?
    Thanks in advance

    Hi,
    I am running Java 2 SDK, Standard Edition Version 1.2.2 running on NT. It was installed as part of Oracles JDeveloper IDE and is running on NT.
    All I want to be able to do is run java from the command line e.g. 'java myclass', to run a standalone Java program. I can run 'javac myclass.java' to compile the program without any problems, but my understanding is that to do this all I need is to have the '.../java1.2/bin' directory included in the 'PATH' variable, whereas to run the java runtime you need to include the tools.jar in the CLASSPATH variable.
    As I said previously I can run the 'java myclass' command from the '../java1.2/bin' directory, just not from anywhere else. As for whats in the code, does not matter you should be able to type just java on the command line and it will come back with an error prompting for the class name. Here is an example of what happens:
    I:\>java
    Error opening registry key 'Software\JavaSoft\Java Runtime Environment'
    However if I change to the correct directory, I get:
    D:\oracle\JDev32\java1.2\bin>java
    Usage: java [-options] class [args...]
    (to execute a class)
    or java -jar [-options] jarfile [args...]
    (to execute a jar file)
    where options include:
    -cp -classpath <directories and zip/jar files separated by ;>
    set search path for application classes and resources
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version
    -? -help print this help message
    -X print help on non-standard options
    The contents of my PATH and CLASSPATH variable are shown below, Thanks again.
    I:\>PATH
    PATH=D:\oracle\BIN;D:\oracle\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\1.1.7\b
    in;D:\oracle\ora8i\bin;C:\DMINT40\Win32\Bin;C:\WINNT\system32;C:\WINNT;C:\Program Files\Symantec\pcA
    nywhere;d:\oracle\jdev32\java1.2\bin;d:\downloads\oraxml\bin;d:\oracle\jdev32\java1.2\lib\tools.jar
    I:\>echo %CLASSPATH%
    d:\oracle\jdev32\java1.2\lib\tools.jar;d:\oracle\apache\apache\htdocs\web-inf\classes;d:\oracle\apac
    he\jserv\servlets

  • Help with java in dos :(

    Hi all, i'm newbie with java, but i use a lot of programs that need java to work, yesterday all were working fine, but today programs that load with a .bat file (as example.. java -Xmx64m net.sf.l2j.loginserver.LoginServer) don't work :(, when i try to use any java command in dos appears a error like don't recognized command : ''java'' is not recognized like an internal or external command, program or batch file (or something like it, sorry for my bad english), i think i have tried all, uninstall, reinstall... etc, what shall i do? , i have jdk 1.6.0_01 and jre1.5.0_11, executable jars works, so java it's working, any idea about what must i do? , thanks!!
    Message was edited by:
    Silenc3
    Message was edited by:
    Silenc3

    hi,
    go to : Start -> Control Panel -> System
    choose advanced then Environment variables
    add the JAVA_HOME System Variable as follows :
    new : Name=JAVA_HOME Value=C:/jdk 1.6.0_01/
    (Choose the right location of your jdk as Value )
    Finally look for the path system variable and add
    ;%JAVA_HOME\bin\%
    Now start an MS-DOS window and type : java -version
    and tell us what happens plz.
    hth

  • Classpath for getting JDK 1.3 to work on Windows XP

    Hi,
    I've just DL and installed JSDK 1.3 on my home computer which is running Windows XP. I know that I have to set the classpath in order to run Java properly on my pc but what exactly do I set it to?
    I tried to set it but it still doesn't work and comes up with a No class found error or something similar.
    Does anybody know what to set the classpath to be? when i run a java command from the command line it works i.e. C:>java HelloWorld
    but when i try anything else like C:>javac HelloWorld.java, it just doesnt work.
    Any help would be welcome
    Thanks
    C.W.

    If you do a java -version you will probably be running microsoft java. Set your system path to the where you installed the jdk along with the bin. (i.e. c:\jdk-1.3.0\bin) This will let you find all of the java exe's when you are in the dos command line. You can set the path by right clicking on my computer and finding the environment settings button. Also set your classpath in here, for instance .\; if you want it to find the current directory you are working on or I usually set it to at least .\;c:\java; so I can throw all my api's I download into it. Hope this helps.
    FYI
    path is where the system looks for executible files and
    classpath is where java looks for class files.

  • Installing JDK 1.2.2 in Windows XP - Professional

    I was getting the following error while installing JDK 1.2.2 in Win XP :-
    javaw.exe has encountered a problem and needs to close.
    AppName : javaw.exe AppVer : 0.0.0.0
    ModName : symcjit.dll ModVer : 3.10.0.107
    Offset : 0005f974
    The error report includes information regarding the condition of javaw.exe when the problem occured; the operating system version and computer hardware in use; your Digital product ID, which could be used to identify your license; and IP address of your computer.

    I recently installed the J2SE SDK onto my computer
    (Windows XP). How do I access MS-DOS to check my
    path?
    Thanks
    WTBInstall DOS on another machine and create a boot disk. Then put that bootdisk into your XP machine and boot from that.
    There is no DOS in Windows and hasn't been for years.

  • JDK 6 SE not working

    My code is correct and I have a .class extension for each successful source code file. However, when I try to compile a successful application such as javac AccountTest.java, the command prompt says that 'javac' is not recognized as an internal or external command, operable program or batch file. I think the problem has to do with the environment variables, specifically CLASSPATH and PATH. But, I don't know how to fix it.
    I can find where I saved JDK by going to start,my computer, Local Disk (C:), and then to the "Java" folder where the JDK is saved.
    My Classpath environment variable = C:\program files\java\jdk1.6.0_01\lib\tools.jar;
    My Path environment variable = C:\Java\jdk1.6.0_01\bin; C:\windows\system;
    Please help!

    I recommend following Paul's recommendation of trying to run javac directly from the directory in which you can see it (the bin directory of your JDK installation).
    How do you have .class files if you have not been able to run javac? The javac compiler is used to compile .java source code files into .class files.
    The message you are seeing is definitely indicative of a Path problem rather than a CLASSPATH problem. You can see this by typing "thisIsJunk" on your DOS command-line to see the same message. It has nothing to do with Java in particular, but has to do with the JDK bin directory being appropriately added to your path. However, that being stated, why are you pointing your path at C:\Java when it appears (from your CLASSPATH variable) that you have Java installed at the default location of C:\Program Files\Java\jdk1.6.0_01? Having different environment variables pointing at different installations of even the same version of Java can be troublesome down the road, so I suggest you have your Path point to the bin directory at (C:\Program Files\Java\jdk1.6.0_01\bin). I typically define a JAVA_HOME (because many tools such as Ant look for this) in the following manner:
    JAVA_HOME as C:\Program Files\Java\jdk1.6.0_06 (use your version instead of mine)
    Then, I place Java in the Path like this:
    %JAVA_HOME%\bin (and I put it very first in the Path)
    The advantage of this is that when I upgrade Java in the future, I only have to change the JAVA_HOME setting and the Path gets updated automatically.

  • What is JDK? Where we use JDK?

    What is JDK? Where we use the JDK? IS it JAVA related?

    It's not that stupid a question. I mean, if you were a developer, but had never used Java before, why would you automatically know the differences between the JDK, JRE, SDK, J2SE, Java 5, J2EE, etc. ?
    I know when I first investigated J2EE I had vaguely assumed that it would include the development tools.
    Until you dive into the tutorials it's not explained very clearly what the distinctions are. Even now Sun tend to use some internal acronyms which aren't clearly defined anywhere (don't get me started about "FCS").
    I'd be a lot more sympathetic to the cause of marketing idiocy (see Java and Solaris/SunOS version numbering) if they managed to make the names clearer, instead of confusing potential new customers.
    But hey, what dos that matter so long as it goes to 11?
    No, the OP is just asking in a really dumb place...

Maybe you are looking for